mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-10 06:31:24 +00:00
examples: Standardise naming of files, symbols, etc. in examples
* Use "example" in all example function & variable names, ie use i2c_example_xxx instead of i2c_xxx for example functions. Closes #198 https://github.com/espressif/esp-idf/issues/198 * Mark example functions, etc. static * Replace uses of "test" & "demo" with "example" * Split the UART example into two * Rename "main" example files to end with "_main.c" for disambiguation
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
Read values sensed at all available touch pads.
|
||||
Print out values in a loop on a serial monitor.
|
||||
*/
|
||||
void touch_pad_read_task(void *pvParameter)
|
||||
static void tp_example_read_task(void *pvParameter)
|
||||
{
|
||||
while (1) {
|
||||
uint16_t touch_value;
|
||||
@@ -36,6 +36,6 @@ void app_main()
|
||||
touch_pad_init();
|
||||
|
||||
// Start task to read values sensed by pads
|
||||
xTaskCreate(&touch_pad_read_task, "touch_pad_read_task", 2048, NULL, 5, NULL);
|
||||
xTaskCreate(&tp_example_read_task, "touch_pad_read_task", 2048, NULL, 5, NULL);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user