Add task handle for task notifications
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
static const char* TAG = "I2C";
|
||||
|
||||
TaskHandle_t i2c_task_handle = NULL;
|
||||
|
||||
i2c_master_bus_handle_t bus_handle;
|
||||
i2c_master_dev_handle_t slave_handles[SLAVES_NUMBER];
|
||||
uint8_t slave_count = 0;
|
||||
|
||||
@@ -49,5 +49,5 @@ extern "C" void app_main(void)
|
||||
|
||||
xTaskCreate(watchdogTask, "watchdogs", 2048, NULL, configMAX_PRIORITIES-1, NULL);
|
||||
xTaskCreate(wifiTask, "wifi", 4096, NULL, configMAX_PRIORITIES-4, NULL);
|
||||
xTaskCreate(i2cTask, "i2c", 1024, NULL, configMAX_PRIORITIES-6, NULL);
|
||||
xTaskCreate(i2cTask, "i2c", 1024, NULL, configMAX_PRIORITIES-6, &i2c_task_handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user