Update PinConfig (BUild Board)
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#define LED1_PIN 8
|
||||
#define LED2_PIN 9
|
||||
#define LED3_PIN 25
|
||||
|
||||
#define GOBOTRPC_CI_UART_RX 0
|
||||
#define GOBOTRPC_CI_UART_TX 1
|
||||
|
||||
@@ -9,7 +13,7 @@
|
||||
|
||||
#define GOBOTRPC_TI_INT_PIN_START 10
|
||||
#define GOBOTRPC_TI_INT_NUM 4
|
||||
#define GOBOTRPC_TI_COMBINED_INT_PIN 2
|
||||
#define GOBOTRPC_TI_COMBINED_INT_PIN 18
|
||||
|
||||
#define GOBOTRPC_TI_EXTERNAL_PULLUP 0
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ void GobotRPC_TI_Hardware_RP2040_I2C::i2cTxTask() {
|
||||
unsigned int res = i2c_write_burst_blocking(i2c, pkg.addr & 0x7f, (uint8_t *)(&pkg.data), pkg.len);
|
||||
xSemaphoreGive(i2cMutex);
|
||||
|
||||
if(res != PICO_ERROR_GENERIC) {
|
||||
if(res == PICO_ERROR_GENERIC) {
|
||||
raiseTranmissionError(false, pkg.addr);
|
||||
} else {
|
||||
raiseTransmissionSuceess(pkg.addr);
|
||||
|
||||
Reference in New Issue
Block a user