forked from len0rd/rockbox
Do core interrupt masking in a less general fashion and save some instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
74d678fdbc
commit
af395f4db6
61 changed files with 381 additions and 278 deletions
|
|
@ -568,10 +568,10 @@ bool usb_charging_enable(bool on)
|
|||
#ifdef IRIVER_H300_SERIES
|
||||
int irqlevel;
|
||||
logf("usb_charging_enable(%s)\n", on ? "on" : "off" );
|
||||
irqlevel = set_irq_level(HIGHEST_IRQ_LEVEL);
|
||||
irqlevel = disable_irq_save();
|
||||
pcf50606_set_usb_charging(on);
|
||||
rc = on;
|
||||
(void)set_irq_level(irqlevel);
|
||||
restore_irq(irqlevel);
|
||||
#else
|
||||
/* TODO: implement it for other targets... */
|
||||
(void)on;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue