/*! * @defgroup UART * @brief Asynchronous serial communication
UART pins on the MSPM0G3507
Pin Description
PA22 UART1 Rx from other microcontroller PA8 Tx
* @{*/ /** * @file UART2.h * @brief Initialize UART2, no transmit, interrupt on receive timeout * @details UART2 initialization. 2000 bps baud, * 1 start, 8 data bits, 1 stop, no parity.
* @version ECE319K v1.0 * @author your name * @copyright lab 8 solution, do not post, * @warning AS-IS * @note For more information see http://users.ece.utexas.edu/~valvano/ * @date October 29, 2023
UART pins on the MSPM0G3507
Pin Description
PA22 UART2 Rx from other microcontroller PA8 Tx
J14 Connect SW1 to PA9 (not PB23)
******************************************************************************/ #ifndef __UART2_H__ #define __UART2_H__ /** * initialize UART2 for 2000 bps baud rate.
* PA22 UART2 Rx from other microcontroller PA8 Tx
* no transmit, interrupt on receive timeout * @param none * @return none * @brief Initialize UART1 */ void UART2_Init(void); /** * Get new serial port receive data from FIFO1
* Return 0 if the FIFO1 is empty
* Return nonzero data from the FIFO1 if available * @param none * @return char ASCII code from other computer * @brief get data from FIFO1 */ char UART2_InChar(void); #endif // __UART2_H__ /** @}*/