summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/system-dm320.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-12-15 05:35:02 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-12-15 05:35:02 +0000
commit716fc9e7f83a4a34c14cbd48e0541feae8be965b (patch)
treee016b07ec3a0b609e237ceef43f1a53f6de047e2 /firmware/target/arm/tms320dm320/system-dm320.c
parent6d52f54d8b8c85c09426f87add5f792d0b4f7abd (diff)
downloadrockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.tar.gz
rockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.zip
M:Robe 500: Initialize the buzzer and move it out of the LCD code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24001 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/system-dm320.c')
-rw-r--r--firmware/target/arm/tms320dm320/system-dm320.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c
index c189a873fe..58137ff102 100644
--- a/firmware/target/arm/tms320dm320/system-dm320.c
+++ b/firmware/target/arm/tms320dm320/system-dm320.c
@@ -199,6 +199,16 @@ void system_exception_wait(void)
199 199
200void system_init(void) 200void system_init(void)
201{ 201{
202 /* Pin 33 is connected to a buzzer, for an annoying sound set
203 * PWM0C == 0x3264
204 * PWM0H == 0x1932
205 * Function to 1
206 * Since this is not used in the FW, set it to a normal output at a zero
207 * level. */
208 /* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */
209 dm320_set_io(33, false, false, false, false, false, 0x00);
210 IO_GIO_BITCLR2 = 1<<1;
211
202 /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ 212 /* taken from linux/arch/arm/mach-itdm320-20/irq.c */
203 213
204 /* Clearing all FIQs and IRQs. */ 214 /* Clearing all FIQs and IRQs. */