Skip to content

Commit 670c8ef

Browse files
committed
Add sorting tasks by core
1 parent 8a6db60 commit 670c8ef

12 files changed

+89
-283
lines changed

example/CMakeLists.txt CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
cmake_minimum_required(VERSION 3.16)
44

55
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
6-
project(task_monitor)
6+
project(task_monitor_example)

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ The ESP32 Task Monitor is a project that provides a simple way to monitor the ta
1818
 [7. License](#7-license)
1919

2020
## 1. Features
21-
- ESP-IDF v5.0.2
21+
- ESP-IDF v5.3-dev-422-ga7fbf452fa 2nd stage bootloader
2222
- Real-time monitoring of running multiple tasks for ESP32 microcontrollers.
2323
- Written in C language.
2424
- MIT License.
2525

2626
## 2. ESP32 Task Monitor
27-
<img src="./doc/img/task_monitor.svg" alt="Task Monitor" width="650"/>
27+
<img src="./doc/img/task_monitor.png" alt="Task Monitor" width="650"/>
2828

2929
## 3. Basic Usage
30-
**NOTE:** USE_TRACE_FACILITY and GENERATE_RUN_TIME_STATS must be defined as **1** in FreeRTOSConfig.h for this API function task_monitor() to be available.
30+
**NOTE:** configUSE_TRACE_FACILITY and configGENERATE_RUN_TIME_STATS must be defined as **1** in FreeRTOSConfig.h for this API function task_monitor() to be available.
3131
```C
3232
// 1. Include header:
3333
#include "task_monitor.h"
@@ -47,7 +47,7 @@ To get started with the ESP32 Task Monitor project, you'll need an ESP32 microco
4747
```
4848
### 4.2 Build the project:
4949
```C
50-
cd ESP32_Task_Monitor/example
50+
cd ESP32_Task_Monitor
5151
idf.py build
5252
```
5353
### 4.3 Flash onto your ESP32 microcontroller:
@@ -65,7 +65,7 @@ Do not forget to replace PORT with your serial port name.
6565
More information how to build project: [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/v5.0.1/esp32/get-started/start-project.html).
6666

6767
## 5. Example
68-
This project includes an [example](https://github.com/VPavlusha/ESP32_Task_Monitor/tree/main/example) that showcases the functionality of the Task Monitor library. This example provides a practical demonstration of how to use the Task Monitor API to monitor tasks in your own applications.
68+
This project includes an [example](https://github.com/VPavlusha/ESP32_Task_Monitor/tree/main/main) that showcases the functionality of the Task Monitor library. This example provides a practical demonstration of how to use the Task Monitor API to monitor tasks in your own applications.
6969

7070
## 6. Contributing
7171
Contributions to the ESP32 Task Monitor project are welcome. If you find a bug or have a feature request, please submit an issue on the project's GitHub page. If you'd like to contribute code, please submit a pull request.

doc/img/task_monitor.png

17.2 KB
Loading

doc/img/task_monitor.svg

-3
This file was deleted.

example/main/CMakeLists.txt

-4
This file was deleted.

example/main/include/task_monitor.h

-50
This file was deleted.

example/main/task_monitor.c

-180
This file was deleted.

include/task_monitor.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
22
* MIT License
3-
*
3+
*
44
* Copyright (c) 2023 Volodymyr Pavlusha
5-
*
5+
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
88
* in the Software without restriction, including without limitation the rights
99
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010
* copies of the Software, and to permit persons to whom the Software is
1111
* furnished to do so, subject to the following conditions:
12-
*
12+
*
1313
* The above copyright notice and this permission notice shall be included in all
1414
* copies or substantial portions of the Software.
15-
*
15+
*
1616
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -31,15 +31,15 @@
3131
extern "C" {
3232
#endif
3333

34-
// NOTE: USE_TRACE_FACILITY and GENERATE_RUN_TIME_STATS must be defined as 1
34+
// NOTE: configUSE_TRACE_FACILITY and configGENERATE_RUN_TIME_STATS must be defined as 1
3535
// in FreeRTOSConfig.h for this API function task_monitor() to be available.
3636

3737
/**
3838
* @brief Create a new task to monitor the status and activity of other FreeRTOS tasks in the system
3939
*
4040
* @return
41-
* - ESP_OK Success.
42-
* - ESP_ERR_NO_MEM Out of memory.
41+
* - ESP_OK Success.
42+
* - ESP_ERR_NO_MEM Out of memory.
4343
*/
4444
esp_err_t task_monitor(void);
4545

main/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
idf_component_register(SRCS "example.c" "../src/task_monitor.c"
2+
INCLUDE_DIRS "../include")
File renamed without changes.

example/main/main.c main/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
void app_main(void)
44
{
5-
// NOTE: USE_TRACE_FACILITY and GENERATE_RUN_TIME_STATS must be defined as 1
5+
// NOTE: configUSE_TRACE_FACILITY and configGENERATE_RUN_TIME_STATS must be defined as 1
66
// in FreeRTOSConfig.h for this API function task_monitor() to be available.
77
task_monitor();
88
}

0 commit comments

Comments
 (0)