Home
last modified time | relevance | path

Searched refs:u32BaudRate (Results 1 – 3 of 3) sorted by relevance

/hal_nuvoton-3.4.0/m48x/StdDriver/inc/
Duart.h135 …efine UART_BAUD_MODE0_DIVIDER(u32SrcFreq, u32BaudRate) ((((u32SrcFreq) + ((u32BaudRate)*8ul)) /… argument
149 …efine UART_BAUD_MODE2_DIVIDER(u32SrcFreq, u32BaudRate) ((((u32SrcFreq) + ((u32BaudRate)/2ul)) /… argument
Dcan.h154 uint32_t CAN_SetBaudRate(CAN_T *tCAN, uint32_t u32BaudRate);
155 uint32_t CAN_Open(CAN_T *tCAN, uint32_t u32BaudRate, uint32_t u32Mode);
/hal_nuvoton-3.4.0/m48x/StdDriver/src/
Dcan.c748 uint32_t CAN_SetBaudRate(CAN_T *tCAN, uint32_t u32BaudRate) in CAN_SetBaudRate() argument
774 if(u32BaudRate >= (uint32_t)1000000) in CAN_SetBaudRate()
776 u32BaudRate = (uint32_t)1000000; in CAN_SetBaudRate()
780 if (u32BaudRate > (uint32_t)800000) in CAN_SetBaudRate()
784 else if (u32BaudRate > (uint32_t)500000) in CAN_SetBaudRate()
798 brp = clock_freq / (tsegall * u32BaudRate) + tseg % 2; in CAN_SetBaudRate()
808 error = u32BaudRate - rate; in CAN_SetBaudRate()
858 u32BaudRate = clock_freq / (best_brp * (tseg1 + tseg2 + 1)); in CAN_SetBaudRate()
868 return u32BaudRate; in CAN_SetBaudRate()
898 uint32_t CAN_Open(CAN_T *tCAN, uint32_t u32BaudRate, uint32_t u32Mode) in CAN_Open() argument
[all …]