MCUXpresso_LPC55S69/boards/lpcxpresso55s69/azure_rtos_examples/i2c_example/cm33_core0/board_setup.h
2022-04-08 22:42:47 +08:00

27 lines
583 B
C

#ifndef _BOARD_SETUP_H
#define _BOARD_SETUP_H
#define I2C_MASTER_BASE ((I2C_Type *)I2C1_BASE)
#define I2C_MASTER_IRQ FLEXCOMM1_IRQn
#define I2C_MASTER_CLOCK_FREQUENCY (12000000U) /* 12 MHz*/
#define I2C_SLAVE_BASE ((I2C_Type *)I2C4_BASE)
#define I2C_SLAVE_IRQ FLEXCOMM4_IRQn
#define I2C_SLAVE_CLOCK_FREQUENCY (12000000U) /* 12 MHz*/
#define I2C_BAUDRATE (100000U)
#if defined(__cplusplus)
extern "C" {
#endif
void board_setup(void);
#if defined(__cplusplus)
}
#endif
#endif