mirror of
https://github.com/tenderlove/initial-v.git
synced 2025-04-14 19:29:34 +00:00
fix GPIO
This commit is contained in:
parent
bebd1503f7
commit
1568eed5a8
@ -180,7 +180,7 @@ extern "C" void app_main(void)
|
||||
buttons_queue = xQueueCreate(1, sizeof(uint32_t));
|
||||
|
||||
//Initialize configuration structures using macro initializers
|
||||
twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT(GPIO_NUM_21, GPIO_NUM_22, TWAI_MODE_NORMAL);
|
||||
twai_general_config_t g_config = TWAI_GENERAL_CONFIG_DEFAULT(GPIO_NUM_22, GPIO_NUM_19, TWAI_MODE_NORMAL);
|
||||
g_config.alerts_enabled |= TWAI_ALERT_TX_SUCCESS | TWAI_ALERT_TX_FAILED;
|
||||
|
||||
twai_timing_config_t t_config = TWAI_TIMING_CONFIG_500KBITS();
|
||||
|
Loading…
Reference in New Issue
Block a user