Merge pull request #3577 from bridadan/fix_debug_build_stm

Fixes linking errors when building with debug profile
pull/3586/head
Anna Bridge 2017-01-13 14:15:37 +00:00 committed by GitHub
commit 469b54700b
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) {