🎨 Combine common LPC1768 I2C code

This commit is contained in:
Scott Lahteine
2022-03-29 04:22:04 -05:00
parent 0752082b85
commit 6015ee2531
4 changed files with 34 additions and 66 deletions

View File

@@ -51,6 +51,11 @@
void configure_i2c(const uint8_t clock_option);
uint32_t _I2C_Start(LPC_I2C_TypeDef *I2Cx);
void _I2C_Stop(LPC_I2C_TypeDef *I2Cx);
#define I2C_status (LPC_I2C1->I2STAT & I2C_STAT_CODE_BITMASK)
#ifdef __cplusplus
}
#endif