git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14846 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-09-28 13:57:33 +00:00
parent f17af0a7c1
commit 0f41984602
1 changed files with 2 additions and 4 deletions

View File

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