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:
Giovanni Di Sirio 2023-04-09 06:22:09 +00:00
parent c9f2cc4c73
commit 4a968c60bc
1 changed files with 5 additions and 5 deletions

View File

@ -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. */
/*===========================================================================*/