Commit Graph

54 Commits (aedffd78835f3afade2b34d55347048c01404c3f)

Author SHA1 Message Date
Martine Lenders 1f6f02e196 cpu/native: adapt start-up and auto-init for multiple netdev2_tap 7 years ago
Martine Lenders e9d13d73bc native: prettify argument parsing 7 years ago
Ludwig Ortmann 83886d61c7 native: start with interrupts disabled 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.
8 years ago
Oleg Hahm 59674a679b netdev2: use params parameter for setup 8 years ago
Kaspar Schleiser 9082273746 core: header cleanup 8 years ago
Ludwig Knüpfer eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 8 years ago
Hauke Petersen 7701aed546 Merge pull request #3164 from kaspar030/remove_uart0
sys: remove uart0
8 years ago
Kaspar Schleiser 0e4386a46f native: remove uart0 8 years ago
Kaspar Schleiser ef972735dc sys: net: replace dev_eth with netdev2, adapt native tap driver 8 years ago
Martine Lenders f0cb1429f0 native: rename ng_nativenet to dev_eth_tap 8 years ago
Kaspar Schleiser 5d8349298f remove bulk of legacy network stack and drivers 8 years ago
Benoît Canet dfbd4f946e cpu: native: switch to hwtimer_compat
The hwtimer_wait test was tortured with the
following script which ran several hours.

----

make clean all-debug

while :
do

date
./bin/native/hwtimer_wait.elf > log &
pid=$!
sleep 20

success=$(cat log|grep success)

if [ "$success" != "success"  ]
then
date
echo "BUG"
exit
fi

kill $pid

done
----

Closes #715.
8 years ago
haukepetersen e32b6c9504 cpu/native: improved error msg for netivenet 8 years ago
Kaspar Schleiser fbfb0954eb cpu: native: add tap implementation of dev_eth (ng_nativenet) 8 years ago
Ludwig Ortmann 88f1dc5cbc cpu/native: improve daemonization
- detach from working directory
- detach from process group
- set umask
9 years ago
Ludwig Ortmann 88fa49ab38 cpu/native: add high-quality random implementation
Per default random data is read from `/dev/random` now.

If specified (e.g. `-s 4711`), data is generated by calls to POSIX
random function like before. The POSIX random API is initialize with
the given seed (`srandom(4711);` in this example).
9 years ago
Ludwig Ortmann 7901d24053 native: add missing syscall declarations 9 years ago
Ludwig Ortmann 8d2a5b22b4 native: add daemonize argv filter
When daemonizing, only the first instance should do so.
9 years ago
Ludwig Ortmann 3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 9 years ago
Ludwig Ortmann 3cda0369cb native: cleanup
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
9 years ago
Ludwig Ortmann c6bcc344ca native: uart reconnect buffer replay
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).

The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.

closes #476
9 years ago
Ludwig Ortmann 2aa9f6b045 native: clean up and clarify help
- reorder option details to mirror the order given in usage
- list option arguments in option details
- clarify option arguments
9 years ago
René Kijewski 3063e3c2b1 Fix all warnings for native and qemu-i386
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
9 years ago
René Kijewski 2f871ca885 native: remove some warnings about undef functions
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
9 years ago
René Kijewski 2e9a1773e9 native: use `real_pipe()` and `read_close()` 9 years ago
Ludwig Ortmann dbc36fc2c5 native: add id option 9 years ago
Ludwig Ortmann 1e5e19bc23 native: set optional path with unix socket option
fixes #1045
9 years ago
Ludwig Ortmann e36590cda7 native: fix coding style 9 years ago
Ludwig Ortmann c9f68e79b9 native: set _native_pid correctly in daemon mode
This fixes a bug that leads to all unix sockets being created as
`/tmp/riot.tty.0`.
9 years ago
Ludwig Ortmann 98bbb80571 documentation: append my email to my name everywhere 10 years ago
René Kijewski 8038e96d09 Merge pull request #1119 from Kijewski/error_old-style-definition
Exterminate old-style function definitions
10 years ago
Ludwig Ortmann 166b88f1ae native: internal getpid syscall 10 years ago
Ludwig Ortmann 4c961bfb6e native: refactor getpid calls 10 years ago
René Kijewski 9a9caf2c68 Exterminate old-style function definitions 10 years ago
Ludwig Ortmann 6044dc28dc native: add help option
Closes: #840
10 years ago
Ludwig Ortmann 8ef02d3b9d native profiling support
only works with Linux for now
10 years ago
Ludwig Ortmann 561eefab07 implement rudimentary native reboot 10 years ago
Ludwig Ortmann 4939473afb guard malloc/free family 10 years ago
Ludwig Ortmann 83db6f6364 remove superflous include 10 years ago
Ludwig Ortmann 916757cf4c implement err.h
valgrind reported invalid reads/writes with glibc err[x]|warn[x] (in
glibc printf) when stdio had been redirected in between.

define _progname (pointing to argv[0])
10 years ago
Ludwig Ortmann 864267f238 daemonization, io socket and file redirection 10 years ago
Ludwig Ortmann d6c213fb47 fix grammar in license header 10 years ago
Ludwig Ortmann c764728398 pre-init native hwtimer
make it behaver more like a regular timer
10 years ago
Ludwig Ortmann 7b9d199ec8 make system calls safer/clean up headers
wrap some libc functions that do system calls (terminal output)
wrap read/write with syscall guard
define real_read/write (next dynamic linker find for read/write)
guard system calls in remaining code
introduce native_internhal.h
throw out some debug statements that break things
clean up includes a bit
declare board_init in native_internhal.h
add -ldl to LINKFLAGS for cpu/syscalls
10 years ago
Ludwig Ortmann 6fba4d7ced fix unused startup parameter warnings 10 years ago
Ludwig Ortmann 708ece68cc cc1100 -> nativenet 10 years ago
Ludwig Ortmann a634709c00 native cc1100x_ng network
not properly passing received data to transceiver atm
10 years ago
Christian Mehlis 837bad38eb rename kernel_intern.h
german "intern" to english "internal"
10 years ago
Oliver Hahm 5d70656343 fixed coding conventions (mostly by astyle) 10 years ago