Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 345 Bytes

File metadata and controls

29 lines (18 loc) · 345 Bytes

FreeRTOS-cpp_task

Run FreeRTOS task using a lambda.

Requirements

  • esp-idf v2.1.1

Usage

Like this

static m2d::FreeRTOS::Task task("Task name", 10, 1024 * 3, [&] {
	while (1) {
		// Do something
		vTaskDelay(25 / portTICK_PERIOD_MS);
	}
});
task.run();


DO NOT release a variable when task is running.

License

MIT