summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuzev2
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c6
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
index eebe9b945f..617f7095f4 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/backlight-fuzev2.c
@@ -39,7 +39,7 @@ bool _backlight_init(void)
39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10); 39 ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10);
40 40
41 /* needed for button light */ 41 /* needed for button light */
42 if (fuzev2_variant == 1) 42 if (amsv2_variant == 1)
43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */ 43 ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */
44 44
45 return true; 45 return true;
@@ -63,7 +63,7 @@ void _backlight_off(void)
63 63
64void _buttonlight_on(void) 64void _buttonlight_on(void)
65{ 65{
66 if (fuzev2_variant == 0) 66 if (amsv2_variant == 0)
67 { 67 {
68 GPIOB_DIR |= 1<<5; 68 GPIOB_DIR |= 1<<5;
69 GPIOB_PIN(5) = (1<<5); 69 GPIOB_PIN(5) = (1<<5);
@@ -77,7 +77,7 @@ void _buttonlight_on(void)
77 77
78void _buttonlight_off(void) 78void _buttonlight_off(void)
79{ 79{
80 if (fuzev2_variant == 0) 80 if (amsv2_variant == 0)
81 { 81 {
82 GPIOB_PIN(5) = 0; 82 GPIOB_PIN(5) = 0;
83 GPIOB_DIR &= ~(1<<5); 83 GPIOB_DIR &= ~(1<<5);
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 5ec2025667..7920bff80e 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -257,7 +257,7 @@ int button_read_device(void)
257 btn |= BUTTON_RIGHT; 257 btn |= BUTTON_RIGHT;
258 if (GPIOB_PIN(1) & 1<<1) 258 if (GPIOB_PIN(1) & 1<<1)
259 btn |= BUTTON_HOME; 259 btn |= BUTTON_HOME;
260 if (fuzev2_variant == 1) 260 if (amsv2_variant == 1)
261 btn ^= BUTTON_HOME; 261 btn ^= BUTTON_HOME;
262 262
263 if (gpiod6 & 1<<6) 263 if (gpiod6 & 1<<6)