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:
Jens Arnold 2007-11-06 00:36:39 +00:00
parent 86b7c2b408
commit 20a39f485a

View file

@ -33,18 +33,12 @@
inline void __backlight_on(void)
{
/* set port B03 on */
outl(((0x100 | 1) << 3), 0x6000d824);
/* set port L07 on */
GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7);
GPIO_SET_BITWISE(GPIOB_OUTPUT_VAL, 1<<3);
GPIO_SET_BITWISE(GPIOL_OUTPUT_VAL, 1<<7);
}
inline void __backlight_off(void)
{
/* set port B03 off */
outl(((0x100 | 0) << 3), 0x6000d824);
/* set port L07 off */
GPIOL_OUTPUT_VAL = ((0x100 | 0) << 7);
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 1<<3);
GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 1<<7);
}