Skip to content

Commit bb460d0

Browse files
authored
Add missing "default defines" (#1426)
To match the documented PICO_CONFIG default values
1 parent 0be7fb8 commit bb460d0

File tree

1 file changed

+7
-0
lines changed
  • src/rp2_common/pico_flash/include/pico

1 file changed

+7
-0
lines changed

src/rp2_common/pico_flash/include/pico/flash.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ int flash_safe_execute(void (*func)(void *), void *param, uint32_t enter_exit_ti
9595
#endif
9696

9797
// PICO_CONFIG: PICO_FLASH_ASSUME_CORE0_SAFE, Assume that core 0 will never be accessing flash and so doesn't need to be considered during flash_safe_execute, type=bool, default=0, group=pico_flash
98+
#ifndef PICO_FLASH_ASSUME_CORE0_SAFE
99+
#define PICO_FLASH_ASSUME_CORE0_SAFE 0
100+
#endif
101+
98102
// PICO_CONFIG: PICO_FLASH_ASSUME_CORE1_SAFE, Assume that core 1 will never be accessing flash and so doesn't need to be considered during flash_safe_execute, type=bool, default=0, group=pico_flash
103+
#ifndef PICO_FLASH_ASSUME_CORE1_SAFE
104+
#define PICO_FLASH_ASSUME_CORE1_SAFE 0
105+
#endif
99106

100107
// PICO_CONFIG: PICO_FLASH_SAFE_EXECUTE_SUPPORT_FREERTOS_SMP, Support using FreeRTOS SMP to make the other core safe during flash_safe_execute, type=bool, default=1 when using FreeRTOS SMP, group=pico_flash
101108
#ifndef PICO_FLASH_SAFE_EXECUTE_SUPPORT_FREERTOS_SMP

0 commit comments

Comments
 (0)