aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-21 18:44:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-21 18:44:45 +0000
commitc6599cb67878e246ea7fa1b7c5efba322156d7f4 (patch)
tree711c1f60a385f96f2d383b6d1a5dcc1ca5ec1089
parent1de70ad9c8dc8eb91837dbb1ae81fb0817a5159b (diff)
downloadChibiOS-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
-rw-r--r--testhal/STM32/ADC/main.c5
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);
}