Fixed check for slave support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16210 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
c9f2cc4c73
commit
4a968c60bc
|
@ -66,11 +66,6 @@
|
|||
/* Derived constants and error checks. */
|
||||
/*===========================================================================*/
|
||||
|
||||
/* For compatibility, some LLDs could not export this.*/
|
||||
#if !defined(I2C_SUPPORTS_SLAVE_MODE)
|
||||
#define I2C_SUPPORTS_SLAVE_MODE FALSE
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver data structures and types. */
|
||||
/*===========================================================================*/
|
||||
|
@ -89,6 +84,11 @@ typedef enum {
|
|||
|
||||
#include "hal_i2c_lld.h"
|
||||
|
||||
/* For compatibility, some LLDs could not export this.*/
|
||||
#if !defined(I2C_SUPPORTS_SLAVE_MODE)
|
||||
#define I2C_SUPPORTS_SLAVE_MODE FALSE
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver macros. */
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue