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
Brian Daniels 2017-01-12 15:09:28 -06:00
parent ccab2c5dae
commit 24a9a4824f
5 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;

View File

@ -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) {