Disable debug message for RP2040 interrupt
This commit is contained in:
parent
e42aefed7f
commit
f6c5666f20
2 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ void rp2040_intr_task(void *arg) {
|
||||||
ESP_LOGE(TAG, "RP2040 interrupt task failed to read from RP2040");
|
ESP_LOGE(TAG, "RP2040 interrupt task failed to read from RP2040");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ESP_LOGW(TAG, "RP2040 input state %08x", state);
|
//ESP_LOGW(TAG, "RP2040 input state %08x", state);
|
||||||
uint16_t interrupt = state >> 16;
|
uint16_t interrupt = state >> 16;
|
||||||
uint16_t values = state & 0xFFFF;
|
uint16_t values = state & 0xFFFF;
|
||||||
for (uint8_t index = 0; index < 16; index++) {
|
for (uint8_t index = 0; index < 16; index++) {
|
||||||
|
|
|
@ -144,19 +144,19 @@ void fpga_test(ILI9341* ili9341, ICE40* ice40, xQueueHandle buttonQueue) {
|
||||||
if (xQueueReceive(buttonQueue, &buttonMessage, portMAX_DELAY) == pdTRUE) {
|
if (xQueueReceive(buttonQueue, &buttonMessage, portMAX_DELAY) == pdTRUE) {
|
||||||
printf("Button: %u, %u\n", buttonMessage.input, buttonMessage.state);
|
printf("Button: %u, %u\n", buttonMessage.input, buttonMessage.state);
|
||||||
if (buttonMessage.state) {
|
if (buttonMessage.state) {
|
||||||
/*switch(buttonMessage.button) {
|
switch(buttonMessage.input) {
|
||||||
case PCA9555_PIN_BTN_HOME:
|
case RP2040_INPUT_BUTTON_HOME:
|
||||||
case PCA9555_PIN_BTN_MENU:
|
case RP2040_INPUT_BUTTON_MENU:
|
||||||
case PCA9555_PIN_BTN_BACK:
|
case RP2040_INPUT_BUTTON_BACK:
|
||||||
waitForChoice = false;
|
waitForChoice = false;
|
||||||
break;
|
break;
|
||||||
case PCA9555_PIN_BTN_ACCEPT:
|
case RP2040_INPUT_BUTTON_ACCEPT:
|
||||||
reload_fpga = true;
|
reload_fpga = true;
|
||||||
waitForChoice = false;
|
waitForChoice = false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue