File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ DigitalOut blue(PK_7, 1);
5757Ticker swap_ticker;
5858int mcuboot_swap_index = -1 ;
5959
60+ bool debug_enabled = false ;
61+
6062static inline void swap_feedback () {
6163
6264 static int blink_idx = 0 ;
@@ -158,6 +160,12 @@ static bool empty_keys() {
158160 return true ;
159161}
160162
163+ int target_debug_init (void ) {
164+ RTCInit ();
165+ debug_enabled = RTCGetBKPRegister (RTC_BKP_DR7) & 0x00000001 ;
166+ return 0 ;
167+ }
168+
161169
162170int target_init (void ) {
163171 DigitalIn boot_sel (PI_8,PullDown);
Original file line number Diff line number Diff line change 7171#define BOARD_EXTCLOCK 25
7272#endif
7373
74- int target_init (void );
74+ int target_debug_init (void );
7575int target_loop (void );
76+ int target_debug (void );
7677
7778#endif /* __TARGET_INIT_H */
You can’t perform that action at this time.
0 commit comments