aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/TIVA/TM4C123x/PWM
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:34:58 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2016-10-30 14:34:58 +0100
commit4435bdec242f1518ee0b4fcf93d8eec4341697e3 (patch)
treead037b10cfca74926c6de7e2327807940af1d05d /testhal/TIVA/TM4C123x/PWM
parentd10aa9e7a136e41377f40a774fdf3bffb59b358b (diff)
downloadChibiOS-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/PWM')
-rw-r--r--testhal/TIVA/TM4C123x/PWM/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/testhal/TIVA/TM4C123x/PWM/main.c b/testhal/TIVA/TM4C123x/PWM/main.c
index 4772e6c..14fd967 100644
--- a/testhal/TIVA/TM4C123x/PWM/main.c
+++ b/testhal/TIVA/TM4C123x/PWM/main.c
@@ -20,27 +20,27 @@
static void pwmpcb(PWMDriver *pwmp)
{
(void)pwmp;
- palClearPad(GPIOF, GPIOF_LED_RED);
- palClearPad(GPIOF, GPIOF_LED_GREEN);
- palClearPad(GPIOF, GPIOF_LED_BLUE);
+ palClearLine(LINE_LED_RED);
+ palClearLine(LINE_LED_GREEN);
+ palClearLine(LINE_LED_BLUE);
}
static void pwmc1cb0(PWMDriver *pwmp)
{
(void)pwmp;
- palSetPad(GPIOF, GPIOF_LED_RED);
+ palSetLine(LINE_LED_RED);
}
static void pwmc1cb1(PWMDriver *pwmp)
{
(void)pwmp;
- palSetPad(GPIOF, GPIOF_LED_GREEN);
+ palSetLine(LINE_LED_GREEN);
}
static void pwmc1cb2(PWMDriver *pwmp)
{
(void)pwmp;
- palSetPad(GPIOF, GPIOF_LED_BLUE);
+ palSetLine(LINE_LED_BLUE);
}
static PWMConfig pwmcfg = {
@@ -74,9 +74,9 @@ int main(void)
halInit();
chSysInit();
- palSetPadMode(GPIOF, GPIOF_LED_RED, PAL_MODE_OUTPUT_PUSHPULL);
- palSetPadMode(GPIOF, GPIOF_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
- palSetPadMode(GPIOF, GPIOF_LED_BLUE, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_RED, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
+ palSetLineMode(LINE_LED_BLUE, PAL_MODE_OUTPUT_PUSHPULL);
/*
* Start PWM driver