davids5 commented on code in PR #10328:
URL: https://github.com/apache/nuttx/pull/10328#discussion_r1299944606


##########
arch/arm/src/stm32h7/hardware/stm32h7x3xx_syscfg.h:
##########
@@ -54,6 +54,7 @@
 
 #define STM32_SYSCFG_UR_OFFSET(n)     (0x0300 + ((n) << 2))
 #define STM32_SYSCFG_UR0_OFFSET       0x0300 /* User register 0 */
+#define STM32_SYSCFG_UR1_OFFSET       0x0304 /* User register 2 */

Review Comment:
   Ditto



##########
arch/arm/src/stm32h7/hardware/stm32h7x3xx_memorymap.h:
##########
@@ -60,10 +60,18 @@
 
 #define STM32_DTCRAM_BASE    0x20000000     /* 0x20000000-0x2001ffff: DTCM-RAM 
on TCM interface */
 #define STM32_AXISRAM_BASE   0x24000000     /* 0x24000000-0x247fffff: System 
AXI SRAM */
-#define STM32_SRAM1_BASE     0x30000000     /* 0x30000000-0x3001ffff: System 
SRAM1 */
-#define STM32_SRAM2_BASE     0x30020000     /* 0x30020000-0x3003ffff: System 
SRAM2 */
-#define STM32_SRAM3_BASE     0x3004c000     /* 0x30040000-0x30047fff: System 
SRAM3 */
-#define STM32_SRAM123_BASE   0x30000000     /* 0x30000000-0x30047fff: System 
SRAM123 */
+
+#ifdef CONFIG_ARCH_CHIP_STM32H7_CORTEXM7

Review Comment:
   @raiden00pl Why is this here? Would you please explain this? Where are the 
second set of addresses from?



##########
arch/arm/src/stm32h7/hardware/stm32h7x3xx_syscfg.h:
##########
@@ -86,6 +87,24 @@
 #define STM32_SYSCFG_CCCR             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_CCCR_OFFSET)
 #define STM32_SYSCFG_PWRCR            (STM32_SYSCFG_BASE + 
STM32_SYSCFG_PWRCR_OFFSET)
 
+#define STM32_SYSCFG_UR1              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR1_OFFSET)
+#define STM32_SYSCFG_UR2              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR2_OFFSET)
+#define STM32_SYSCFG_UR3              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR3_OFFSET)
+#define STM32_SYSCFG_UR4              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR4_OFFSET)
+#define STM32_SYSCFG_UR5              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR5_OFFSET)
+#define STM32_SYSCFG_UR6              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR6_OFFSET)
+#define STM32_SYSCFG_UR7              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR7_OFFSET)
+#define STM32_SYSCFG_UR8              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR8_OFFSET)
+#define STM32_SYSCFG_UR9              (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR9_OFFSET)
+#define STM32_SYSCFG_UR10             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR10_OFFSET)
+#define STM32_SYSCFG_UR11             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR11_OFFSET)
+#define STM32_SYSCFG_UR12             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR12_OFFSET)
+#define STM32_SYSCFG_UR13             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR13_OFFSET)
+#define STM32_SYSCFG_UR14             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR14_OFFSET)
+#define STM32_SYSCFG_UR15             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR15_OFFSET)
+#define STM32_SYSCFG_UR16             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR16_OFFSET)
+#define STM32_SYSCFG_UR17             (STM32_SYSCFG_BASE + 
STM32_SYSCFG_UR17_OFFSET)
+

Review Comment:
   Ditto



##########
arch/arm/src/stm32h7/hardware/stm32h7x3xx_rcc.h:
##########
@@ -812,6 +812,9 @@
 /* RCC Global Control register */
 
 #define RCC_GCR_WW1RSC                  (1 << 0)  /* Bit 0: WWDG1 reset scope 
control */
+#define RCC_GCR_WW2RSC                  (1 << 1)  /* Bit 1: WWDG2 reset scope 
control */

Review Comment:
   Is this defining reserved bit on other ICs? If so should we use and #ifdef 
on HAS_XXX to not allow compilations and to prevent errant access to reserved 
bits?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to