aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2015-02-26 21:11:51 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2015-02-26 21:11:51 +0100
commitf376aec4d8d0d1b9e32ae6af5611ba291d97bca2 (patch)
treeb3fcc36b29bccb4ee348f3b3b19cdf9c73aee46e /os
parent8a7ede5e0a05ae424cce37bc0d244ed2f3fa9670 (diff)
downloadChibiOS-Contrib-f376aec4d8d0d1b9e32ae6af5611ba291d97bca2.tar.gz
ChibiOS-Contrib-f376aec4d8d0d1b9e32ae6af5611ba291d97bca2.tar.bz2
ChibiOS-Contrib-f376aec4d8d0d1b9e32ae6af5611ba291d97bca2.zip
Changed the Tiva pal driver RCGCGPIO enable mask name.
Added a note about the RCGC register.
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/TIVA/LLD/pal_lld.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/hal/ports/TIVA/LLD/pal_lld.c b/os/hal/ports/TIVA/LLD/pal_lld.c
index 49b6426..7393b83 100644
--- a/os/hal/ports/TIVA/LLD/pal_lld.c
+++ b/os/hal/ports/TIVA/LLD/pal_lld.c
@@ -109,7 +109,7 @@
#define RCGCGPIOT 0
#endif
-#define RCGCGPIO_VALUE (RCGCGPIOA | RCGCGPIOB | RCGCGPIOC | RCGCGPIOD | \
+#define RCGCGPIO_MASK (RCGCGPIOA | RCGCGPIOB | RCGCGPIOC | RCGCGPIOD | \
RCGCGPIOE | RCGCGPIOF | RCGCGPIOG | RCGCGPIOH | \
RCGCGPIOJ | RCGCGPIOK | RCGCGPIOL | RCGCGPIOM | \
RCGCGPION | RCGCGPIOP | RCGCGPIOQ | RCGCGPIOR | \
@@ -165,8 +165,11 @@ void gpio_init (GPIO_TypeDef *gpiop, const tiva_gpio_setup_t *config)
*/
void _pal_lld_init(const PALConfig *config)
{
- SYSCTL->RCGCGPIO = RCGCGPIO_VALUE;
+ SYSCTL->RCGCGPIO = RCGCGPIO_MASK;
+ /* Datasheet chapter 5.2.6: "There must be a delay of 3 system clocks after a
+ * peripheral module clock is enabled in the RCGC register before any module
+ * registers are accessed." */
__NOP();
__NOP();
__NOP();