Martine Lenders
29842bb5e4
netdev2: rename to netdev and remove gnrc_netdev
...
With some minor hand-edits I used the following chain of commands:
```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
-e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
-e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
grep "netdev2" | while read dir; do
new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
git mv -f "$dir" "$new_dir"
done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | while read file; do
new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
git mv -f "$file" "$new_file"
done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
26b99a57be
cpu: native: add vfs wrappers
2017-03-07 17:59:59 +01:00
2d92661b76
cpu: native: fix thread_yield_higher inisr() case
2017-02-27 16:10:12 +01:00
Hauke Petersen
2f9e3c89e1
periph/hwrng: use void* buf for hwrng_read()
2017-02-07 13:20:39 +01:00
3e49d0c8c6
Merge pull request #6434 from aabadie/petersen_typo
...
cpu: fix typo in author email
2017-01-20 10:43:24 +01:00
245f60edfa
cpu: fix typo in author email
2017-01-19 21:45:23 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Martine Lenders
1f6f02e196
cpu/native: adapt start-up and auto-init for multiple netdev2_tap
2017-01-19 12:07:10 +01:00
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.
2017-01-18 23:03:44 +01:00
Hauke Petersen
a35709b4f8
Merge pull request #6360 from OlegHahm/periph_timer_remove_irq
...
periph timer: remove timer_irq_(en|dis)able
2017-01-18 22:58:21 +01:00
Oleg Hahm
7c04f05d29
Merge pull request #6337 from miri64/native/enh/pretty-startup
...
native: prettify argument parsing
2017-01-18 22:56:12 +01:00
Oleg Hahm
bfc439aa04
doc: native: do not parse internal functions
2017-01-15 13:06:43 +01:00
Oleg Hahm
d0316fa7ae
periph timer: remove timer_irq_(en|dis)able
2017-01-14 15:34:53 +01:00
Martine Lenders
e9d13d73bc
native: prettify argument parsing
2017-01-12 23:40:17 +01:00
Martine Lenders
72a3e7e6e1
Merge pull request #6174 from cgundogan/pr/netdev2_tap/assert_to_if
...
netdev2_tap: assert address len >= ETHERNET_ADDR_LEN
2017-01-12 22:28:56 +01:00
Cenk Gündoğan
aaf012ad83
netdev2_tap: assert address len >= ETHERNET_ADDR_LEN
2017-01-12 18:14:14 +01:00
4291c1f839
native: support add periph/pm support
2017-01-12 11:24:15 +01:00
0194091673
remove obsolete lpm code
2017-01-12 11:24:15 +01:00
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.
2016-12-14 14:17:14 +01:00
Peter Kietzmann
e547ff1d60
Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
...
periph/uart: added names to return values
2016-11-29 19:14:09 +01:00
Martine Lenders
613bceeae3
netdev2_tap: return actual byte number on read request
2016-11-16 23:57:04 +01:00
smlng
e9aba880cd
native: fix netdev2_tap for macOS
2016-11-16 18:50:49 +01:00
smlng
e867d83eff
cbor: fix redefined macro error on macOS
2016-11-10 16:16:06 +01:00
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
2016-10-28 10:32:00 +02:00
Ludwig Ortmann
0b72be7c87
native: add syscall-leave trampoline
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
237340b3e3
native: add thread_yield_higher misuse warning
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
83886d61c7
native: start with interrupts disabled
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
535eda8805
native: improve comments, coding style
2016-10-15 07:40:49 +02:00
Oleg Hahm
b428979a1d
debug: add missing line breaks
2016-09-27 23:38:41 +02:00
Martine Lenders
16cae9771f
Merge pull request #5613 from OTAkeys/pr/async_read_cb_args
...
cpu/native: add args to async_read callback
2016-08-05 14:17:18 +02:00
Martine Lenders
bd2429f299
cpu: drivers: adapt devices for netdev2 parameter type change
2016-08-03 12:30:51 +02:00
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.
2016-07-26 20:07:08 +02:00
Ludwig Knüpfer
d639f0b9a3
cpu/native: rewrite cpu_print_last_instruction
...
circumvent assembly by using a GCC/LLVM builtin
2016-07-26 12:44:43 +02:00
Joakim Nohlgård
b02e0eca47
ps: Add current stack pointer and start of stack to isr_stack ps output (DEVELHELP)
2016-07-12 10:17:49 +02:00
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.
2016-07-07 17:40:13 +02:00
zhuoshuguo
efbbca1322
cpu: Fix header include guards
2016-06-20 10:18:59 +02:00
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.
2016-06-03 16:05:14 -03:00
Martine Lenders
35077bb224
Merge pull request #4871 from kaspar030/remove_netdev2_isr_arg
...
drivers: netdev2: remove netdev2 event_callback isr_arg
2016-06-02 13:30:30 +02:00
d7b17684e4
drivers: net: adapt to removed event_callback argument
2016-06-02 11:11:40 +02:00
MohmadAyman
53df3e8b57
core: cpu: provide function to acquire ISR stack usage
2016-06-01 23:01:35 +02:00
MohmadAyman
720136491a
cpu: unify naming of ISR stacksize macro
2016-06-01 22:47:34 +02:00
Yonezawa-T2
3c16e8426f
native: add timeout for select. Fixes #5442
2016-06-01 12:31:19 +09:00
Martine Lenders
c24e91d4df
Merge pull request #5229 from OlegHahm/pktbuf_minimal_check
...
netdev ethernet: deal with too small packet buffer
2016-04-20 14:44:30 +02:00
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.
2016-04-20 09:10:55 +02:00
334481559d
cpu: native: make netdev2_tap internal functions static
2016-04-11 17:03:28 +02:00
Oleg Hahm
900528b2f2
netdev2_tap: check for existence before calling cb
2016-04-03 18:04:03 +02:00
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.
2016-03-31 16:59:12 +09:00
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.
2016-03-31 16:59:12 +09:00
Oleg Hahm
1f4d73dde1
Merge pull request #4801 from OlegHahm/netstats
...
netstats: introduce L2 netstats
2016-03-30 14:42:49 +02:00