Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/fw/board/boards/board_getafix.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ static const TouchSensor s_touch_cst816 = {
.int_exti = {
.peripheral = hwp_gpio1,
.gpio_pin = 38,
.pull = GPIO_PuPd_UP,
},
.reset = {
.gpio = hwp_gpio1,
Expand Down
1 change: 1 addition & 0 deletions src/fw/board/boards/board_obelix.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ static const TouchSensor touch_cst816 = {
.int_exti = {
.peripheral = hwp_gpio1,
.gpio_pin = 27,
.pull = GPIO_PuPd_UP,
},
};

Expand Down
9 changes: 1 addition & 8 deletions src/fw/drivers/touch/cst816/cst816.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,5 @@ static void prv_exti_cb(bool *should_context_switch) {
}

void touch_sensor_set_enabled(bool enabled) {
if (enabled) {
cst816_hw_reset();
exti_enable(CST816->int_exti);
} else {
uint8_t data = CST816_POWER_MODE_SLEEP;
bool rv = prv_write_data(CST816_POWER_MODE_REG, &data, 1, 1);
exti_disable(CST816->int_exti);
}
// TODO(CST816): provide implementation (old had some issues)
}
Loading