Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fuzev2: fix buttonlight flashing on µSD access (2nd try)

it would still flash when the light was off
it turns out that if B5 is set to input the light can't be turned on
but we can still select between µSD slot and internal storage

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26059 a1c6a512-1295-4272-9138-f99709370657

+2 -5
+2 -3
firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
··· 35 35 36 36 bool _backlight_init(void) 37 37 { 38 - GPIOB_DIR |= 1<<5; /* for buttonlight, stuff below seems to be needed 39 - for buttonlight as well*/ 40 - 41 38 ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x80); 42 39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10); 43 40 ··· 62 59 63 60 void _buttonlight_on(void) 64 61 { 62 + GPIOB_DIR |= 1<<5; 65 63 GPIOB_PIN(5) = (1<<5); 66 64 buttonlight_is_on = 1; 67 65 } ··· 69 67 void _buttonlight_off(void) 70 68 { 71 69 GPIOB_PIN(5) = 0; 70 + GPIOB_DIR &= ~(1<<5); 72 71 buttonlight_is_on = 0; 73 72 }
-2
firmware/target/arm/as3525/sd-as3525v2.c
··· 700 700 /* Rx watermark = 63(sd reads) Tx watermark = 128 (sd writes) */ 701 701 MCI_FIFOTH = (MCI_FIFOTH & MCI_FIFOTH_MASK) | 0x503f0080; 702 702 703 - GPIOB_DIR |= (1<<5); /* Set pin B5 to output */ 704 - 705 703 /* Mask all MCI Interrupts initially */ 706 704 MCI_MASK = 0; 707 705