diff hw.c @ 27:5c9d2e3d6591

Add flashread/writeblock commands which read/write a block of data to flash with a CRC.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 20 Nov 2012 21:54:06 +1030
parents 1e2fa7396f98
children 435c6330896c
line wrap: on
line diff
--- a/hw.c	Sat Nov 17 18:03:48 2012 +1030
+++ b/hw.c	Tue Nov 20 21:54:06 2012 +1030
@@ -43,7 +43,7 @@
     RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1 | RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOB | 
 			   RCC_APB2Periph_GPIOE | RCC_APB2Periph_SPI1, ENABLE);
 
-    RCC_AHBPeriphClockCmd(RCC_AHBPeriph_FSMC, ENABLE);
+    RCC_AHBPeriphClockCmd(RCC_AHBPeriph_FSMC | RCC_AHBPeriph_CRC, ENABLE);
 
     /* Allow access to BKP Domain */
     PWR_BackupAccessCmd(ENABLE);