diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-06 14:50:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-06 14:50:43 +0000 |
commit | e82fa8182eef943a9a85d1f5d39a6917eda6d13a (patch) | |
tree | c5922722d43c8821b6acef355dbebe138de754c8 /nuttx/configs/lpc4330-xplorer/src/up_autoleds.c | |
parent | 731439099b56dea8ffdcbecb5657ce327bd7252a (diff) | |
download | px4-nuttx-e82fa8182eef943a9a85d1f5d39a6917eda6d13a.tar.gz px4-nuttx-e82fa8182eef943a9a85d1f5d39a6917eda6d13a.tar.bz2 px4-nuttx-e82fa8182eef943a9a85d1f5d39a6917eda6d13a.zip |
Add LPC43 GPIO configurtion logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4912 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lpc4330-xplorer/src/up_autoleds.c')
-rw-r--r-- | nuttx/configs/lpc4330-xplorer/src/up_autoleds.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c index 89b2a1020..b19e33459 100644 --- a/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c +++ b/nuttx/configs/lpc4330-xplorer/src/up_autoleds.c @@ -124,8 +124,8 @@ #ifdef LED_VERBOSE static void led_dumppins(FAR const char *msg) { - lpc43_dumppinconfig(PINCONFIG_LED1, msg); - lpc43_dumpgpio(GPIO_LED2, msg); + lpc43_pin_dump(PINCONFIG_LED1, msg); + lpc43_gpio_dump(GPIO_LED2, msg); } #else # define led_dumppins(m) @@ -147,11 +147,11 @@ void up_ledinit(void) /* Configure LED pins as GPIOs, then configure GPIOs as outputs */ - lpc43_pinconfig(PINCONFIG_LED1); - lpc43_gpioconfig(GPIO_LED1); + lpc43_pin_config(PINCONFIG_LED1); + lpc43_gpio_config(GPIO_LED1); - lpc43_pinconfig(PINCONFIG_LED2); - lpc43_gpioconfig(GPIO_LED2); + lpc43_pin_config(PINCONFIG_LED2); + lpc43_gpio_config(GPIO_LED2); led_dumppins("up_ledinit() Exit"); } @@ -166,17 +166,17 @@ void up_ledon(int led) { default: case 0: - lpc43_gpiowrite(GPIO_LED1, true); /* LED1 OFF */ - lpc43_gpiowrite(GPIO_LED2, true); /* LED2 OFF */ + lpc43_gpio_write(GPIO_LED1, true); /* LED1 OFF */ + lpc43_gpio_write(GPIO_LED2, true); /* LED2 OFF */ break; case 1: - lpc43_gpiowrite(GPIO_LED1, false); /* LED1 ON */ - lpc43_gpiowrite(GPIO_LED2, true); /* LED2 OFF */ + lpc43_gpio_write(GPIO_LED1, false); /* LED1 ON */ + lpc43_gpio_write(GPIO_LED2, true); /* LED2 OFF */ break; case 2: - lpc43_gpiowrite(GPIO_LED2, false); /* LED2 ON */ + lpc43_gpio_write(GPIO_LED2, false); /* LED2 ON */ break; } } @@ -195,7 +195,7 @@ void up_ledoff(int led) break; case 2: - lpc43_gpiowrite(GPIO_LED2, true); /* LED2 OFF */ + lpc43_gpio_write(GPIO_LED2, true); /* LED2 OFF */ break; } } |