git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2413 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2010-11-21 18:44:45 +00:00
parent 1de70ad9c8
commit c6599cb678
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}