forked from len0rd/rockbox
Adapted to the new LED API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@309 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f95908c0a4
commit
fe6b82f9b3
1 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <lcd.h>
|
||||
#include <led.h>
|
||||
#include "led.h"
|
||||
|
||||
#define default_interrupt(name,number) \
|
||||
extern __attribute__((weak,alias("UIE" #number))) void name (void); void UIE##number (void)
|
||||
|
@ -317,8 +317,11 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
|
|||
|
||||
while (1)
|
||||
{
|
||||
led_toggle ();
|
||||
|
||||
bool state = TRUE;
|
||||
|
||||
led (state);
|
||||
state = state?FALSE:TRUE;
|
||||
|
||||
for (i = 0; i < 240000; ++i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue