Skip to content

Commit c41935a

Browse files
committed
Update ChibiOS HAL to v9.0
- Add new define for I2C slave mode.
1 parent d7d581b commit c41935a

File tree

14 files changed

+113
-15
lines changed

14 files changed

+113
-15
lines changed

targets/AzureRTOS/ST/ORGPAL_PALTHREE/nanoBooter/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include "mcuconf.h"
2727

@@ -297,6 +297,13 @@
297297
/* I2C driver related settings. */
298298
/*===========================================================================*/
299299

300+
/**
301+
* @brief Enables the I2C slave subsystem.
302+
*/
303+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
304+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
305+
#endif
306+
300307
/**
301308
* @brief Enables the mutual exclusion APIs on the I2C bus.
302309
*/

targets/AzureRTOS/ST/ORGPAL_PALTHREE/nanoCLR/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include <target_platform.h>
2727
#include "mcuconf.h"
@@ -308,6 +308,13 @@
308308
/* I2C driver related settings. */
309309
/*===========================================================================*/
310310

311+
/**
312+
* @brief Enables the I2C slave subsystem.
313+
*/
314+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
315+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
316+
#endif
317+
311318
/**
312319
* @brief Enables the mutual exclusion APIs on the I2C bus.
313320
*/

targets/AzureRTOS/ST/ST_B_L475E_IOT01A/nanoBooter/halconf.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include "mcuconf.h"
2727

@@ -297,6 +297,13 @@
297297
/* I2C driver related settings. */
298298
/*===========================================================================*/
299299

300+
/**
301+
* @brief Enables the I2C slave subsystem.
302+
*/
303+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
304+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
305+
#endif
306+
300307
/**
301308
* @brief Enables the mutual exclusion APIs on the I2C bus.
302309
*/
@@ -546,4 +553,4 @@
546553

547554
/** @} */
548555

549-
// clang-format on
556+
// clang-format on

targets/AzureRTOS/ST/ST_B_L475E_IOT01A/nanoCLR/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include <target_platform.h>
2727
#include "mcuconf.h"
@@ -308,6 +308,13 @@
308308
/* I2C driver related settings. */
309309
/*===========================================================================*/
310310

311+
/**
312+
* @brief Enables the I2C slave subsystem.
313+
*/
314+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
315+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
316+
#endif
317+
311318
/**
312319
* @brief Enables the mutual exclusion APIs on the I2C bus.
313320
*/

targets/ChibiOS/ORGPAL_PALTHREE/nanoBooter/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include "mcuconf.h"
2727

@@ -297,6 +297,13 @@
297297
/* I2C driver related settings. */
298298
/*===========================================================================*/
299299

300+
/**
301+
* @brief Enables the I2C slave subsystem.
302+
*/
303+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
304+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
305+
#endif
306+
300307
/**
301308
* @brief Enables the mutual exclusion APIs on the I2C bus.
302309
*/

targets/ChibiOS/ORGPAL_PALTHREE/nanoCLR/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include <target_platform.h>
2727
#include "mcuconf.h"
@@ -309,6 +309,13 @@
309309
/* I2C driver related settings. */
310310
/*===========================================================================*/
311311

312+
/**
313+
* @brief Enables the I2C slave subsystem.
314+
*/
315+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
316+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
317+
#endif
318+
312319
/**
313320
* @brief Enables the mutual exclusion APIs on the I2C bus.
314321
*/

targets/ChibiOS/ORGPAL_PALX/nanoBooter/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include "mcuconf.h"
2727

@@ -297,6 +297,13 @@
297297
/* I2C driver related settings. */
298298
/*===========================================================================*/
299299

300+
/**
301+
* @brief Enables the I2C slave subsystem.
302+
*/
303+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
304+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
305+
#endif
306+
300307
/**
301308
* @brief Enables the mutual exclusion APIs on the I2C bus.
302309
*/

targets/ChibiOS/ORGPAL_PALX/nanoCLR/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include <target_platform.h>
2727
#include "mcuconf.h"
@@ -308,6 +308,13 @@
308308
/* I2C driver related settings. */
309309
/*===========================================================================*/
310310

311+
/**
312+
* @brief Enables the I2C slave subsystem.
313+
*/
314+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
315+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
316+
#endif
317+
311318
/**
312319
* @brief Enables the mutual exclusion APIs on the I2C bus.
313320
*/

targets/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include "mcuconf.h"
2727

@@ -297,6 +297,13 @@
297297
/* I2C driver related settings. */
298298
/*===========================================================================*/
299299

300+
/**
301+
* @brief Enables the I2C slave subsystem.
302+
*/
303+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
304+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
305+
#endif
306+
300307
/**
301308
* @brief Enables the mutual exclusion APIs on the I2C bus.
302309
*/

targets/ChibiOS/ST_NUCLEO64_F091RC/nanoCLR/halconf.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define HALCONF_H
2222

2323
#define _CHIBIOS_HAL_CONF_
24-
#define _CHIBIOS_HAL_CONF_VER_8_4_
24+
#define _CHIBIOS_HAL_CONF_VER_9_0_
2525

2626
#include <target_platform.h>
2727
#include "mcuconf.h"
@@ -309,6 +309,13 @@
309309
/* I2C driver related settings. */
310310
/*===========================================================================*/
311311

312+
/**
313+
* @brief Enables the I2C slave subsystem.
314+
*/
315+
#if !defined(I2C_SUPPORTS_SLAVE_MODE) || defined(__DOXYGEN__)
316+
#define I2C_SUPPORTS_SLAVE_MODE FALSE
317+
#endif
318+
312319
/**
313320
* @brief Enables the mutual exclusion APIs on the I2C bus.
314321
*/

0 commit comments

Comments
 (0)