mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14846 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
f17af0a7c1
commit
0f41984602
|
@ -134,13 +134,11 @@ int main(void) {
|
|||
chprintf((BaseSequentialStream *)&PORTAB_SD1, "Cumulative time: %8u cycles\r\n\r\n", (uint32_t)tm2.cumulative);
|
||||
|
||||
/*
|
||||
* Normal main() thread activity, if the button is pressed then the DAC
|
||||
* transfer is stopped.
|
||||
* Normal main() thread activity, does nothing but sleep.
|
||||
*/
|
||||
while (true) {
|
||||
if (palReadLine(PORTAB_LINE_BUTTON) == PORTAB_BUTTON_PRESSED) {
|
||||
}
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue