Few minor changes

This commit is contained in:
AlexanderHD27
2025-01-04 13:32:23 +01:00
parent 08154454fa
commit caf7586b5b
6 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
#define GOBOTRPC_TI_INT_NUM 4
#define GOBOTRPC_TI_COMBINED_INT_PIN 18
#define GOBOTRPC_TI_EXTERNAL_PULLUP 0
#define GOBOTRPC_TI_EXTERNAL_PULLUP 1
#define GOBOTRPC_HEARTBEAT_INTERVAL 3000

View File

@@ -29,10 +29,10 @@ GobotRPC_TI_Hardware_RP2040_I2C::GobotRPC_TI_Hardware_RP2040_I2C(UBaseType_t cor
initTasks();
gpio_init(GOBOTRPC_TI_COMBINED_INT_PIN);
gpio_set_dir(GOBOTRPC_TI_COMBINED_INT_PIN, GPIO_IN);
gpio_pull_down(GOBOTRPC_TI_COMBINED_INT_PIN);
gpio_set_irq_enabled_with_callback(GOBOTRPC_TI_COMBINED_INT_PIN, GPIO_IRQ_EDGE_RISE , true, &intPin_ISR);
//gpio_init(GOBOTRPC_TI_COMBINED_INT_PIN);
//gpio_set_dir(GOBOTRPC_TI_COMBINED_INT_PIN, GPIO_IN);
//gpio_pull_down(GOBOTRPC_TI_COMBINED_INT_PIN);
//gpio_set_irq_enabled_with_callback(GOBOTRPC_TI_COMBINED_INT_PIN, GPIO_IRQ_EDGE_RISE , true, &intPin_ISR);
}