URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [examples/] [common/] [maps/] [map_uart.h] - Rev 5
Compare with Previous | Blame | View Log
/****************************************************************************** * @file * @copyright Copyright 2015 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief UART register mapping definition. ******************************************************************************/ #ifndef __MAP_UART_H__ #define __MAP_UART_H__ #include <inttypes.h> static const uint32_t UART_STATUS_TX_FULL = 0x00000001; static const uint32_t UART_STATUS_TX_EMPTY = 0x00000002; static const uint32_t UART_STATUS_RX_FULL = 0x00000010; static const uint32_t UART_STATUS_RX_EMPTY = 0x00000020; static const uint32_t UART_STATUS_ERR_PARITY = 0x00000100; static const uint32_t UART_STATUS_ERR_STOPBIT = 0x00000200; typedef struct uart_map { volatile uint32_t status; volatile uint32_t scaler; uint32_t rsrv[2]; volatile uint32_t data; } uart_map; #endif // __MAP_UART_H__