mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3577 from bridadan/fix_debug_build_stm
Fixes linking errors when building with debug profilepull/3586/head
commit
469b54700b
|
@ -61,7 +61,7 @@ extern "C" {
|
||||||
#define I2CAPI_I2C1_CLKSRC RCC_I2C1CLKSOURCE_SYSCLK
|
#define I2CAPI_I2C1_CLKSRC RCC_I2C1CLKSOURCE_SYSCLK
|
||||||
|
|
||||||
/* Provide the suitable timing depending on requested frequencie */
|
/* 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;
|
uint32_t tim = 0;
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ extern "C" {
|
||||||
#define I2CAPI_I2C3_CLKSRC RCC_I2C3CLKSOURCE_SYSCLK
|
#define I2CAPI_I2C3_CLKSRC RCC_I2C3CLKSOURCE_SYSCLK
|
||||||
|
|
||||||
/* Provide the suitable timing depending on requested frequencie */
|
/* 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;
|
uint32_t tim = 0;
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -49,7 +49,7 @@ extern "C" {
|
||||||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_PCLK1
|
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_PCLK1
|
||||||
|
|
||||||
/* Provide the suitable timing depending on requested frequencie */
|
/* 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;
|
uint32_t tim = 0;
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -61,7 +61,7 @@ extern "C" {
|
||||||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
||||||
|
|
||||||
/* Provide the suitable timing depending on requested frequencie */
|
/* 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;
|
uint32_t tim = 0;
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ extern "C" {
|
||||||
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
|
||||||
|
|
||||||
/* Provide the suitable timing depending on requested frequencie */
|
/* 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;
|
uint32_t tim = 0;
|
||||||
if (SystemCoreClock == 80000000) {
|
if (SystemCoreClock == 80000000) {
|
||||||
|
|
Loading…
Reference in New Issue