From df58a5cdb670c1ac44793a5f7d680447588439bf Mon Sep 17 00:00:00 2001 From: marcoveeneman Date: Tue, 3 Mar 2015 22:24:56 +0100 Subject: Changed the RT-TM4C1294-LAUNCHPAD demo to initialize the led pins to output push-pull. --- demos/TIVA/RT-TM4C1294-LAUNCHPAD/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'demos/TIVA') 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); -- cgit v1.2.3