hal_tick.h changed for the L432KC target in TARGET/../device/ in order to reassign the system ticker from TIM2 to TIM7, since TIM2 was needed as a 32bit encoder counter.
Dependents: Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32L4/i2c_device.h
- Revision:
- 156:95d6b41a828b
- Parent:
- 153:fa9ff456f731
--- a/targets/TARGET_STM/TARGET_STM32L4/i2c_device.h Thu Jan 05 10:51:54 2017 +0000 +++ b/targets/TARGET_STM/TARGET_STM32L4/i2c_device.h Mon Jan 16 15:03:32 2017 +0000 @@ -49,7 +49,7 @@ #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) {