We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f59b4 commit 0c81961Copy full SHA for 0c81961
targets/TARGET_RDA/TARGET_UNO_91H/rda_ccfg_api.c
@@ -78,6 +78,12 @@ static inline void rda_ccfg_ck(void)
78
79
cfg = (RDA_SCU->CORECFG >> 11) & 0x07U;
80
rd_rf_usb_reg(0xA4, &val, 0);
81
+
82
+ // If i2c_wakeup_en is already set, do nothing and return
83
+ if((val & 0x01U) == 0x00U) {
84
+ return;
85
+ }
86
87
#if ((SYS_CPU_CLK == CLK_FREQ_160M) && (AHB_BUS_CLK == CLK_FREQ_80M))
88
/* HCLK inv */
89
if(((CLK_FREQ_40M << 1) | CLK_FREQ_40M) == cfg) {
0 commit comments