OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [common/] [maps/] [map_uart.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/******************************************************************************
2
 * @file
3
 * @copyright Copyright 2015 GNSS Sensor Ltd. All right reserved.
4
 * @author    Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief     UART register mapping definition.
6
******************************************************************************/
7
 
8
#ifndef __MAP_UART_H__
9
#define __MAP_UART_H__
10
 
11
#include <inttypes.h>
12
 
13
static const uint32_t UART_STATUS_TX_FULL     = 0x00000001;
14
static const uint32_t UART_STATUS_TX_EMPTY    = 0x00000002;
15
static const uint32_t UART_STATUS_RX_FULL     = 0x00000010;
16
static const uint32_t UART_STATUS_RX_EMPTY    = 0x00000020;
17
static const uint32_t UART_STATUS_ERR_PARITY  = 0x00000100;
18
static const uint32_t UART_STATUS_ERR_STOPBIT = 0x00000200;
19
 
20
typedef struct uart_map {
21
    volatile uint32_t status;
22
    volatile uint32_t scaler;
23
    uint32_t rsrv[2];
24
    volatile uint32_t data;
25
} uart_map;
26
 
27
#endif  // __MAP_UART_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.