Skip to content

Commit 6296be9

Browse files
author
Chuck Todd
committed
Now I mean it really, Really, Double Dare works.
1 parent 2814574 commit 6296be9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cores/esp32/esp32-hal-i2c.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,13 @@ static i2c_t _i2c_bus_array[2] = {
234234
* */
235235

236236

237-
/* Stickbreaker ISR mode debug support
237+
/* Forwards
238+
*/
239+
240+
static i2c_err_t i2cConfigureFrequency(i2c_t * i2c, uint32_t clk_speed);
241+
242+
/* Debug support
243+
238244
*/
239245
static void IRAM_ATTR i2cDumpCmdQueue(i2c_t *i2c)
240246
{
@@ -1714,11 +1720,11 @@ i2c_err_t i2cRead(i2c_t * i2c, i2c_queue_t * inQb, uint16_t address, uint8_t* bu
17141720
return last_error;
17151721
}
17161722

1717-
i2c_err_t i2cSetFrequency(i2cq_t * inQb, uint32_t clock_speed){
1723+
i2c_err_t i2cSetFrequency(i2c_queue_t * inQb, uint32_t clock_speed){
17181724
if(inQb == NULL){
17191725
return I2C_ERROR_DEV;
17201726
}
1721-
if(clock_speed<10000) || (clock_speed>2000000)){
1727+
if((clock_speed<10000) || (clock_speed>2000000)){
17221728
clock_speed = 100000; // default
17231729
}
17241730
inQb->clockFreq = clock_speed;

0 commit comments

Comments
 (0)