1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

39 Commits

Author SHA1 Message Date
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
Frederik Haxel
64ba553d1f sys: Use size_t print format specifier
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:19 +01:00
113200f9b2
sys/can: move dependency resolution in its own Makefile.dep 2023-06-15 10:24:53 +02:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +01:00
ce373902ee
sys/can: migrate to ztimer 2022-01-10 12:21:40 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Bas Stottelaar
a76cb4ea2f sys/*: ENABLE_DEBUG not needed for inttypes.h 2020-11-02 21:49:39 +01:00
Bas Stottelaar
922e2ac1c9 sys/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:49:39 +01:00
Bas Stottelaar
1b35d06a51 sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00
Bas Stottelaar
80d9da90df sys/*: add missing include of assert.h 2020-10-22 11:13:09 +02:00
3186c8973f
sys/can: fix typo 'theoritical' -> 'theoretical' 2020-10-02 08:09:37 +02:00
Vincent Dupont
98c39d5104 can: add proper checks for ifnum validity
Most functions were using asserts, but in some cases it might not be a
programmatic error to pass an invalid ifnum. This makes sure the code
does not crash by testing it at runtim and returning an error.
2020-09-30 12:59:02 +02:00
Marian Buschsieweke
3b6fa61829
sys: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 20:28:11 +02:00
Wouter Symons
ae947d5c81 sys/can/conn: Fixup unused code 2020-02-07 13:35:25 +01:00
Gunar Schorcht
a12e1033e9 tests/can_conn: move static_assert into function 2019-10-19 17:23:21 +02:00
benpicco
66ce29d94c
Merge pull request #12051 from OTAkeys/fix/isotp
can/isotp: fix closing connection and improve flow control handling
2019-09-12 23:01:58 +02:00
Javier FILEIV
ced8094e1a can_pm: if powered up by raw interface, fix sleeping timer. 2019-09-10 13:04:52 +02:00
Vincent Dupont
6bbb908d59 can/pkt: free pkt on bus off error 2019-09-10 13:04:52 +02:00
Vincent Dupont
d3fac6f5ac can/conn: use non-blocking function from timer interupts 2019-09-10 13:04:52 +02:00
Vincent Dupont
c9211f9c06 can: fix race condition in tx_list 2019-09-10 13:04:52 +02:00
Vincent Dupont
9207e6b446 can: use memarray for pkt and router allocation 2019-09-10 13:01:28 +02:00
Vincent Dupont
af66fe101d can/isotp: allow changing FC options at runtime 2019-08-21 11:16:56 +02:00
Vincent Dupont
32b00706e3 can/isotp: remove timers when closing connection
Timers were not properly removed leading to hard faults if it fires
after the connection is closed.
2019-08-21 11:16:56 +02:00
smlng
18bccb55e3 sys/can: reduce scope of variable 2018-02-22 19:13:39 +01:00
smlng
b46b24b34f sys/can: init variables before usage 2018-02-22 19:12:41 +01:00
d8051a2d73 sys/can: DEBUG fixes 2018-01-15 14:37:05 +01:00
Vincent Dupont
fb393905dd can: fix fall through error 2018-01-08 18:07:31 +01:00
Martine Lenders
772ee47e28
Merge pull request #7790 from OTAkeys/pr/fix_can_set_get_filters
can/device: wake up device before getting/setting filters
2017-11-06 11:01:53 +01:00
kYc0o
edb3178b86 sys/can/device.c: remove unused _can_event_error_to_msg function 2017-10-25 16:20:00 +02:00
Vincent Dupont
b4d68e320d can/device: wake up device before getting/setting filters 2017-10-23 16:53:05 +02:00
52d08ca565 Merge pull request #7714 from OTAkeys/pr/conn_can_raw_fix
conn_can: fix conn_can_raw_send and improve doc
2017-10-13 12:09:40 +02:00
Vincent Dupont
4e832a7d7e can/device: improve bus-off management 2017-10-11 10:01:33 +02:00
Vincent Dupont
d251456585 conn_can_raw: fix xtimer removal 2017-10-11 09:51:28 +02:00
035d266d49 makefile: indentation cleanup 2017-09-22 12:00:47 +02:00
268c6b647e drivers/can: fix doxygen documentation + typo 2017-07-03 20:43:51 +02:00
Vincent Dupont
029a127eb3 can: add transceiver support in CAN stack 2017-06-19 15:36:20 +02:00
Vincent Dupont
ab5f8548f2 can: add conn_can top layer interface
This module provide support for raw can and isotp
socket-like user interface.
2017-06-19 15:36:20 +02:00
Vincent Dupont
63ca443b05 can: add ISO-TP support
ISO-TP is ISO15765 transport protocol over CAN.
Upper interface is located in sys/include/can/isotp.h.
2017-06-19 15:36:20 +02:00
Vincent Dupont
5469ba1d49 can: add CAN stack
The CAN stack support only raw CAN at this time.
It contains a device interface (drivers/include/can/candev.h) and the data link
layer, build around can/device.c can/pkt.c and can/router.c. can/dll.c contains
the upper level and lower level interface to send and receive CAN frames.
Upper layer interface is located in include/can/raw.h
2017-06-19 15:35:26 +02:00