mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(sysview): add prefix to the example sysview module desc
This commit is contained in:
@@ -45,19 +45,11 @@ static const char *TAG = "example";
|
|||||||
#define SYSVIEW_EXAMPLE_WAIT_EVENT_START() example_sysview_event_send(SYSVIEW_EXAMPLE_WAIT_EVENT_START_ID, 0)
|
#define SYSVIEW_EXAMPLE_WAIT_EVENT_START() example_sysview_event_send(SYSVIEW_EXAMPLE_WAIT_EVENT_START_ID, 0)
|
||||||
#define SYSVIEW_EXAMPLE_WAIT_EVENT_END(_val_) example_sysview_event_send(SYSVIEW_EXAMPLE_WAIT_EVENT_END_ID, _val_)
|
#define SYSVIEW_EXAMPLE_WAIT_EVENT_END(_val_) example_sysview_event_send(SYSVIEW_EXAMPLE_WAIT_EVENT_END_ID, _val_)
|
||||||
|
|
||||||
static void example_sysview_module_send_desc(void);
|
|
||||||
|
|
||||||
static SEGGER_SYSVIEW_MODULE s_example_sysview_module = {
|
static SEGGER_SYSVIEW_MODULE s_example_sysview_module = {
|
||||||
.sModule = "example_sysview_module",
|
.sModule = "M=Example SystemView User Module",
|
||||||
.NumEvents = SYSVIEW_EXAMPLE_EVENT_MAX,
|
.NumEvents = SYSVIEW_EXAMPLE_EVENT_MAX,
|
||||||
.pfSendModuleDesc = example_sysview_module_send_desc,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void example_sysview_module_send_desc(void)
|
|
||||||
{
|
|
||||||
SEGGER_SYSVIEW_RecordModuleDescription(&s_example_sysview_module, "Example SystemView User Module");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void example_sysview_event_send(uint32_t id, uint32_t val)
|
static void example_sysview_event_send(uint32_t id, uint32_t val)
|
||||||
{
|
{
|
||||||
U8 aPacket[SEGGER_SYSVIEW_INFO_SIZE + SEGGER_SYSVIEW_QUANTA_U32];
|
U8 aPacket[SEGGER_SYSVIEW_INFO_SIZE + SEGGER_SYSVIEW_QUANTA_U32];
|
||||||
|
|||||||
Reference in New Issue
Block a user