mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
Old driver naming issue
This commit is contained in:
@@ -282,9 +282,11 @@ static inline void on_status_restart_requested(struct i2c_periph *periph, struct
|
||||
}
|
||||
}
|
||||
|
||||
void i2c_event(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
static inline void i2c_event(struct i2c_periph *p, uint32_t event)
|
||||
static inline void i2c_driver_event(struct i2c_periph *p, uint32_t event)
|
||||
{
|
||||
struct i2c_transaction* trans = p->trans[p->trans_extract_idx];
|
||||
switch (p->status) {
|
||||
@@ -504,7 +506,7 @@ void i2c1_hw_init(void) {
|
||||
void i2c1_ev_irq_handler(void) {
|
||||
|
||||
uint32_t event = I2C_GetLastEvent(I2C1);
|
||||
i2c_event(&i2c1, event);
|
||||
i2c_driver_event(&i2c1, event);
|
||||
|
||||
}
|
||||
|
||||
@@ -581,7 +583,7 @@ void i2c2_hw_init(void) {
|
||||
|
||||
void i2c2_ev_irq_handler(void) {
|
||||
uint32_t event = I2C_GetLastEvent(I2C2);
|
||||
i2c_event(&i2c2, event);
|
||||
i2c_driver_event(&i2c2, event);
|
||||
}
|
||||
|
||||
void i2c2_er_irq_handler(void) {
|
||||
|
||||
Reference in New Issue
Block a user