Leandro Lanzieri
df7ce1c647
makefiles/kconfig: use two lists for boards and CPUs default configs
...
This introduces KCONFIG_BOARD_CONFIG and KCONFIG_CPU_CONFIG variable for
boards and CPUs (including common directories) to add default
configuration files to be merged. The current approach, as it uses
Makefile.features, would include boards first, not allowing them to
override CPU configurations.
2021-12-13 12:33:21 +01:00
José Alamos
ce8cda2fd8
Merge pull request #16932 from benpicco/socket_zep-hal
...
socket_zep: port to radio HAL
2021-12-07 18:24:33 +01:00
Leandro Lanzieri
368ccdf3f8
sys/vfs: model Kconfig
2021-11-29 10:30:49 +01:00
Leandro Lanzieri
c5f9d50a57
socket_zep: add Kconfig
2021-11-18 14:17:29 +01:00
Benjamin Valentin
fa2d9bde56
socket_zep: port to radio HAL
2021-11-18 11:51:14 +01:00
83c2f2d367
Merge pull request #17155 from maribu/cpu/native
...
cpu/native: align stack in thread_stack_init()
2021-11-16 20:48:32 +01:00
326b0c980a
cpu/native: migrate periph_rtc to ztimer
2021-11-11 10:54:30 +01:00
Marian Buschsieweke
09b8387df4
cpu/native: align stack in thread_stack_init()
...
Unaligned accesses on x86(_64) are allowed, but slow. However, some host systems
might not be that forgiving. Aligning the stack to sizeof(uintptr_t) should be
a pretty safe safety measure.
And with this done, all casts of the stack pointer that increase alignment
requirements are now intermediately casted to `uintptr_t` to silence
warnings from -Wcast-align - after all the stacks are now manually aligned.
2021-11-06 20:22:10 +01:00
Francisco
7f3344870d
Merge pull request #16972 from Ollrogge/flashpage_pr
...
periph/flashpage: extend API
2021-10-26 12:51:05 +02:00
Francisco
96e2ad1f0e
Merge pull request #16956 from fjmolinas/pr_native_relative_stacksize
...
cpu/native/include: other stacksizes based on default
2021-10-26 09:04:16 +02:00
Ollrogge
cdd9f303cf
cpu/native: extend flashpage API
2021-10-25 15:07:37 +02:00
Francisco Molina
5070489aa6
cpu/native/include: other stacksizes based on default
2021-10-25 09:13:21 +02:00
Benjamin Valentin
1a2984b786
cpu/native: fix build with gcc 11
...
This fixes the following warning with GCC 11.2:
cpu/native/include/native_internal.h:153:13: error: variably modified ‘__isr_stack’ at file scope
153 | extern char __isr_stack[SIGSTKSZ];
| ^~~~~~~~~~~
cpu/native/include/native_internal.h:154:13: error: variably modified ‘__end_stack’ at file scope
154 | extern char __end_stack[SIGSTKSZ];
2021-10-12 14:56:11 +02:00
benpicco
cc3df3ec85
Merge pull request #16822 from benpicco/cpu/native-stdio
...
cpu/native: make use of stdio_read() / stdio_write()
2021-09-22 20:47:45 +02:00
Benjamin Valentin
13e16fa34f
cpu/native: make use of stdio_read() / stdio_write()
...
On `native` the functions stdio_read() / stdio_write() were not
used.
Those functions are intended for alternative stdio implementations.
As a result, no alternative stdio could be used on `native`.
To fix this, call the functions in `_native_read()` / `_native_write()`
when dealing with stdio fds.
2021-09-22 17:22:30 +02:00
Francisco
0b7eb2bbc9
Merge pull request #16836 from fjmolinas/pr_kconfig_mtd
...
drivers/mtd: fix Kconfig dependencies
2021-09-22 10:08:14 +02:00
Francisco Molina
14ef09b8b4
drivers/mtd: fix Kconfig dependencies
...
Currently implementations of the MTD api are selecting the module,
this makes it easy for default backends to be selected. But the
correct modeling is simply selecting the MTD api and then selecting
a backend. BOARDs providing one of the backends can expose this and
then that backend can be selected by default.
There is also currently nothing preventing from using the MTD api
with no backend since a mock backend can easily be provided as is
done in all mtd tests.
2021-09-22 09:22:51 +02:00
Jean Pierre Dudey
ffff68deaf
Merge pull request #16813 from jeandudey/doc1
...
cpu: fix doxygen grouping warnings
2021-09-13 11:30:27 +02:00
Jean-Pierre De Jesus DIAZ
d1f9cd0647
cpu/native: fix doxygen grouping warnings
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-11 12:45:15 +02:00
Benjamin Valentin
9a6fc85b16
treewide: replace gnrc_netdev_default with netdev_default
2021-09-06 15:43:40 +02:00
Hugues Larrive
f292cfc8ce
drivers/periph_spi: remove duplicated includes introduced in #15902
2021-09-02 09:40:31 +02:00
Francisco
a1cbcc9ede
Merge pull request #15902 from maribu/spi-api-change-1
...
drivers/periph_spi: let spi_acquire return void
2021-09-02 08:50:56 +02:00
Marian Buschsieweke
f04b522601
cpu/periph_spi: update implementations to new API
...
Make all spi_acquire() implementations return `void` and add assertions to
check for valid parameters, where missing.
2021-09-01 21:38:40 +02:00
Francisco
3db378e015
Merge pull request #11117 from haukepetersen/add_core_irqisen
...
core: add irq_is_enabled() function to irq interface
2021-08-26 18:41:02 +02:00
Hauke Petersen
d4181b91fa
cpu/native: implement irq_is_enabled()
2021-08-25 08:01:05 +02:00
87b49d04ab
cpu/native: defer yield when IRQs are disabled.
...
This makes native behave like Cortex-M, which flags PENDSV, which then
gets triggered once IRQs are re-enabled.
2021-08-24 09:49:40 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Jose Alamos
853b3a0918
netdev_tap: avoid explicit cast to netdev
2021-07-09 10:38:34 +02:00
Jose Alamos
686c81caf7
socket_zep: avoid explicit cast to netdev
2021-07-09 10:38:33 +02:00
benpicco
1407559f33
Merge pull request #15773 from benpicco/tools/zep_dispatch-topology
...
tools/zep_dispatch: add support for advanced topologies
2021-07-07 12:14:43 +02:00
MrKevinWeiss
9917b37c1c
cpu/native: Add native mtd kconfig dep
2021-06-18 11:27:33 +02:00
136c630870
cpu/native: make thread size defines overridable
2021-05-07 13:12:01 +02:00
Karl Fessel
15f2d0008a
native/rtc: ensure no struct tm extra information is used
2021-04-01 18:19:15 +02:00
Karl Fessel
72213ec99a
native/rtc: avoid dealing with DST
2021-04-01 18:19:15 +02:00
Tobias Nießen
8a56692236
cpu/native: rename _get_promiscous/_set_promiscous
2021-03-03 17:50:19 +01:00
Francisco
c91499997e
Merge pull request #16030 from benpicco/drivers/mtd_flashpage-fix_native
...
drivers/mtd_flashpage: fixes for native (and stm32l0, stm32l4)
2021-02-23 15:12:06 +01:00
Benjamin Valentin
65093a47a3
cpu/native: timer: fix style issue
2021-02-23 09:52:05 +01:00
Benjamin Valentin
7eb159c2a2
cpu/native: timer: implement timer_set_periodic()
...
The native timer is not free running, so we can't honor it's flags.
But setitimer() already provides an interval option, we only have to enable it.
2021-02-23 09:51:53 +01:00
Benjamin Valentin
934d1c1f7f
socket_zep: include HW address with HELLO packet
2021-02-20 20:37:14 +01:00
Benjamin Valentin
99341a3dc4
cpu/native: export send() as real_send()
2021-02-20 20:35:33 +01:00
Martine Lenders
de4ee0f934
Merge pull request #15562 from benpicco/socket_zep_register
...
socket_zep: register with netdev, provide EUI-64 as command line parameter
2021-02-20 20:32:01 +01:00
Benjamin Valentin
033c0110d0
cpu/native: flashpage: sector-slign the flashpage area
2021-02-18 14:22:11 +01:00
ee9d6c879a
cpu/native: add XFA support
2021-02-18 10:46:08 +01:00
Benjamin Valentin
17199dbb1c
socket_zep: allow to specify MAC address of ZEP device
...
Add a command-line parameter for setting the EUI-64 of a ZEP device.
This allows a native node to use a persistent ZEP address across reboots.
2021-02-16 18:57:27 +01:00
Benjamin Valentin
1acbd6e560
cpu/native: add periph/flashpage implementation
...
Add a simple RAM-backed flashpage implementation for native, to
allow for easier testing of flashpage based applications / features.
2021-02-05 23:31:46 +01:00
Benjamin Valentin
61bce4dc9c
socket_zep: get MAC address from EUI provider
2021-01-25 22:59:04 +01:00
Benjamin Valentin
d8918c24fa
socket_zep: register with netdev
2021-01-25 22:59:01 +01:00
Benjamin Valentin
ac9cd80aa7
cpu/native: clean up usage output
...
Remove newlines between block of arguments.
Add a newline at the end.
Makes usage output look tidier.
2021-01-25 22:58:38 +01:00
517fc585b1
cpu/native: Add dummy thread_arch.h header
2021-01-22 09:21:46 +01:00
Daniel Lockau
33afc0ddab
cpu/native/rtc: add rtc_set_time implementation
2020-12-15 12:52:35 +01:00