diff options
| author | marcoveeneman <marco-veeneman@hotmail.com> | 2016-11-21 22:26:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-21 22:26:49 +0100 |
| commit | 7f7fe88e1473a15b46fe8a64c856932183f40047 (patch) | |
| tree | 86fb27ce70abbb6a9e8a6504aedc84d70688fc76 /testhal/TIVA/TM4C123x/GPT/main.c | |
| parent | 319c9f9ee259cc7ae05bbff952b149118e6dc032 (diff) | |
| parent | f6f6bf3918d0534606d5b9ecb48f22624e9369c0 (diff) | |
| download | ChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.tar.gz ChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.tar.bz2 ChibiOS-Contrib-7f7fe88e1473a15b46fe8a64c856932183f40047.zip | |
Merge pull request #100 from marcoveeneman/tiva-improvements
Tiva improvements
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. |
