You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/11/20 11:08:42 UTC

[GitHub] kasjer commented on a change in pull request #1522: [STM32] Unify flash drivers

kasjer commented on a change in pull request #1522: [STM32] Unify flash drivers
URL: https://github.com/apache/mynewt-core/pull/1522#discussion_r234958018
 
 

 ##########
 File path: hw/bsp/nucleo-f746zg/src/hal_bsp.c
 ##########
 @@ -80,8 +80,23 @@ static struct stm32_pwm_conf  stm32_pwm_config[PWM_CNT] = {
 #endif
 };
 
+#endif /* PWM_CNT */
+
+const uint32_t stm32_flash_sectors[] = {
+    0x08000000,     /* 32kB  */
+    0x08008000,     /* 32kB  */
+    0x08010000,     /* 32kB  */
+    0x08018000,     /* 32kB  */
+    0x08020000,     /* 128kB */
+    0x08040000,     /* 256kB */
+    0x08080000,     /* 256kB */
+    0x080c0000,     /* 256kB */
+    0x08100000,     /* End of flash */
+};
 
-#endif
+#define SZ (sizeof(stm32_flash_sectors)/sizeof(stm32_flash_sectors[0]))
 
 Review comment:
   other places have spaces around /

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services