Karl Fessel
15f2d0008a
native/rtc: ensure no struct tm extra information is used
2021-04-01 18:19:15 +02:00
Karl Fessel
72213ec99a
native/rtc: avoid dealing with DST
2021-04-01 18:19:15 +02:00
Francisco
c91499997e
Merge pull request #16030 from benpicco/drivers/mtd_flashpage-fix_native
...
drivers/mtd_flashpage: fixes for native (and stm32l0, stm32l4)
2021-02-23 15:12:06 +01:00
Benjamin Valentin
65093a47a3
cpu/native: timer: fix style issue
2021-02-23 09:52:05 +01:00
Benjamin Valentin
7eb159c2a2
cpu/native: timer: implement timer_set_periodic()
...
The native timer is not free running, so we can't honor it's flags.
But setitimer() already provides an interval option, we only have to enable it.
2021-02-23 09:51:53 +01:00
Benjamin Valentin
033c0110d0
cpu/native: flashpage: sector-slign the flashpage area
2021-02-18 14:22:11 +01:00
Benjamin Valentin
1acbd6e560
cpu/native: add periph/flashpage implementation
...
Add a simple RAM-backed flashpage implementation for native, to
allow for easier testing of flashpage based applications / features.
2021-02-05 23:31:46 +01:00
Daniel Lockau
33afc0ddab
cpu/native/rtc: add rtc_set_time implementation
2020-12-15 12:52:35 +01:00
Benjamin Valentin
d7ed3418b5
cpu/native: pm: fix build with pm_layered
2020-12-08 18:24:02 +01:00
Leandro Lanzieri
43cc7beb26
cpu/native: add periph_spidev module to Kconfig
2020-11-18 10:08:01 +01:00
Leandro Lanzieri
2306516d0d
drivers/periph_common: add CPU specific RTC Kconfig
2020-11-18 10:08:00 +01:00
Leandro Lanzieri
8715f19c26
cpu/native/periph: add Native GPIO modules to Kconfig
2020-11-18 10:07:59 +01:00
Leandro Lanzieri
d4be753df8
cpu/native: remove unused can_linux module
...
b4f29035ce
adapted the can_linux module to
the periph_can interface. This is a cleanup of some things that stayed
behind. Here the makefile is removed, the references to can_linux in the
dependency resolution and configuration Makefile are changed to the
standard periph_can, and the startup code is adapted.
2020-11-13 09:11:50 +01:00
Bas Stottelaar
94171b7389
cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:34:12 +01:00
Marian Buschsieweke
125c892c03
drivers/periph/timer: Use uint32_t for frequency
...
For all currently supported platforms `unsigned long` is 32 bit in width. But
better use `uint32_t` to be safe.
2020-10-30 22:02:12 +01:00
Bas Stottelaar
22243aec7a
cpu/*: realign ENABLE_DEBUG
2020-10-23 00:46:26 +02:00
Bas Stottelaar
ab6188cea3
cpu/*: add missing include of assert.h
2020-10-22 11:13:08 +02:00
Vincent Dupont
b4f29035ce
native/can: fix CAN init
...
Native CAN device was not properly ported to periph_can interface.
This commit fixes this by renaming all needed structures and files so
auto_init_can can initialize the native device. FEATURES_PROVIDED is
also updated for native.
2020-09-30 12:59:03 +02:00
benpicco
029ae8c7d2
Merge pull request #14766 from benpicco/cpu/native-rtc_set_alarm
...
cpu/native: RTC: implement rtc_set_alarm()
2020-08-28 17:39:47 +02:00
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