Silent nightlytest warning.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 18 Aug 2010 18:51:10 +0000 (18:51 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 18 Aug 2010 18:51:10 +0000 (18:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4191 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/drv/flash_lpc2.c
bertos/cpu/arm/io/lpc23xx.h

index 7e0013ca6d67532ec7bdbdb50746785c0a520163..21c514f7cd12db6e08f8e9eaff4e371da6459be2 100644 (file)
@@ -35,7 +35,7 @@
  *
  * \brief NPX lpc23xx embedded flash read/write driver.
  *
- * notest: arm
+ * notest:arm
  */
 
 #include "flash_lpc2.h"
 
 #include <string.h>
 
+/* Embedded flash programming defines. */
+#define IAP_ADDRESS 0x7ffffff1
+
+typedef enum IapCommands
+{
+       PREPARE_SECTOR_FOR_WRITE = 50,
+       COPY_RAM_TO_FLASH = 51,
+       ERASE_SECTOR = 52,
+       BLANK_CHECK_SECTOR = 53,
+       READ_PART_ID = 54,
+       READ_BOOT_VER = 55,
+       COMPARE = 56,
+       REINVOKE_ISP = 57,
+} IapCommands;
+
+#if CPU_ARM_LPC2378
+       #define FLASH_MEM_SIZE         (504 * 1024L)
+       #define FLASH_PAGE_SIZE_BYTES   4096
+       #define FLASH_PAGE_4K_CNT         14
+#else
+       #error Unknown CPU
+#endif
+
 #define CMD_SUCCESS 0
 
 struct FlashHardware
index 32b87fc4d0deeac1e43904c5126cd4274fe9cf98..605211c515b71048ec4998077d61f8d82408bdb6 100644 (file)
 #include <cfg/compiler.h>
 
 #include <cpu/detect.h>
-
-
-/* Embedded flash programming defines. */
-#define IAP_ADDRESS 0x7ffffff1
-
-typedef enum IapCommands
-{
-       PREPARE_SECTOR_FOR_WRITE = 50,
-       COPY_RAM_TO_FLASH = 51,
-       ERASE_SECTOR = 52,
-       BLANK_CHECK_SECTOR = 53,
-       READ_PART_ID = 54,
-       READ_BOOT_VER = 55,
-       COMPARE = 56,
-       REINVOKE_ISP = 57,
-} IapCommands;
-
-#if CPU_ARM_LPC2378
-       #define FLASH_MEM_SIZE         (504 * 1024L)
-       #define FLASH_PAGE_SIZE_BYTES   4096
-       #define FLASH_PAGE_4K_CNT         14
-#else
-       #error Unknown CPU
-#endif
-
 /* Vectored Interrupt Controller (VIC) */
 #define VIC_BASE_ADDR  0xFFFFF000
 #define VICIRQStatus   (*(reg32_t *)(VIC_BASE_ADDR + 0x000))