diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-09 12:56:18 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-10 10:17:17 -0500 |
commit | 4977f07e6872d7253535a7ec67b153254e1c4088 (patch) | |
tree | c70d92497b2b9d60fb0b5e4f89428477f0d9d644 /c/src/lib/libbsp/i386/pc386/console/rtd316.h | |
parent | gumstix/include/bsp.h: Do not include libchip/serial to avoid conflicts when ... (diff) | |
download | rtems-4977f07e6872d7253535a7ec67b153254e1c4088.tar.bz2 |
i386/pc386: Eliminate multiple warnings
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/rtd316.h')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/rtd316.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/rtd316.h b/c/src/lib/libbsp/i386/pc386/console/rtd316.h index 6c3478cc65..aabad2c263 100644 --- a/c/src/lib/libbsp/i386/pc386/console/rtd316.h +++ b/c/src/lib/libbsp/i386/pc386/console/rtd316.h @@ -7,7 +7,7 @@ */ /* - * COPYRIGHT (c) 1989-2012. + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -47,6 +47,28 @@ rtems_device_driver rtd316_initialize( void *arg ); +/** + * @brief RTD316 Obtain Register Helper + * + * This method is used to read registers on the RTD316. + * + * @param[in] addr is the base address + * @param[in] reg is the register number + * + * @return This method returns the value of the register. + */ +uint8_t rtd316_com_get_register(uint32_t addr, uint8_t reg); + +/** + * @brief RTD316 Set Register Helper + * + * This method is used to set registers on the RTD316. + * + * @param[in] addr is the base address + * @param[in] reg is the register number + */ +void rtd316_com_set_register(uint32_t addr,uint8_t reg, uint8_t val); + #ifdef __cplusplus } #endif |