Author | Rob Jansen, Copyright © 2021..2021 all rights reserved. |
Adapted-by | |
Compiler | 2.5r5 |
USART3 common functions. This file provides common functions to other libraries.
Based on the uart2_common.jal llibrary by Stef Mientki.
Baudrate can simply be set through a constant in the application program, because the baudrate depending registers are calculated by this unit. Baudrate is calculated, starting at the high baudrate flag, which will ensure the highest possible accuracy.
No dependency found
_calculate_and_set_baudrate3()
Title: Calculate and set baudrate Arguments: (none) Returns: (nothing) Notes: - Uses externally defined constant 'serial_hw_baudrate' to set baudrate registers and corresponding control bits Uses bit-constant 'usart_hw_serial' to determine mode of operation: * TRUE: Asynchronous communications (default) * FALSE: Synchronous communications