File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,18 @@ static void cam_config(const cam_config_t *config) {
106
106
periph_module_enable (PERIPH_I2S0_MODULE );
107
107
108
108
/*!< Configure the clock */
109
+ #if 0
109
110
I2S0 .clkm_conf .val = 0 ;
110
- I2S0 .clkm_conf .clkm_div_num = 2 ;
111
+ I2S0 .clkm_conf .clkm_div_num = 2 ; // <--- this should set the low 8 bits, but doesn't somehow
111
112
I2S0 .clkm_conf .clkm_div_b = 0 ;
112
113
I2S0 .clkm_conf .clkm_div_a = 0 ;
113
114
I2S0 .clkm_conf .clk_sel = 2 ;
114
115
I2S0 .clkm_conf .clk_en = 1 ;
115
-
116
+ #else
117
+ // The above code should set the clock to this value .. however, it sets it to 0x0050_0000 instead, the "clkm_div_num" value missing!
118
+ // it's not clear why this behavior arises
119
+ I2S0 .clkm_conf .val = 0x00500002 ;
120
+ #endif
116
121
/*!< Configuration sampling rate */
117
122
I2S0 .sample_rate_conf .val = 0 ;
118
123
I2S0 .sample_rate_conf .tx_bck_div_num = 2 ;
You can’t perform that action at this time.
0 commit comments