I2C. Added external fields hook in driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3769 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
55cdd3db53
commit
16d354e687
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "i2c_lld.h"
|
||||
|
||||
#if HAL_USE_I2C || defined(__DOXYGEN__)
|
||||
|
||||
|
@ -295,7 +294,6 @@ static uint32_t i2c_get_event(I2CDriver *i2cp) {
|
|||
return (I2C_EV_MASK & (regSR1 | (regSR2 << 16)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief I2C shared ISR code.
|
||||
*
|
||||
|
|
|
@ -370,6 +370,9 @@ struct I2CDriver{
|
|||
Semaphore semaphore;
|
||||
#endif
|
||||
#endif /* I2C_USE_MUTUAL_EXCLUSION */
|
||||
#if defined(I2C_DRIVER_EXT_FIELDS)
|
||||
I2C_DRIVER_EXT_FIELDS
|
||||
#endif
|
||||
/* End of the mandatory fields.*/
|
||||
/**
|
||||
* @brief Thread waiting for I/O completion.
|
||||
|
|
Loading…
Reference in New Issue