git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8481 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8beb4eb166
commit
a4d9054506
|
@ -27,9 +27,9 @@ static THD_FUNCTION(Thread1, arg) {
|
|||
(void)arg;
|
||||
chRegSetThreadName("blinker");
|
||||
while (true) {
|
||||
palClearPad(GPIOA, GPIOA_LED_GREEN);
|
||||
palClearLine(LINE_LED_GREEN);
|
||||
chThdSleepMilliseconds(500);
|
||||
palSetPad(GPIOA, GPIOA_LED_GREEN);
|
||||
palSetLine(LINE_LED_GREEN);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ int main(void) {
|
|||
* sleeping in a loop and check the button state.
|
||||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
if (!palReadLine(LINE_BUTTON))
|
||||
TestThread(&SD2);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue