mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-21 11:02:45 -05:00
Get rid of some more inl/outl, and use the new macros for bitwise GPIO manipulation. No functional change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
86b7c2b408
commit
20a39f485a
1 changed files with 4 additions and 10 deletions
|
|
@ -33,18 +33,12 @@
|
||||||
|
|
||||||
inline void __backlight_on(void)
|
inline void __backlight_on(void)
|
||||||
{
|
{
|
||||||
/* set port B03 on */
|
GPIO_SET_BITWISE(GPIOB_OUTPUT_VAL, 1<<3);
|
||||||
outl(((0x100 | 1) << 3), 0x6000d824);
|
GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 1<<7);
|
||||||
|
|
||||||
/* set port L07 on */
|
|
||||||
GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void __backlight_off(void)
|
inline void __backlight_off(void)
|
||||||
{
|
{
|
||||||
/* set port B03 off */
|
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 1<<3);
|
||||||
outl(((0x100 | 0) << 3), 0x6000d824);
|
GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 1<<7);
|
||||||
|
|
||||||
/* set port L07 off */
|
|
||||||
GPIOL_OUTPUT_VAL = ((0x100 | 0) << 7);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue