git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1988 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-06-02 17:07:57 +00:00
parent 64c7b80c86
commit 679847088e
2 changed files with 4 additions and 2 deletions

View File

@ -73,10 +73,10 @@ typedef struct EventSource {
#define EVENTSOURCE_DECL(name) EventSource name = _EVENTSOURCE_DATA(name) #define EVENTSOURCE_DECL(name) EventSource name = _EVENTSOURCE_DATA(name)
/** All events allowed mask.*/ /** All events allowed mask.*/
#define ALL_EVENTS -1 #define ALL_EVENTS ((eventmask_t)-1)
/** Returns the event mask from the event identifier.*/ /** Returns the event mask from the event identifier.*/
#define EVENT_MASK(eid) (1 << (eid)) #define EVENT_MASK(eid) ((eventmask_t)(1 << (eid)))
/** /**
* @brief Registers an Event Listener on an Event Source. * @brief Registers an Event Listener on an Event Source.

View File

@ -63,6 +63,8 @@
- OPT: Small size optimization in the semaphores subsystem. - OPT: Small size optimization in the semaphores subsystem.
- OPT: Improvements in the STM8 port, the code is now smaller and generally - OPT: Improvements in the STM8 port, the code is now smaller and generally
faster, also saved few bytes of RAM. faster, also saved few bytes of RAM.
- Added some explicit casts in chevents.h in order to silence two warnings on
a specific compiler.
*** 1.5.8 *** *** 1.5.8 ***
- FIX: Fixed missing files from ST library zip file (bug 3006629). - FIX: Fixed missing files from ST library zip file (bug 3006629).