File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 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() {
7979 ((R_USB_FS0_Type*)R_USB_FS0_BASE)->USBMC_b.VDCEN = 1;
8080}
8181
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+ }
8287
8388void initVariant() {
8489 // 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() {
108108 ((R_USB_FS0_Type*)R_USB_FS0_BASE)->USBMC_b.VDCEN = 1;
109109}
110110
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+
111117void initVariant() {
112118 __maybe_start_usb();
113119 // 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