Skip to content

Commit 469b547

Browse files
authored
Merge pull request #3577 from bridadan/fix_debug_build_stm
Fixes linking errors when building with debug profile
2 parents 74f192a + 24a9a48 commit 469b547

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

targets/TARGET_STM/TARGET_STM32F0/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extern "C" {
6161
#define I2CAPI_I2C1_CLKSRC RCC_I2C1CLKSOURCE_SYSCLK
6262

6363
/* Provide the suitable timing depending on requested frequencie */
64-
inline uint32_t get_i2c_timing(int hz)
64+
static inline uint32_t get_i2c_timing(int hz)
6565
{
6666
uint32_t tim = 0;
6767

targets/TARGET_STM/TARGET_STM32F3/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" {
4848
#define I2CAPI_I2C3_CLKSRC RCC_I2C3CLKSOURCE_SYSCLK
4949

5050
/* Provide the suitable timing depending on requested frequencie */
51-
inline uint32_t get_i2c_timing(int hz)
51+
static inline uint32_t get_i2c_timing(int hz)
5252
{
5353
uint32_t tim = 0;
5454
/*

targets/TARGET_STM/TARGET_STM32F7/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_PCLK1
5050

5151
/* Provide the suitable timing depending on requested frequencie */
52-
inline uint32_t get_i2c_timing(int hz)
52+
static inline uint32_t get_i2c_timing(int hz)
5353
{
5454
uint32_t tim = 0;
5555
/*

targets/TARGET_STM/TARGET_STM32L0/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extern "C" {
6161
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
6262

6363
/* Provide the suitable timing depending on requested frequencie */
64-
inline uint32_t get_i2c_timing(int hz)
64+
static inline uint32_t get_i2c_timing(int hz)
6565
{
6666
uint32_t tim = 0;
6767

targets/TARGET_STM/TARGET_STM32L4/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
5050

5151
/* Provide the suitable timing depending on requested frequencie */
52-
inline uint32_t get_i2c_timing(int hz)
52+
static inline uint32_t get_i2c_timing(int hz)
5353
{
5454
uint32_t tim = 0;
5555
if (SystemCoreClock == 80000000) {

0 commit comments

Comments
 (0)