From 716fc9e7f83a4a34c14cbd48e0541feae8be965b Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 15 Dec 2009 05:35:02 +0000 Subject: 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 --- firmware/target/arm/tms320dm320/system-dm320.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/target/arm/tms320dm320/system-dm320.c') 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) void system_init(void) { + /* Pin 33 is connected to a buzzer, for an annoying sound set + * PWM0C == 0x3264 + * PWM0H == 0x1932 + * Function to 1 + * Since this is not used in the FW, set it to a normal output at a zero + * level. */ + /* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */ + dm320_set_io(33, false, false, false, false, false, 0x00); + IO_GIO_BITCLR2 = 1<<1; + /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ /* Clearing all FIQs and IRQs. */ -- cgit v1.2.3