Pre-release fixes

This commit is contained in:
arturo182
2022-04-24 18:00:22 +02:00
parent 04604f3a1c
commit 2578c4d01c
11 changed files with 50 additions and 110 deletions

View File

@@ -22,10 +22,7 @@ static void key_cb(char key, enum key_state state)
busy_wait_ms(reg_get_value(REG_ID_IND));
gpio_put(PIN_INT, 1);
}
static struct key_callback key_callback =
{
.func = key_cb
};
static struct key_callback key_callback = { .func = key_cb };
static void key_lock_cb(bool caps_changed, bool num_changed)
{
@@ -47,10 +44,7 @@ static void key_lock_cb(bool caps_changed, bool num_changed)
gpio_put(PIN_INT, 1);
}
}
static struct key_lock_callback key_lock_callback =
{
.func = key_lock_cb
};
static struct key_lock_callback key_lock_callback = { .func = key_lock_cb };
static void touch_cb(int8_t x, int8_t y)
{
@@ -66,10 +60,7 @@ static void touch_cb(int8_t x, int8_t y)
busy_wait_ms(reg_get_value(REG_ID_IND));
gpio_put(PIN_INT, 1);
}
static struct touch_callback touch_callback =
{
.func = touch_cb
};
static struct touch_callback touch_callback = { .func = touch_cb };
static void gpioexp_cb(uint8_t gpio, uint8_t gpio_idx)
{
@@ -85,10 +76,7 @@ static void gpioexp_cb(uint8_t gpio, uint8_t gpio_idx)
busy_wait_ms(reg_get_value(REG_ID_IND));
gpio_put(PIN_INT, 1);
}
static struct gpioexp_callback gpioexp_callback =
{
.func = gpioexp_cb
};
static struct gpioexp_callback gpioexp_callback = { .func = gpioexp_cb };
void interrupt_init(void)
{