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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [common/] [libsoc/] [src/] [hw.h] - Diff between revs 229 and 236

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 229 Rev 236
Line 15... Line 15...
#define UART_RX             (0x20000000)    /**< Addr of RX buffer */
#define UART_RX             (0x20000000)    /**< Addr of RX buffer */
#define UART_STATUS         (0x20000004)    /**< Addr of status register */
#define UART_STATUS         (0x20000004)    /**< Addr of status register */
#define UART_RXRDY_MASK     (0x00000002)    /**< Flag mask for 'RX ready' */
#define UART_RXRDY_MASK     (0x00000002)    /**< Flag mask for 'RX ready' */
#define UART_TXRDY_MASK     (0x00000001)    /**< Flag mask for 'TX ready' */
#define UART_TXRDY_MASK     (0x00000001)    /**< Flag mask for 'TX ready' */
 
 
 
#define GPIO_P0             (0x20001000)    /**< P0 output register */
 
#define GPIO_P1             (0x20001004)    /**< P1 input register */
 
 
 
#define WRPORT(p,v)         *((volatile unsigned int *)(GPIO_P0+(p*4)))=v
 
#define RDPORT(p)           (*((volatile unsigned int *)(GPIO_P0+(p*4))))    
 
 
#endif // HW_H_INCLUDED
#endif // HW_H_INCLUDED
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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