forked from Imagelibrary/rtems
* Fixes #5256.
* Specify an initial baud rate to use during startup.
After the PL011 code refactor in
0f42153959, an initial baud rate
is required. arm_pl011_first_open is called from boot_card and
will fail without a baud rate specified. This can cause certain
future uses of /dev/console, such as opening a shell, to fail.
42 lines
778 B
C
42 lines
778 B
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup raspberrypi_usart
|
|
*
|
|
* @brief USART support.
|
|
*/
|
|
|
|
|
|
/**
|
|
* @defgroup raspberrypi_usart USART Support
|
|
*
|
|
* @ingroup RTEMSBSPsARMRaspberryPi
|
|
*
|
|
* @brief Universal Synchronous/Asynchronous Receiver/Transmitter (USART) Support
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2013 Alan Cudmore.
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.org/license/LICENSE
|
|
*/
|
|
|
|
#ifndef LIBBSP_ARM_RASPBERRYPI_USART_H
|
|
#define LIBBSP_ARM_RASPBERRYPI_USART_H
|
|
|
|
#include <libchip/serial.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#define BCM2835_PL011_BASE (RPI_PERIPHERAL_BASE + 0x201000)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* LIBBSP_ARM_RASPBERRYPI_USART_H */
|