git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@42 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
cb5757e032
commit
e313c04627
|
@ -24,11 +24,11 @@ void chSysPause(void) {
|
||||||
chThdSetPriority(IDLEPRIO);
|
chThdSetPriority(IDLEPRIO);
|
||||||
|
|
||||||
asm volatile (
|
asm volatile (
|
||||||
"ldi r18, 1 \n\t" // SE bit
|
"ldi r18, 1 \n\t" // SE bit
|
||||||
"out 0x33, r18 \n" // SMCR
|
"out 0x33, r18" // SMCR
|
||||||
);
|
);
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
asm volatile ("sleep\n\t");
|
asm volatile ("sleep");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue