diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-21 18:44:45 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-21 18:44:45 +0000 |
commit | c6599cb67878e246ea7fa1b7c5efba322156d7f4 (patch) | |
tree | 711c1f60a385f96f2d383b6d1a5dcc1ca5ec1089 /testhal/STM32 | |
parent | 1de70ad9c8dc8eb91837dbb1ae81fb0817a5159b (diff) | |
download | ChibiOS-c6599cb67878e246ea7fa1b7c5efba322156d7f4.tar.gz ChibiOS-c6599cb67878e246ea7fa1b7c5efba322156d7f4.tar.bz2 ChibiOS-c6599cb67878e246ea7fa1b7c5efba322156d7f4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2413 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/ADC/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testhal/STM32/ADC/main.c b/testhal/STM32/ADC/main.c index 00c82b9fd..478500afe 100644 --- a/testhal/STM32/ADC/main.c +++ b/testhal/STM32/ADC/main.c @@ -93,8 +93,7 @@ int main(int argc, char **argv) { /*
* Setting up analog inputs used by the demo. */
- palSetGroupMode(IOPORT3,
- PAL_PORT_BIT(0) | PAL_PORT_BIT(1),
+ palSetGroupMode(GPIOC, PAL_PORT_BIT(0) | PAL_PORT_BIT(1),
PAL_MODE_INPUT_ANALOG);
/*
@@ -112,7 +111,7 @@ int main(int argc, char **argv) { * Normal main() thread activity, in this demo it does nothing.
*/
while (TRUE) {
- if (palReadPad(IOPORT1, GPIOA_BUTTON))
+ if (palReadPad(GPIOA, GPIOA_BUTTON))
adcStopConversion(&ADCD1);
chThdSleepMilliseconds(500);
}
|