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
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
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
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
136c630870
cpu/native: make thread size defines overridable
2021-05-07 13:12:01 +02: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
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
d8918c24fa
socket_zep: register with netdev
2021-01-25 22:59:01 +01:00
517fc585b1
cpu/native: Add dummy thread_arch.h header
2021-01-22 09:21:46 +01:00
Benjamin Valentin
d7ed3418b5
cpu/native: pm: fix build with pm_layered
2020-12-08 18:24:02 +01:00
1d5e2e9cd9
all: remove traces of kernel_types.h
...
Automatically removed using:
$ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
2020-11-25 17:52:34 +01:00
Marian Buschsieweke
dd48ced151
cpu/*/atomic_utils_arch.h: Add volatile qualifier
2020-11-24 14:00:52 +01:00
Martine Lenders
a07d3e0fc9
Merge pull request #14755 from benpicco/examples/gnrc_border_router-native
...
examples/gnrc_border_route: simplify ZEP setup on native
2020-11-13 18:41:03 +01:00
Benjamin Valentin
90f3c15084
socket_zep: send dummy HELLO packet on connect
2020-11-13 18:10:57 +01:00
792e031a95
Merge pull request #14331 from maribu/atomic_utils
...
sys/atomic_utils: Functions for atomic access
2020-11-12 21:44:53 +01:00
Marian Buschsieweke
56a54a773e
cpu/native: Add atomic_utils_arch.h
2020-11-10 10:55:14 +01:00
Benjamin Valentin
22ba75e8be
socket_zep: don't listen on local address by default
...
If no local port is specified for socket_zep to listen on, don't listen
on a local port at all instead of listening on a default port.
This does not work with multiple instances of socket_zep anyway.
2020-10-29 12:46:10 +01:00
81a0566c12
cpu/native: fix typo 'funtion' -> 'function'
2020-10-02 07:57:27 +02:00
Francisco
b5c51d244e
Merge pull request #14909 from OTAkeys/pr/conn_can_clean_up
...
can: add proper checks for ifnum validity
2020-10-01 09:22:28 +02:00
Vincent Dupont
b4f29035ce
native/can: fix CAN init
...
Native CAN device was not properly ported to periph_can interface.
This commit fixes this by renaming all needed structures and files so
auto_init_can can initialize the native device. FEATURES_PROVIDED is
also updated for native.
2020-09-30 12:59:03 +02:00
Marian Buschsieweke
e66d5fad31
cpu/native: Add architecture_arch.h
2020-09-29 12:34:00 +02:00
MrKevinWeiss
7893158b5a
drivers/dev_enums: Remove unused dev_enums.h
2020-09-24 09:27:39 +02:00
MrKevinWeiss
d95452b979
cpu/native: Remove unused TIMER_0_EN
2020-09-22 16:26:01 +02:00
Frank Hessel
4275b36cdb
cpu/native: Adapt HW SPI for HW GPIO support
2020-08-25 13:53:14 +02:00
Benjamin Valentin
ea25e8580c
cpu/native: add Linux GPIO implementation
2020-08-25 13:53:14 +02:00
47e2885f80
cpu/native: async_read: add native_async_read_add_int_handler()
...
fcntl(fd, F_SETOWN, getpid()); doesn't seem to work on Linux
to get generate a signal when an event on the GPIO fd occurs.
So fall back to the same method as on OS X and call poll() in
a child process.
2020-07-21 11:50:18 +02:00
a274ea45fc
cpu/native: async_read: rewrite select() call to poll()
...
select() can not listen to POLLPRI events which are used by the
Kernel's GPIO API.
In preparation for that, rewrite async_read() to use poll() instead
of select().
2020-07-21 11:50:18 +02:00
Akshai M
5523d119b6
gnrc/pktbuf : Move 'GNRC_PKTBUF_SIZE' to 'CONFIG_'
2020-06-11 14:46:36 +05:30
49375e1e10
cpu/native: rename trace -> backtrace
2020-06-04 14:37:01 +02:00
5a9f01d91a
native: pass eeprom file path via command line
2020-04-29 08:56:33 +02:00
4e1d7abddc
cpu/native: implement eeprom peripheral driver
...
The driver simply manages an internal buffer in memory that can be filled/dumped from/to a file
2020-04-29 08:55:08 +02:00
Sebastian Meiling
32f1178ff0
native: fix c11_atomic sizes on FreeBSD
...
There is size difference for atomic_int_fast8 and atomiic_uint_fast8
on FreeBSD, i.e., they match uint32_t with size of 4 bytes instead of
uint8_t with size of 8. Hence, tests/c11_atomics_cpp_compat buildtest
fails on FreeBSD.
2020-01-23 13:23:02 +01:00
Hyungsin
6eed5b9d43
remove XTIMER_OVERHEAD
2020-01-10 13:22:11 -08:00
31b027124b
cpu/native: fix typos
2019-11-23 22:39:36 +01:00
MrKevinWeiss
5c085d711d
cpu/native: Suppress cpu specific spi_clk_t in doxygen
2019-11-18 11:44:13 +01:00
Benjamin Valentin
0ea2cbf1eb
boards: remove RTT_NUMOF/RTC_NUMOF
...
Those macros are defined but never used.
2019-11-08 14:20:33 +01:00
Marian Buschsieweke
314184adb5
cpu: Platform specific C11 atomics compat headers
...
Added headers to define platform specific sizes and types for the C11 atomics
compatibility module for C++.
2019-10-24 23:08:36 +02:00
Frank Hessel
51194b9c0d
cpu/native: Implement hardware SPI access (Linux)
2019-10-16 14:32:53 +02:00
Benjamin Valentin
7047a200af
cpu/native: advertise support for unaligned memory access
...
On Linux, even if the architecture does not support it, the kernel will
catch the fault and emulate the unaligned accesss.
2019-09-04 14:15:52 +02:00
Gilles DOFFE
1da6a03f09
cpu/native: add pwm implementation
...
Simulate PWM signals with a 2 dimensions array.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gunar Schorcht
c5e9f12243
doc: fix undocumented func in socket_zep_params.h
2019-01-18 07:18:06 +01:00
Semjon Kerner
5b0152f4f7
drivers/netdev_ieee802154: drop NETOPT_MAX_PKT_SIZE
2018-10-16 13:28:03 +02:00
4133908fe0
cpu/native: fix doxygen grouping
2018-06-11 19:12:02 +02:00
Joakim Nohlgård
2d88cfca15
native: Define PROVIDES_PM_SET_LOWEST
2018-05-15 10:58:05 +02:00
Martine Lenders
875a5c165d
trace: initial import of a stack backtrace function for native
...
Sometimes the debugger just isn't fast enough to debug that pesky race
conditions. This module provides at least a little help.
2018-03-20 15:12:48 +00:00
Gilles DOFFE
07158755ea
cpu/native: add qdec implementation
...
* Add support for the native encoder interface
* Native QDEC is there mostly for simulation
* Calling code will have to simulate QDEC increment/decrement
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:16:42 +01:00
7847a91e12
cpu: instead of cpp-style, use C-style comments
2018-02-06 16:59:58 +01:00