diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2015-02-16 21:49:29 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2015-02-16 21:49:29 +0100 |
commit | 7b73ccd1d023a9db2b96e1563bbe995806d7356b (patch) | |
tree | 6afcd496a6d4656cbe7c1c68d978c50df4fb009e /os/hal/ports/TIVA/LLD | |
parent | 59499bd0cf2a1b1f604969207d9d488943bf798d (diff) | |
download | ChibiOS-Contrib-7b73ccd1d023a9db2b96e1563bbe995806d7356b.tar.gz ChibiOS-Contrib-7b73ccd1d023a9db2b96e1563bbe995806d7356b.tar.bz2 ChibiOS-Contrib-7b73ccd1d023a9db2b96e1563bbe995806d7356b.zip |
Added basic demo for TM4C1294 Connected Launchpad with LwIP.
Diffstat (limited to 'os/hal/ports/TIVA/LLD')
-rw-r--r-- | os/hal/ports/TIVA/LLD/pal_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/TIVA/LLD/serial_lld.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/ports/TIVA/LLD/pal_lld.c b/os/hal/ports/TIVA/LLD/pal_lld.c index 9939331..657f982 100644 --- a/os/hal/ports/TIVA/LLD/pal_lld.c +++ b/os/hal/ports/TIVA/LLD/pal_lld.c @@ -165,7 +165,7 @@ void gpio_init (GPIO_TypeDef *gpiop, const tiva_gpio_setup_t *config) */ void _pal_lld_init(const PALConfig *config) { - SYSCTL->RCGC.GPIO = RCGCGPIO_VALUE; + SYSCTL->RCGCGPIO = RCGCGPIO_VALUE; __NOP(); __NOP(); diff --git a/os/hal/ports/TIVA/LLD/serial_lld.c b/os/hal/ports/TIVA/LLD/serial_lld.c index 9238942..92761dc 100644 --- a/os/hal/ports/TIVA/LLD/serial_lld.c +++ b/os/hal/ports/TIVA/LLD/serial_lld.c @@ -507,7 +507,7 @@ void sd_lld_start(SerialDriver *sdp, const SerialConfig *config) if (sdp->state == SD_STOP) { #if TIVA_SERIAL_USE_UART0 if (&SD1 == sdp) { - SYSCTL->RCGC.UART |= (1 << 0); + SYSCTL->RCGCUART |= (1 << 0); nvicEnableVector(TIVA_UART0_NUMBER, TIVA_SERIAL_UART0_PRIORITY); } #endif @@ -570,7 +570,7 @@ void sd_lld_stop(SerialDriver *sdp) uart_deinit(sdp->uart); #if TIVA_SERIAL_USE_UART0 if (&SD1 == sdp) { - SYSCTL->RCGC.UART &= ~(1 << 0); /* disable UART0 module */ + SYSCTL->RCGCUART &= ~(1 << 0); /* disable UART0 module */ nvicDisableVector(TIVA_UART0_NUMBER); return; } |