Alexandre Abadie
3e49d0c8c6
Merge pull request #6434 from aabadie/petersen_typo
...
cpu: fix typo in author email
6 years ago
Alexandre Abadie
245f60edfa
cpu: fix typo in author email
6 years ago
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
6 years ago
Martine Lenders
1f6f02e196
cpu/native: adapt start-up and auto-init for multiple netdev2_tap
6 years ago
Toon Stegen
37c4810fba
cpu/native: allow multiple netdev2 tap devices
...
With arg added to async_read callback in 7020b7c0
, we don't need to keep
track of netdev2_tap locally. As a result we can use multiple
netdev2_tap instances.
6 years ago
Hauke Petersen
a35709b4f8
Merge pull request #6360 from OlegHahm/periph_timer_remove_irq
...
periph timer: remove timer_irq_(en|dis)able
6 years ago
Oleg Hahm
7c04f05d29
Merge pull request #6337 from miri64/native/enh/pretty-startup
...
native: prettify argument parsing
6 years ago
Oleg Hahm
bfc439aa04
doc: native: do not parse internal functions
6 years ago
Oleg Hahm
d0316fa7ae
periph timer: remove timer_irq_(en|dis)able
6 years ago
Martine Lenders
e9d13d73bc
native: prettify argument parsing
6 years ago
Martine Lenders
72a3e7e6e1
Merge pull request #6174 from cgundogan/pr/netdev2_tap/assert_to_if
...
netdev2_tap: assert address len >= ETHERNET_ADDR_LEN
6 years ago
Cenk Gündoğan
aaf012ad83
netdev2_tap: assert address len >= ETHERNET_ADDR_LEN
6 years ago
Kaspar Schleiser
4291c1f839
native: support add periph/pm support
6 years ago
Kaspar Schleiser
0194091673
remove obsolete lpm code
6 years ago
Cenk Gündoğan
0b85959efc
Revert "netdev2_tap: return actual byte number on read request"
...
This reverts commit 613bceeae3
.
FIONREAD seems to be unsupported for tun/tap interfaces in Linux.
7 years ago
Peter Kietzmann
e547ff1d60
Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
...
periph/uart: added names to return values
7 years ago
Martine Lenders
613bceeae3
netdev2_tap: return actual byte number on read request
7 years ago
smlng
e9aba880cd
native: fix netdev2_tap for macOS
7 years ago
smlng
e867d83eff
cbor: fix redefined macro error on macOS
7 years ago
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
7 years ago
Ludwig Ortmann
0b72be7c87
native: add syscall-leave trampoline
7 years ago
Ludwig Ortmann
237340b3e3
native: add thread_yield_higher misuse warning
7 years ago
Ludwig Ortmann
83886d61c7
native: start with interrupts disabled
7 years ago
Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
7 years ago
Ludwig Ortmann
535eda8805
native: improve comments, coding style
7 years ago
Oleg Hahm
b428979a1d
debug: add missing line breaks
7 years ago
Martine Lenders
16cae9771f
Merge pull request #5613 from OTAkeys/pr/async_read_cb_args
...
cpu/native: add args to async_read callback
7 years ago
Martine Lenders
bd2429f299
cpu: drivers: adapt devices for netdev2 parameter type change
7 years ago
Ludwig Knüpfer
05d4b2f8fa
cpu/native: fix thread_stack_init
...
The pointer arithmetic for the calculation of the context storage was off
due to the change of the stack's pointer type from unsigned int to char.
Fix offset calculation by not adjusting for unsigned int width anymore.
7 years ago
Ludwig Knüpfer
d639f0b9a3
cpu/native: rewrite cpu_print_last_instruction
...
circumvent assembly by using a GCC/LLVM builtin
7 years ago
Joakim Nohlgård
b02e0eca47
ps: Add current stack pointer and start of stack to isr_stack ps output (DEVELHELP)
7 years ago
Toon Stegen
7020b7c09c
cpu/native: add args to async_read callback
...
this makes it possible to pass some generic pointer that's given back as
an argument when the callback is called.
7 years ago
zhuoshuguo
efbbca1322
cpu: Fix header include guards
7 years ago
Iván Briano
6846b4ebdd
cpu: native: Add [v]fprintf to syscalls
...
External packages that may use fprintf(stderr, ...) for logging will
link directly to the libc version of it, and for some reason that
results in the application crashing.
7 years ago
Martine Lenders
35077bb224
Merge pull request #4871 from kaspar030/remove_netdev2_isr_arg
...
drivers: netdev2: remove netdev2 event_callback isr_arg
7 years ago
Kaspar Schleiser
d7b17684e4
drivers: net: adapt to removed event_callback argument
7 years ago
MohmadAyman
53df3e8b57
core: cpu: provide function to acquire ISR stack usage
7 years ago
MohmadAyman
720136491a
cpu: unify naming of ISR stacksize macro
7 years ago
Yonezawa-T2
3c16e8426f
native: add timeout for select. Fixes #5442
7 years ago
Martine Lenders
c24e91d4df
Merge pull request #5229 from OlegHahm/pktbuf_minimal_check
...
netdev ethernet: deal with too small packet buffer
7 years ago
Oleg Hahm
3f1c2e1f1b
native: assert that the pktbuf is big enough
...
Rationale: the netdev2_tap Ethernet driver for native requires to temporarily store at least a maximum sized Ethernet frame.
7 years ago
Kaspar Schleiser
334481559d
cpu: native: make netdev2_tap internal functions static
7 years ago
Oleg Hahm
900528b2f2
netdev2_tap: check for existence before calling cb
7 years ago
Yonezawa-T2
c4bc42419b
netdev2_tap: continue reading even if no spaces left in pktbuf
...
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.
With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
7 years ago
Yonezawa-T2
79d33897cb
native: add UART driver based on /dev/tty
...
uart0 functionality is removed by #3164 . This patch implements periph/uart,
rather than deprecated uart0, using /dev/tty.
To use with netdev2_tap simultaneously, this patch adds asynchronus read system
and modifies netdev2_tap to use it.
A TTY device is specified on command line with -c (COM) option, since -t was
used by the old implementation.
This patch also implements empty GPIO driver needed by the xbee driver.
7 years ago
Oleg Hahm
1f4d73dde1
Merge pull request #4801 from OlegHahm/netstats
...
netstats: introduce L2 netstats
7 years ago
Oleg Hahm
021e94ee6a
netdev2: introduce linklayer netstats
7 years ago
Yonezawa-T2
1ce140d910
debug: fix compilation error for %p formatter
7 years ago
Oleg Hahm
59674a679b
netdev2: use params parameter for setup
7 years ago
Oleg Hahm
26b3263f8a
netdev2: moved ethernet header into subdir
7 years ago