File tree Expand file tree Collapse file tree 5 files changed +1
-17
lines changed Expand file tree Collapse file tree 5 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,13 @@ const PALConfig pal_default_config = {
44
44
#endif
45
45
46
46
static int flag __attribute__((section (".flag" ))) __attribute__((__used__ )) = 0xAAAA5555 ;
47
- extern void enter_bootloader_mode_if_requested (void );
48
47
49
48
/**
50
49
* @brief Early initialization code.
51
50
* @details This initialization must be performed just after stack setup
52
51
* and before any other initialization.
53
52
*/
54
53
void __early_init (void ) {
55
- enter_bootloader_mode_if_requested ();
56
54
sn32_clock_init ();
57
55
}
58
56
@@ -62,8 +60,6 @@ void __early_init(void) {
62
60
*/
63
61
void boardInit (void ) {
64
62
65
- SN_SYS0 -> EXRSTCTRL_b .RESETDIS = 1 ; // Disable RESET
66
- SN_SYS0 -> SWDCTRL_b .SWDDIS = 1 ; // Disable SWD
67
63
}
68
64
69
65
void restart_usb_driver (USBDriver * usbp ) {
Original file line number Diff line number Diff line change @@ -44,15 +44,13 @@ const PALConfig pal_default_config = {
44
44
#endif
45
45
46
46
static int flag __attribute__((section (".flag" ))) __attribute__((__used__ )) = 0xAAAA5555 ;
47
- extern void enter_bootloader_mode_if_requested (void );
48
47
49
48
/**
50
49
* @brief Early initialization code.
51
50
* @details This initialization must be performed just after stack setup
52
51
* and before any other initialization.
53
52
*/
54
53
void __early_init (void ) {
55
- enter_bootloader_mode_if_requested ();
56
54
sn32_clock_init ();
57
55
}
58
56
@@ -62,6 +60,4 @@ void __early_init(void) {
62
60
*/
63
61
void boardInit (void ) {
64
62
65
- SN_SYS0 -> EXRSTCTRL_b .RESETDIS = 1 ; // Disable RESET
66
- SN_SYS0 -> SWDCTRL_b .SWDDIS = 1 ; // Disable SWD
67
63
}
Original file line number Diff line number Diff line change @@ -56,5 +56,5 @@ void __early_init(void) {
56
56
* @brief Board-specific initialization code.
57
57
*/
58
58
void boardInit (void ) {
59
- SN_SYS0 -> SWDCTRL_b . SWDDIS = 1 ; // Disable SWD
59
+
60
60
}
Original file line number Diff line number Diff line change @@ -44,15 +44,13 @@ const PALConfig pal_default_config = {
44
44
#endif
45
45
46
46
static int flag __attribute__((section (".flag" ))) __attribute__((__used__ )) = 0xAAAA5555 ;
47
- extern void enter_bootloader_mode_if_requested (void );
48
47
49
48
/**
50
49
* @brief Early initialization code.
51
50
* @details This initialization must be performed just after stack setup
52
51
* and before any other initialization.
53
52
*/
54
53
void __early_init (void ) {
55
- enter_bootloader_mode_if_requested ();
56
54
sn32_clock_init ();
57
55
}
58
56
@@ -62,6 +60,4 @@ void __early_init(void) {
62
60
*/
63
61
void boardInit (void ) {
64
62
65
- SN_SYS0 -> EXRSTCTRL_b .RESETDIS = 1 ; // Disable RESET
66
- SN_SYS0 -> SWDCTRL_b .SWDDIS = 1 ; // Disable SWD
67
63
}
Original file line number Diff line number Diff line change @@ -44,15 +44,13 @@ const PALConfig pal_default_config = {
44
44
#endif
45
45
46
46
static int flag __attribute__((section (".flag" ))) __attribute__((__used__ )) = 0xAAAA5555 ;
47
- extern void enter_bootloader_mode_if_requested (void );
48
47
49
48
/**
50
49
* @brief Early initialization code.
51
50
* @details This initialization must be performed just after stack setup
52
51
* and before any other initialization.
53
52
*/
54
53
void __early_init (void ) {
55
- enter_bootloader_mode_if_requested ();
56
54
sn32_clock_init ();
57
55
}
58
56
@@ -62,6 +60,4 @@ void __early_init(void) {
62
60
*/
63
61
void boardInit (void ) {
64
62
65
- SN_SYS0 -> EXRSTCTRL_b .RESETDIS = 1 ; // Disable RESET
66
- SN_SYS0 -> SWDCTRL_b .SWDDIS = 1 ; // Disable SWD
67
63
}
You can’t perform that action at this time.
0 commit comments