mirror of https://github.com/ARMmbed/mbed-os.git
Fixes linking errors when building with debug profile
When building with the debug profile, certain ST plaforms error with 'get_i2c_timing' not being defined. This is because the function is not defined as 'static inline', but just 'inline'.pull/3577/head
parent
ccab2c5dae
commit
24a9a4824f
|
@ -61,7 +61,7 @@ extern "C" {
|
|||
#define I2CAPI_I2C1_CLKSRC RCC_I2C1CLKSOURCE_SYSCLK
|
||||
|
||||
/* Provide the suitable timing depending on requested frequencie */
|
||||
inline uint32_t get_i2c_timing(int hz)
|
||||
static inline uint32_t get_i2c_timing(int hz)
|
||||
{
|
||||
uint32_t tim = 0;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ extern "C" {
|
|||
#define I2CAPI_I2C3_CLKSRC RCC_I2C3CLKSOURCE_SYSCLK
|
||||
|
||||
/* Provide the suitable timing depending on requested frequencie */
|
||||
inline uint32_t get_i2c_timing(int hz)
|
||||
static inline uint32_t get_i2c_timing(int hz)
|
||||
{
|
||||
uint32_t tim = 0;
|
||||
/*
|
||||
|
|
|
@ -49,7 +49,7 @@ extern "C" {
|
|||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_PCLK1
|
||||
|
||||
/* Provide the suitable timing depending on requested frequencie */
|
||||
inline uint32_t get_i2c_timing(int hz)
|
||||
static inline uint32_t get_i2c_timing(int hz)
|
||||
{
|
||||
uint32_t tim = 0;
|
||||
/*
|
||||
|
|
|
@ -61,7 +61,7 @@ extern "C" {
|
|||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
||||
|
||||
/* Provide the suitable timing depending on requested frequencie */
|
||||
inline uint32_t get_i2c_timing(int hz)
|
||||
static inline uint32_t get_i2c_timing(int hz)
|
||||
{
|
||||
uint32_t tim = 0;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ extern "C" {
|
|||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
||||
|
||||
/* Provide the suitable timing depending on requested frequencie */
|
||||
inline uint32_t get_i2c_timing(int hz)
|
||||
static inline uint32_t get_i2c_timing(int hz)
|
||||
{
|
||||
uint32_t tim = 0;
|
||||
if (SystemCoreClock == 80000000) {
|
||||
|
|
Loading…
Reference in New Issue