Changed the Tiva pal driver RCGCGPIO enable mask name.

Added a note about the RCGC register.
This commit is contained in:
marcoveeneman 2015-02-26 21:11:51 +01:00
parent 8a7ede5e0a
commit f376aec4d8
1 changed files with 5 additions and 2 deletions

View File

@ -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();