diff options
| author | Thom Johansen <thomj@rockbox.org> | 2006-01-24 22:31:57 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2006-01-24 22:31:57 +0000 |
| commit | 22e6c02f8e5eb1cc2af0b41291fa615936fa59db (patch) | |
| tree | 9de0f0a81cfdd1d5c6b69041bd16e2bccabbfe6f /firmware/drivers/button.c | |
| parent | 289ec0164b77b4c6b35b818efc881c6d8b479e9f (diff) | |
| download | rockbox-22e6c02f8e5eb1cc2af0b41291fa615936fa59db.zip rockbox-22e6c02f8e5eb1cc2af0b41291fa615936fa59db.tar.gz rockbox-22e6c02f8e5eb1cc2af0b41291fa615936fa59db.tar.bz2 rockbox-22e6c02f8e5eb1cc2af0b41291fa615936fa59db.tar.xz | |
Removed PP5020_ prefix from register defines and added/renamed some
defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8438 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
| -rw-r--r-- | firmware/drivers/button.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 143d457..fc9cc7a 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -203,7 +203,7 @@ static int ipod_4g_button_read(void) void ipod_4g_button_int(void) { - PP5020_CPU_HI_INT_CLR = PP5020_I2C_MASK; + CPU_HI_INT_CLR = I2C_MASK; udelay(250); outl(0x0, 0x7000c140); int_btn = ipod_4g_button_read(); @@ -211,8 +211,8 @@ void ipod_4g_button_int(void) outl(0x400a1f00, 0x7000c100); GPIOB_OUTPUT_VAL |= 0x10; - PP5020_CPU_INT_EN = 0x40000000; - PP5020_CPU_HI_INT_EN = PP5020_I2C_MASK; + CPU_INT_EN = 0x40000000; + CPU_HI_INT_EN = I2C_MASK; } #endif @@ -397,8 +397,8 @@ void button_init(void) GPIOA_INT_CLR = GPIOA_INT_STAT & 0x20; /* enable interrupts */ GPIOA_INT_EN = 0x20; - PP5020_CPU_INT_EN = 0x40000000; - PP5020_CPU_HI_INT_EN = PP5020_I2C_MASK; + CPU_INT_EN = 0x40000000; + CPU_HI_INT_EN = I2C_MASK; #endif /* CONFIG_KEYPAD */ queue_init(&button_queue); |