summaryrefslogtreecommitdiff
path: root/src/drivers/include/gpio_expander.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-07 09:50:25 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-07 09:50:25 +1000
commit610991455d335663de1dd6c0c6a3e0247ffd46df (patch)
tree8022526de2d30ca39386cf72d6fb5752d0c22803 /src/drivers/include/gpio_expander.hpp
parentd2e5d2ab3cff0723cd995b0fca62aeb2a681d32d (diff)
downloadtangara-fw-610991455d335663de1dd6c0c6a3e0247ffd46df.tar.gz
R4 pre-emptive bringup
Includes stripping out the IC-specific I2S stuff, and doing more manual volume control using pots
Diffstat (limited to 'src/drivers/include/gpio_expander.hpp')
-rw-r--r--src/drivers/include/gpio_expander.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/drivers/include/gpio_expander.hpp b/src/drivers/include/gpio_expander.hpp
index da682848..8231e140 100644
--- a/src/drivers/include/gpio_expander.hpp
+++ b/src/drivers/include/gpio_expander.hpp
@@ -56,12 +56,12 @@ class GpioExpander {
static const uint8_t kPortADefault = 0b10111110;
// Port B:
- // 0 - trs output enable
- // 1 - 3.5mm jack detect (active low)
- // 2 - NC
- // 3 - NC
- // 4 - NC
- // 5 - NC
+ // 0 - 3.5mm jack detect (active low)
+ // 1 - trs output enable
+ // 2 - volume zero-cross detection
+ // 3 - volume direction
+ // 4 - volume left channel
+ // 5 - volume right channel
// 6 - NC
// 7 - NC
// Default input high, trs output low
@@ -118,12 +118,12 @@ class GpioExpander {
SD_CARD_POWER_ENABLE = 7,
// Port B
- AMP_EN = 8,
- PHONE_DETECT = 9,
- // UNUSED = 10,
- // UNUSED = 11,
- // UNUSED = 12,
- // UNUSED = 13,
+ PHONE_DETECT = 8,
+ AMP_EN = 9,
+ VOL_Z_CROSS = 10,
+ VOL_UP_DOWN = 11,
+ VOL_LEFT = 12,
+ VOL_RIGHT = 13,
// UNUSED = 14,
// UNUSED = 15,
};