From c6599cb67878e246ea7fa1b7c5efba322156d7f4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 21 Nov 2010 18:44:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2413 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/ADC/main.c | 5 ++--- 1 file 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); }