move externs to .h

This commit is contained in:
jun2sak 2021-02-26 01:20:55 +09:00
parent c86ca2a4ff
commit c713d31d0d
2 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,6 @@ void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
}
}
extern uint32_t reset_reason_saved;
mcu_reset_reason_t common_hal_mcu_processor_get_reset_reason(void) {
mcu_reset_reason_t r = RESET_REASON_UNKNOWN;
if (reset_reason_saved == 0) {

View File

@ -36,4 +36,6 @@ typedef struct {
// Stores no state currently.
} mcu_processor_obj_t;
extern uint32_t reset_reason_saved;
#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H