diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2016-10-30 14:34:58 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2016-10-30 14:34:58 +0100 |
commit | 4435bdec242f1518ee0b4fcf93d8eec4341697e3 (patch) | |
tree | ad037b10cfca74926c6de7e2327807940af1d05d /testhal/TIVA/TM4C123x/GPT/main.c | |
parent | d10aa9e7a136e41377f40a774fdf3bffb59b358b (diff) | |
download | ChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.tar.gz ChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.tar.bz2 ChibiOS-Contrib-4435bdec242f1518ee0b4fcf93d8eec4341697e3.zip |
Replaced port+pad by line in the demos and testhal.
Diffstat (limited to 'testhal/TIVA/TM4C123x/GPT/main.c')
-rw-r--r-- | testhal/TIVA/TM4C123x/GPT/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testhal/TIVA/TM4C123x/GPT/main.c b/testhal/TIVA/TM4C123x/GPT/main.c index 4e19b14..f92b13b 100644 --- a/testhal/TIVA/TM4C123x/GPT/main.c +++ b/testhal/TIVA/TM4C123x/GPT/main.c @@ -23,7 +23,7 @@ static void gpt1cb(GPTDriver *gptp) { (void)gptp; - palClearPad(GPIOF, GPIOF_LED_RED); + palClearLine(LINE_LED_RED); } /* @@ -32,7 +32,7 @@ static void gpt1cb(GPTDriver *gptp) static void gpt7cb(GPTDriver *gptp) { (void)gptp; - palSetPad(GPIOF, GPIOF_LED_RED); + palSetLine(LINE_LED_RED); chSysLockFromISR(); gptStartOneShotI(&GPTD1, 31250); /* 0.1 second pulse.*/ chSysUnlockFromISR(); @@ -71,7 +71,7 @@ int main(void) halInit(); chSysInit(); - palSetPadMode(GPIOF, GPIOF_LED_RED, PAL_MODE_OUTPUT_PUSHPULL); + palSetLineMode(LINE_LED_RED, PAL_MODE_OUTPUT_PUSHPULL); /* * Start the gpt drivers with the custom configurations. |