diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2015-03-03 22:24:56 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2015-03-03 22:24:56 +0100 |
commit | df58a5cdb670c1ac44793a5f7d680447588439bf (patch) | |
tree | 20c8a40cff8163d4dc93f87ac15b261ef589f68e | |
parent | 0f7928dd8521ff07ebadb498b577aadb74df2285 (diff) | |
download | ChibiOS-Contrib-df58a5cdb670c1ac44793a5f7d680447588439bf.tar.gz ChibiOS-Contrib-df58a5cdb670c1ac44793a5f7d680447588439bf.tar.bz2 ChibiOS-Contrib-df58a5cdb670c1ac44793a5f7d680447588439bf.zip |
Changed the RT-TM4C1294-LAUNCHPAD demo to initialize the led pins to output push-pull.
-rw-r--r-- | demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c b/demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c index 1ef2874..86262f9 100644 --- a/demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c +++ b/demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c @@ -38,6 +38,9 @@ static msg_t blinkLed(void *arg) chRegSetThreadName("Blinker"); + /* Configure pin as push-pull output.*/ + palSetPadMode(ledConfig->port, ledConfig->pin, PAL_MODE_OUTPUT_PUSHPULL); + while (TRUE) { chThdSleepMilliseconds(ledConfig->sleep); palTogglePad(ledConfig->port, ledConfig->pin); |