| Electronic Components Datasheet Search |
|
AN3123 Datasheet(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3123 Datasheet(HTML) 23 Page - STMicroelectronics |
|
23 / 30 page ![]() AN3123 OS-independent SPEAr UART HAL Doc ID 16862 Rev 2 23/30 10 OS-independent SPEAr UART HAL This section describes an OS independent hardware abstraction layer (HAL) for the SPEAr UART which you can use as a starting point for developing your own HAL code. 10.1 SetBaseDevice() This API sets the base address of the UART. static t_UARTError SetBaseDevice(volatile u32 *SPEAR_UART_APB_BASE, struct spear_uart_config *dev) ● UARTId: Identify the UART device If the UARTId is UART0 or UART1, then it is a valid input for it otherwise it is said to be an invalid UART ID. 10.2 GetBaudDivisor() This function returns the integer and fractional values of the baud rate divisor. static u32 GetBaudDivisor(t_UARTBaudRate BaudRate, u32 *IntegralVal) ● BaudRate: Baud rate to be configured ● IntegralVal - Baud rate divisor's integral value Baud rate is a constant value & can be selected from the table given below : Table 14. Baud rate values Option Value BAUD110 110 BAUD300 300 BAUD1200 1200 BAUD2400 2400 BAUD4800 4800 BAUD9600 9600 BAUD19200 19200 BAUD38400 38400 BAUD57600 57600 BAUD115200 115200 BAUD230400 230400 BAUD460800 460800 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |