Commit Graph

35 Commits (362077d3d53b1ffb32e7151367940d411d04df64)

Author SHA1 Message Date
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
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
Yonezawa-T2 6d4abb96dc native: workaround for thread_t name collision 8 years ago
Hauke Petersen b11a3ad74b cpus: adapted timer implementations to API changes 8 years ago
Joakim Nohlgård e2f7ac78f0 Merge pull request #4040 from gebart/pr/periph-timer-init-freq
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
8 years ago
Hauke Petersen c9e9fcf662 cpu/native: adapted HWRNG implementation 8 years ago
Joakim Nohlgård d24cdd7cde cpu/native: Update timer_init to match API changes 8 years ago
Hauke Petersen 940097336a cpu: cleanup and unification of CPUID implementations
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
8 years ago
Frank Holtz 1c32a536bc pkg/driver: native random fix for micro-ecc 8 years ago
Kaspar Schleiser ceaeee5c5d Revert "native: periph/timer: prevent underflow in timer_set_absolute"
This reverts commit ec441e9aa6.
8 years ago
Joakim Nohlgård cbaeccdb90 periph/timer: Drop timer_reset 8 years ago
Ludwig Knüpfer eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 8 years ago
Hauke Petersen 1664bcbf59 native/timer: fix return value for invalid channel 8 years ago
Kaspar Schleiser 2cd4a80054 cpu: native: minor timer-related doxygen updates 8 years ago
Thomas Eichinger f841811a49 cpu/native: fix OS X includes and declarations 8 years ago
Kaspar Schleiser 21238b2ccc Merge pull request #3347 from benoit-canet/timer
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
8 years ago
Oleg Hahm 9922d2600c native: removed dead code
num was never read, because native will exit before.
8 years ago
Kaspar Schleiser d15f0990b3 Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
native: periph/timer: prevent underflow in timer_set_absolute
8 years ago
Benoît Canet e01329796d native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
This keeps the test/hwtimer_wait test duration correct.
8 years ago
Kaspar Schleiser ec441e9aa6 native: periph/timer: prevent underflow in timer_set_absolute 8 years ago
Benoît Canet e8e89d8ca9 native: timer: Do not cancel timer when setting it to 0 8 years ago
Kaspar Schleiser fe96d379f6 native: add periph/timer.h timer implementation 8 years ago
Hauke Petersen 9943f51080 global: renamed cpu-conf.h into cpu_conf.h 8 years ago
Joakim Gebart 13832d8e62 everything: Remove filename from @file Doxygen command 8 years ago
Martine Lenders 0eb2d78dda doc: use my real name 9 years ago
Ludwig Ortmann 3465213118 cpu/native: warn about uninitialized random module 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 2ec0a1ca02 native/rtc: apply naming conventions 9 years ago
Ludwig Ortmann 474c8afd93 native/rtc: define ENABLE_DEBUG, move include 9 years ago
Ludwig Ortmann f35981a6d7 native/rtc: improve implementation
* add error checking / warnings
* implement parts of alarm functionality
* clean up
9 years ago
Ludwig Ortmann 37a1a105bc native/rtc: clean up documentation 9 years ago
Ludwig Ortmann c0ef84bb9f native: move rtc to periph
* adapt implementation to new interface
* remove now superfluous drivers directory
9 years ago
Ludwig Ortmann adb24b06b8 native: add random peripheral implementation 9 years ago
Ludwig Ortmann 833c36f09d native: relocate periph/cpuid implementation 9 years ago
Ludwig Ortmann 96d2907666 native: add periph substructure 9 years ago