File tree 5 files changed +5
-5
lines changed 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ extern "C" {
61
61
#define I2CAPI_I2C1_CLKSRC RCC_I2C1CLKSOURCE_SYSCLK
62
62
63
63
/* Provide the suitable timing depending on requested frequencie */
64
- inline uint32_t get_i2c_timing (int hz )
64
+ static inline uint32_t get_i2c_timing (int hz )
65
65
{
66
66
uint32_t tim = 0 ;
67
67
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ extern "C" {
48
48
#define I2CAPI_I2C3_CLKSRC RCC_I2C3CLKSOURCE_SYSCLK
49
49
50
50
/* Provide the suitable timing depending on requested frequencie */
51
- inline uint32_t get_i2c_timing (int hz )
51
+ static inline uint32_t get_i2c_timing (int hz )
52
52
{
53
53
uint32_t tim = 0 ;
54
54
/*
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ extern "C" {
49
49
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_PCLK1
50
50
51
51
/* Provide the suitable timing depending on requested frequencie */
52
- inline uint32_t get_i2c_timing (int hz )
52
+ static inline uint32_t get_i2c_timing (int hz )
53
53
{
54
54
uint32_t tim = 0 ;
55
55
/*
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ extern "C" {
61
61
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
62
62
63
63
/* Provide the suitable timing depending on requested frequencie */
64
- inline uint32_t get_i2c_timing (int hz )
64
+ static inline uint32_t get_i2c_timing (int hz )
65
65
{
66
66
uint32_t tim = 0 ;
67
67
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ extern "C" {
49
49
#define I2CAPI_I2C4_CLKSRC RCC_I2C4CLKSOURCE_SYSCLK
50
50
51
51
/* Provide the suitable timing depending on requested frequencie */
52
- inline uint32_t get_i2c_timing (int hz )
52
+ static inline uint32_t get_i2c_timing (int hz )
53
53
{
54
54
uint32_t tim = 0 ;
55
55
if (SystemCoreClock == 80000000 ) {
You can’t perform that action at this time.
0 commit comments