Marian Buschsieweke
cac44edec7
tree-wide: replace multiple empty lines with one
...
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00
KSKNico
fe821eaa1d
cpu: replace header guards with #pragma once
2025-05-21 17:13:37 +02:00
Marian Buschsieweke
5fe7a2e44b
cpu/avr8_common: fix C++ compatibility of unistd.h
...
C++ does not know about `restrict`, but both g++ and clang++ support
`__restrict`, as do `clang` and GCC [1].
Using `__restrict` instead of `restrict` is also what glibc does.
[1]: https://en.wikipedia.org/wiki/Restrict#Support_by_C++_compilers
2024-12-12 14:28:27 +01:00
Marian Buschsieweke
b0ee095051
cpu/avr8_common/avr_libc_extra: add missing errno codes
...
Three standard POSIX errno codes somehow slipped through the cracks.
This adds the missing ones.
2023-01-12 08:39:30 +01:00
Marian Buschsieweke
f1da9f6695
cpu/avr8_common: add strings.h for compatibility
2022-09-22 08:33:37 +02:00
Francisco Molina
ca4ca1fac5
cpu/avr8_common: fix errno
...
avr only defines two errno MACROS, make sure RIOT header ERRNO match
the ones defined by avr.
2021-06-17 09:09:30 +02:00
Gerson Fernando Budke
4cbd311196
cpu: Refact atmega_common into avr8_common
...
Split atmega_common code into avr8_common folder. This moves common
avr8 code to be used for all avr8 variants: tiny, mega and xmega.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-01-07 16:29:22 -03:00