Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:04

0001 /**
0002  * @file
0003  *
0004  * @ingroup raspberrypi_usart
0005  *
0006  * @brief USART support.
0007  */
0008 
0009 
0010 /**
0011  * @defgroup raspberrypi_usart USART Support
0012  *
0013  * @ingroup RTEMSBSPsARMRaspberryPi
0014  *
0015  * @brief Universal Synchronous/Asynchronous Receiver/Transmitter (USART) Support
0016  */
0017 
0018 /*
0019  * Copyright (c) 2013 Alan Cudmore.
0020  *
0021  * The license and distribution terms for this file may be
0022  * found in the file LICENSE in this distribution or at
0023  * http://www.rtems.org/license/LICENSE
0024  */
0025 
0026 #ifndef LIBBSP_ARM_RASPBERRYPI_USART_H
0027 #define LIBBSP_ARM_RASPBERRYPI_USART_H
0028 
0029 #include <libchip/serial.h>
0030 
0031 #ifdef __cplusplus
0032 extern "C" {
0033 #endif /* __cplusplus */
0034 
0035 #define PL011_DEFAULT_BAUD 115000
0036 #define MINI_UART_DEFAULT_BAUD   115200
0037 #define BCM2835_PL011_BASE (RPI_PERIPHERAL_BASE + 0x201000)
0038 
0039 #ifdef __cplusplus
0040 }
0041 #endif /* __cplusplus */
0042 
0043 #endif /* LIBBSP_ARM_RASPBERRYPI_USART_H */