forked from len0rd/rockbox
Made set_irq_level() an inline function, and optimized it by removing the bit shifts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4330 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aa5b23d616
commit
111a972b65
8 changed files with 25 additions and 22 deletions
3
docs/API
3
docs/API
|
@ -227,7 +227,8 @@ Various
|
|||
int set_irq_level(int level)
|
||||
|
||||
Sets the interrupt level (0 = lowest, 15 = highest) and returns the
|
||||
previous level.
|
||||
previous level. Note that you must shift the argument 4 bits to the left:
|
||||
set_irq_level(level << 4);
|
||||
|
||||
void queue_init(struct event_queue *q)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue