RTEMS 6.1-rc5
|
Macros | |
#define | __LL_SWPMI_CALC_BITRATE_PRESCALER(__FSWP__, __FSWPCLK__) ((uint32_t)(((__FSWPCLK__) / ((__FSWP__) * 4)) - 1)) |
Helper macro to calculate bit rate value to set in BRR register (LL_SWPMI_SetBitRatePrescaler function) | |
#define __LL_SWPMI_CALC_BITRATE_PRESCALER | ( | __FSWP__, | |
__FSWPCLK__ | |||
) | ((uint32_t)(((__FSWPCLK__) / ((__FSWP__) * 4)) - 1)) |
Helper macro to calculate bit rate value to set in BRR register (LL_SWPMI_SetBitRatePrescaler function)
__FSWP__ | Within the following range: from 100 Kbit/s up to 2Mbit/s (in bit/s) |
__FSWPCLK__ | PCLK or HSI frequency (in Hz) |
Bitrate | prescaler (BRR register) |