From ea907b31ae6595fc2b92e2da5da3cb12d4a6abff Mon Sep 17 00:00:00 2001 From: Tobias Diedrich Date: Tue, 6 Apr 2010 18:32:47 +0000 Subject: Detect C200v2 variant by reading A7, use A5 or A7 to control backlight and buttonlight depending on the result. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25499 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/debug-as3525.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'firmware/target/arm/as3525/debug-as3525.c') diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index 9f7b46df8e..06c22c027c 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c @@ -256,6 +256,21 @@ bool __dbg_hw_info(void) { while(1) { +#ifdef SANSA_C200V2 + lcd_clear_display(); + line = 0; + lcd_puts(0, line++, "[Submodel:]"); + lcd_putsf(0, line++, "C200v2 variant %d", c200v2_variant); + lcd_update(); + int btn = button_get(1); + if(btn == (DEBUG_CANCEL|BUTTON_REL)) + goto end; + else if(btn == (BUTTON_DOWN|BUTTON_REL)) + break; + } + while(1) + { +#endif lcd_clear_display(); line = 0; lcd_puts(0, line++, "[Clock Frequencies:]"); -- cgit v1.2.3