File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ void usb_post_initialization() {
79
79
((R_USB_FS0_Type*)R_USB_FS0_BASE)->USBMC_b .VDCEN = 1 ;
80
80
}
81
81
82
+ void enableSubclockInputPins () {
83
+ R_BSP_RegisterProtectDisable (BSP_REG_PROTECT_CGC);
84
+ R_SYSTEM->SOSCCR_b .SOSTP = 1 ;
85
+ R_BSP_RegisterProtectEnable (BSP_REG_PROTECT_CGC);
86
+ }
82
87
83
88
void initVariant () {
84
89
// bootloader configures LED_BUILTIN as PWM output, deconfigure it to avoid spurious signals
Original file line number Diff line number Diff line change @@ -108,6 +108,12 @@ void usb_post_initialization() {
108
108
((R_USB_FS0_Type*)R_USB_FS0_BASE)->USBMC_b .VDCEN = 1 ;
109
109
}
110
110
111
+ void enableSubclockInputPins () {
112
+ R_BSP_RegisterProtectDisable (BSP_REG_PROTECT_CGC);
113
+ R_SYSTEM->SOSCCR_b .SOSTP = 1 ;
114
+ R_BSP_RegisterProtectEnable (BSP_REG_PROTECT_CGC);
115
+ }
116
+
111
117
void initVariant () {
112
118
__maybe_start_usb ();
113
119
// bootloader configures LED_BUILTIN as PWM output, deconfigure it to avoid spurious signals
You can’t perform that action at this time.
0 commit comments