Skip to content

Fixes linking errors when building with debug profile #3577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32F0/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32F3/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32F7/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32L0/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32L4/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down