Skip to content

Commit 1b70a5f

Browse files
committed
sn32: 240c: correct I2C clock bits
1 parent 2b6e98b commit 1b70a5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

os/hal/ports/SN32/SN32F240C/sn32_sys1.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,14 @@
293293
*
294294
* @api
295295
*/
296-
#define sys1EnableI2C0() sys1EnableAHB(0x1<<20)
296+
#define sys1EnableI2C0() sys1EnableAHB(0x1<<21)
297297

298298
/**
299299
* @brief Disables the I2C0 peripheral clock.
300300
*
301301
* @api
302302
*/
303-
#define sys1DisableI2C0() sys1DisableAHB(0x1<<20)
303+
#define sys1DisableI2C0() sys1DisableAHB(0x1<<21)
304304

305305
/**
306306
* @name I2C1 peripherals specific SYS1 operations
@@ -311,14 +311,14 @@
311311
*
312312
* @api
313313
*/
314-
#define sys1EnableI2C1() sys1EnableAHB(0x1<<21)
314+
#define sys1EnableI2C1() sys1EnableAHB(0x1<<20)
315315

316316
/**
317317
* @brief Disables the I2C1 peripheral clock.
318318
*
319319
* @api
320320
*/
321-
#define sys1DisableI2C1() sys1DisableAHB(0x1<<21)
321+
#define sys1DisableI2C1() sys1DisableAHB(0x1<<20)
322322

323323
/**
324324
* @name WDT peripherals specific SYS1 operations

0 commit comments

Comments
 (0)