1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core
Benjamin Valentin 46b89eb723 core/msg_bus: fix shift on 8-bit platforms
The previous shift would wrap if the compiler defaults to 16 bit words.
Use explicit `unsigned long` integer constants to mitigate that.

before:

2020-07-22 15:25:17,063 # THREAD 1 start
2020-07-22 15:25:17,063 # THREAD 2 start
2020-07-22 15:25:17,065 # THREAD 3 start
2020-07-22 15:25:17,066 # THREADS CREATED
2020-07-22 15:25:17,068 # Posted event 22 to 0 threads
2020-07-22 15:25:17,071 # Posted event 23 to 0 threads
2020-07-22 15:25:17,076 # Posted event 24 to 0 threads
2020-07-22 15:25:17,076 # SUCCESS
2020-07-22 15:26:00,188 # Exiting Pyterm

after:

2020-07-22 15:26:10,374 # THREAD 1 start
2020-07-22 15:26:10,374 # THREAD 2 start
2020-07-22 15:26:10,377 # THREAD 3 start
2020-07-22 15:26:10,377 # THREADS CREATED
2020-07-22 15:26:10,380 # Posted event 22 to 0 threads
2020-07-22 15:26:10,383 # T1 recv: Hello Threads! (type=23)
2020-07-22 15:26:10,386 # T3 recv: Hello Threads! (type=23)
2020-07-22 15:26:10,388 # Posted event 23 to 2 threads
2020-07-22 15:26:10,391 # T2 recv: Hello Threads! (type=24)
2020-07-22 15:26:10,394 # Posted event 24 to 1 threads
2020-07-22 15:26:10,396 # SUCCESS
2020-07-22 15:27:31 +02:00
..
include core/msg_bus: fix shift on 8-bit platforms 2020-07-22 15:27:31 +02:00
assert.c core: Fix assert printf format string 2017-02-16 17:11:22 +01:00
atomic_c11.c core: uncrustify 2020-03-30 17:02:08 +02:00
atomic_sync.c core: disable uncrustify for atomic_*.c 2020-03-30 17:00:32 +02:00
bitarithm.c core: uncrustify 2020-03-30 17:02:08 +02:00
clist.c add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
cond.c core: uncrustify 2020-03-30 17:02:08 +02:00
doc.txt core/doc: fix alignment 2020-04-21 15:10:56 +02:00
init.c core: make idle thread optional 2020-06-25 16:02:28 +02:00
lifo.c core: uncrustify 2020-03-30 17:02:08 +02:00
Makefile core/msg: add message bus 2020-04-28 13:35:05 +02:00
mbox.c core: uncrustify 2020-03-30 17:02:08 +02:00
msg_bus.c core/msg: add message bus 2020-04-28 13:35:05 +02:00
msg.c core/msg_bus: fix shift on 8-bit platforms 2020-07-22 15:27:31 +02:00
mutex.c core: uncrustify 2020-03-30 17:02:08 +02:00
panic.c core/panic: launch USB bootloader for easy recovery 2020-07-01 20:36:59 +02:00
priority_queue.c core: uncrustify 2020-03-30 17:02:08 +02:00
ringbuffer.c core: uncrustify 2020-03-30 17:02:08 +02:00
rmutex.c core: uncrustify 2020-03-30 17:02:08 +02:00
sched.c core/sched: tiny logic optimization in idle case 2020-07-20 23:26:47 +02:00
thread_flags.c core: uncrustify 2020-03-30 17:02:08 +02:00
thread.c core: uncrustify 2020-03-30 17:02:08 +02:00