git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3916 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
3268a6c4ab
commit
a0f9f4ad2b
|
@ -100,10 +100,8 @@ int main(void) {
|
||||||
* button EXT channel using 5 seconds intervals.
|
* button EXT channel using 5 seconds intervals.
|
||||||
*/
|
*/
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
EXTI->SWIER = 64;
|
|
||||||
chThdSleepMilliseconds(5000);
|
chThdSleepMilliseconds(5000);
|
||||||
extChannelDisable(&EXTD1, 0);
|
extChannelDisable(&EXTD1, 0);
|
||||||
EXTI->SWIER = 64;
|
|
||||||
chThdSleepMilliseconds(5000);
|
chThdSleepMilliseconds(5000);
|
||||||
extChannelEnable(&EXTD1, 0);
|
extChannelEnable(&EXTD1, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue