Benjamin Valentin
d2e0af2941
cpu/native: gpio: provide dummy implementations for GPIO IRQ
2020-08-25 13:53:14 +02:00
Benjamin Valentin
39b41d62cd
cpu/native: allow to disable native periph implementations
2020-08-25 13:53:14 +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
Benjamin Valentin
bdc43c245c
cpu/native: RTC: implement rtc_set_alarm()
...
Use xtimer to simulate an RTC timer.
This allows to simulate software that makes use of `rtc_set_alarm()`
on native.
2020-08-16 23:28:30 +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
31b027124b
cpu/native: fix typos
2019-11-23 22:39:36 +01:00
Frank Hessel
51194b9c0d
cpu/native: Implement hardware SPI access (Linux)
2019-10-16 14:32:53 +02:00
Sebastian Meiling
935bb51e14
cpu/native: adapt timer to return 0 on success
...
Adapt periph/timer implementation of native based MCUs
to return 0 on success for all functions.
2019-09-11 13:51:02 +02:00
Gilles DOFFE
90f819eee2
cpu/native: return 0 if GPIO is an output in gpio_init
...
If the GPIO is in an output state, gpio_init() can return 0 without bad
consequences.
-1 was return until now.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gilles DOFFE
dc8a44ce14
cpu/native: correct emails in header
...
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01: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
Martine Lenders
d34bf526c1
Merge pull request #10783 from kaspar030/fix_native_timer
...
cpu/native/periph/timer: fix type conversion
2019-01-17 11:11:01 +01:00
f5345fbd38
cpu/native/periph/timer: fix undefined behaviour
2019-01-16 15:16:54 +01:00
Kees Bakker
2d04cdfb89
cpu/native: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
Hauke Petersen
a965532d07
cpu/native/gpio: remove empty gpio irq func stubs
2018-09-20 14:51:19 +02:00
4133908fe0
cpu/native: fix doxygen grouping
2018-06-11 19:12:02 +02:00
Hauke Petersen
4fd16b0bcc
cpu/native: add empty uart/power_x functions
2018-03-02 10:54:21 +01: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
c398b74ae0
cpu: native: uart: adapt to changed DEBUG
2018-01-15 14:37:04 +01:00
a20745b6c5
cpu: make use of Makefile.periph
2017-11-06 12:01:19 +01:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
Hauke Petersen
2f9e3c89e1
periph/hwrng: use void* buf for hwrng_read()
2017-02-07 13:20:39 +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
Oleg Hahm
d0316fa7ae
periph timer: remove timer_irq_(en|dis)able
2017-01-14 15:34:53 +01:00
4291c1f839
native: support add periph/pm support
2017-01-12 11:24:15 +01:00
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
2016-10-28 10:32:00 +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
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
Yonezawa-T2
6d4abb96dc
native: workaround for thread_t name collision
2016-03-14 14:23:38 +09:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
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
2016-02-15 23:36:44 +01:00
Hauke Petersen
c9e9fcf662
cpu/native: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Joakim Nohlgård
d24cdd7cde
cpu/native: Update timer_init to match API changes
2016-02-13 21:29:36 +01:00
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
2016-02-08 14:36:03 +01:00
Frank Holtz
1c32a536bc
pkg/driver: native random fix for micro-ecc
2016-01-25 21:03:03 +01:00
ceaeee5c5d
Revert "native: periph/timer: prevent underflow in timer_set_absolute"
...
This reverts commit ec441e9aa6
.
2016-01-06 22:07:13 +01:00
Joakim Nohlgård
cbaeccdb90
periph/timer: Drop timer_reset
2015-10-17 20:11:03 +02:00
Ludwig Knüpfer
eda6328e21
documentation: update my name (Ortmann -> Knüpfer)
2015-09-27 18:58:30 +02:00
Hauke Petersen
1664bcbf59
native/timer: fix return value for invalid channel
2015-09-23 14:48:23 +02:00
2cd4a80054
cpu: native: minor timer-related doxygen updates
2015-09-16 10:58:53 +02:00
Thomas Eichinger
f841811a49
cpu/native: fix OS X includes and declarations
2015-09-02 17:34:47 +02:00
21238b2ccc
Merge pull request #3347 from benoit-canet/timer
...
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
2015-07-29 10:14:58 +02:00
Oleg Hahm
9922d2600c
native: removed dead code
...
num was never read, because native will exit before.
2015-07-22 14:36:21 +02:00
d15f0990b3
Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
...
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 22:17:44 +02:00
Benoît Canet
e01329796d
native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
...
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
ec441e9aa6
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 15:23:21 +02:00
Benoît Canet
e8e89d8ca9
native: timer: Do not cancel timer when setting it to 0
2015-07-09 15:08:47 +02:00
fe96d379f6
native: add periph/timer.h timer implementation
2015-07-09 02:43:04 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
Ludwig Ortmann
3465213118
cpu/native: warn about uninitialized random module
2015-01-19 11:21:01 +01:00
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).
2015-01-14 11:51:23 +01:00
Ludwig Ortmann
2ec0a1ca02
native/rtc: apply naming conventions
2014-12-16 15:46:56 +01:00
Ludwig Ortmann
474c8afd93
native/rtc: define ENABLE_DEBUG, move include
2014-12-16 15:41:51 +01:00
Ludwig Ortmann
f35981a6d7
native/rtc: improve implementation
...
* add error checking / warnings
* implement parts of alarm functionality
* clean up
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
37a1a105bc
native/rtc: clean up documentation
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
c0ef84bb9f
native: move rtc to periph
...
* adapt implementation to new interface
* remove now superfluous drivers directory
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
adb24b06b8
native: add random peripheral implementation
2014-11-19 14:26:58 +01:00
Ludwig Ortmann
833c36f09d
native: relocate periph/cpuid implementation
2014-10-18 10:48:03 +02:00
Ludwig Ortmann
96d2907666
native: add periph substructure
2014-10-18 10:47:26 +02:00