Zim Kalinowski
e29e39f9d6
esp_event: fix build error related to format
...
Closes https://github.com/espressif/esp-idf/issues/11428
See merge request !23833
2023-07-10 11:28:03 +08:00
Zim Kalinowski
dca8ee21ee
esp_event: fix and re-enable no-format warnings
2023-03-12 21:40:47 +01:00
Alexey Lapshin
ddd645e2c0
esp_event: fix gcc-12 compile errors
2023-02-22 05:33:03 +00:00
Amaryllis Kulla
1858901241
esp_event: constify event_data pointer
...
Also update copyright headers.
2022-02-16 16:16:45 +01:00
Jakob Hasse
3d174f67d9
[esp_event]: fixed and improved docs
...
* Description of unregistering was incorrect
* Made clear that event loop arg mustn't be NULL
* Added parameter check in create function
Closes https://github.com/espressif/esp-idf/issues/6761
Closes IDFGH-4969
2021-07-15 16:46:02 +08:00
Liu Han
620b0df2b1
esp_event: fix misuse of recursive semaphore take/give calls for profiling_mutex
...
Closes/Merges https://github.com/espressif/esp-idf/pull/6102
2020-12-04 11:12:27 +08:00
Jakob Hasse
9b4815e3c8
ESP Event: multiple registrations to one event
...
* It's possible now to register the same handler
several times to one specific event, using
a dynamic handle object.
2020-02-11 10:52:05 +01:00
Renz Christian Bagaporo
bb139d2b83
esp_event: fix possibility of null ptr dereference
...
Closes https://github.com/espressif/esp-idf/issues/4373
2019-11-25 14:27:10 +08:00
Renz Christian Bagaporo
3c253295eb
esp_event: iterate loop nodes safely as well
2019-10-25 11:39:16 +08:00
Xentec
4c97906fc8
esp_event: fix crash when unregistering a handler instance in itself
...
When a handler instance is the last one in the list und unregisters
itself, the handler iterator will be invalidated by entering free'd
memory. Same applies for event base and id, if they become empty.
Merges https://github.com/espressif/esp-idf/pull/4139
2019-10-25 11:38:32 +08:00
Anton Maklakov
afbaf74007
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
2019-08-01 16:28:56 +07:00
David Cermak
bd537083d9
esp_event: fix possible malloc free issues found by static analyzer
2019-06-10 13:10:34 +00:00
David Cermak
37c91133ff
esp_event: fix minor memory leak when overwriting alredy registered handler
2019-05-31 08:31:06 +02:00
Renz Christian Bagaporo
136e5bc32d
esp_event: style fixes
2019-05-22 11:29:56 +08:00
Renz Christian Bagaporo
4042902402
esp_event: always alloc data when not posting from isr
2019-05-22 11:29:17 +08:00
Renz Christian Bagaporo
f21b8bbf55
esp_event: fix issue with post data preparation
...
Fixes an issue with post instance data preparation. Currently, there is
no way to check if event data has really been set during handler
execution preparation. When data is not allocated from the heap, user
could have passed 0x0 which can lead to failed checks.
This also implements using the already allocated data memory for posting
events from non-ISR functions when data size is less than the capacity.
2019-05-22 11:28:39 +08:00
Roland Dobai
bf626f2aba
Rename Kconfig options (components/esp_event)
2019-05-21 09:09:01 +02:00
Ivan Grokhotkov
74cd8dac9d
esp_event: don’t warn if no handlers are present for specific event
2019-04-11 12:05:27 +08:00
Renz Christian Bagaporo
2b914f2d22
esp_event: allow posting events from ISRs
2019-04-10 18:06:05 +08:00
Renz Christian Bagaporo
a10901f44b
esp_event: dispatch order follows registration order
2019-01-30 20:59:47 +08:00
Renz Christian Bagaporo
34310908cf
esp_event: fix post data type inconsistency
2019-01-30 18:11:13 +08:00
Renz Christian Bagaporo
280894af7f
esp_event: fix memory leaks
...
Closes https://github.com/espressif/esp-idf/issues/2886
2019-01-30 18:11:13 +08:00
Renz Christian Bagaporo
5a83347bec
event: Implement event loop library
2018-10-26 13:14:19 +08:00