Joakim Nohlgård
c7801e466d
kinetis: Refactor RTT driver
...
- Keep counter value between resets
- Let kinetis_mcg_init manage the RTC oscillator, to avoid disrupting
the core clock in certain configurations
- Remove some unnecessary macros for hardware abstraction; all Kinetis
CPUs which have an RTC only have a single RTC instance, and the ISRs
and hardware registers are named the same way in all Kinetis CPU
headers.
2018-05-22 16:46:39 +02:00
Joakim Nohlgård
9e10cd4401
cpu/kinetis: Refactor LPTMR driver implementation
...
Uses timer freerunning counter mode (TFC) and updating an internal
reference point instead of relying on RTT for reference time. The
target accuracy has been greatly improved for all test cases in
bench_periph_timer
2018-05-22 16:45:41 +02:00
Marian Buschsieweke
17a5101b40
cpu/lpc2387: Fixed broken SPI driver
...
In commit 513b20ffd3
the SPI API was changed to
power up an configure the SPI bus on spi_acquire(). Sadly, the lpc2387 SPI
apparently needs to be reconfigured after each power up. This commit moves
the initialization code required after each power up from spi_init() to
spi_acquire().
2018-05-19 18:12:25 +02:00
b7c65fe2ce
Merge pull request #9132 from gebart/pr/native-pm
...
native: define PROVIDES_PM_SET_LOWEST
2018-05-15 21:48:40 +02:00
601846c2ba
cpu/stm32l4: add support for stm32l496zg
2018-05-15 11:56:51 +02:00
Joakim Nohlgård
2d88cfca15
native: Define PROVIDES_PM_SET_LOWEST
2018-05-15 10:58:05 +02:00
ecb2e4767d
Merge pull request #8955 from aabadie/pr/cpu/guard_cc2538
...
cpu/cc2538: remove obsolete periph file guard
2018-05-14 22:46:47 +02:00
3f1657ffbb
Merge pull request #8952 from ZetaR60/RIOT_atmega_graceful_clock
...
boards/common/atmega: gracefully handle CKDIV8 fuse
2018-05-14 16:11:17 +02:00
bb60b3e040
Merge pull request #9074 from haukepetersen/opt_nrf5x_nrfminfeature
...
cpu/nrf5x: define nrfmin feature in nrf5x_common
2018-05-12 02:18:31 +02:00
Joakim Nohlgård
77449aa592
Merge pull request #9103 from gebart/pr/cortexm-vectors-const
...
cortexm: const ISR vectors
2018-05-11 21:35:12 +02:00
83e8a52176
Merge pull request #9089 from gebart/pr/ldscript-attrs
...
cpu: ldscript memory attribute corrections
2018-05-09 09:26:20 +02:00
260940cfa3
Merge pull request #9079 from OTAkeys/pr/stm32f423
...
cpu/stm32f4: add support for STM32F423 line
2018-05-09 09:18:18 +02:00
Joakim Nohlgård
986000492d
stm32_common: Adjust ldscript memory segment attributes
2018-05-09 06:49:29 +02:00
Joakim Nohlgård
e29e0588b4
sam_common: Adjust ldscript memory segment attributes
2018-05-09 06:49:25 +02:00
Joakim Nohlgård
28361592ae
sam0_common: Adjust ldscript memory segment attributes
2018-05-09 06:49:02 +02:00
Joakim Nohlgård
72118db964
nrf52: Adjust ldscript memory segment attributes
2018-05-09 06:48:40 +02:00
Joakim Nohlgård
57b56d2e4d
nrf51: Adjust ldscript memory segment attributes
2018-05-09 06:46:51 +02:00
Joakim Nohlgård
60b13e680c
lpc2387: Adjust ldscript memory segment attributes
2018-05-09 06:46:05 +02:00
Joakim Nohlgård
bb7fdb6eda
lpc1768: Adjust ldscript memory segment attributes
2018-05-09 06:45:28 +02:00
Joakim Nohlgård
37cb8dcf95
lm4f120: Adjust ldscript memory segment attributes
2018-05-09 06:45:00 +02:00
Joakim Nohlgård
433322834e
ezr32wg: Adjust ldscript memory segment attributes
2018-05-09 06:44:39 +02:00
Joakim Nohlgård
4532c348b4
cortexm_common: Adjust ldscript memory segment attributes
2018-05-09 06:44:12 +02:00
Joakim Nohlgård
93e2527a64
cc26x0: Adjust ldscript memory segment attributes
2018-05-09 06:43:17 +02:00
Joakim Nohlgård
e3a27a74cc
cc2538: Adjust ldscript memory segment attributes
2018-05-09 06:41:57 +02:00
Joakim Nohlgård
e7b957fb04
mips_pic32mz: Tabs to spaces in ldscript
2018-05-09 00:41:27 +02:00
Joakim Nohlgård
b8d6bcdb07
cortexm_common: specify load segment instead of load address for .data
2018-05-09 00:41:27 +02:00
Joakim Nohlgård
179e8505ba
kinetis: Const ISR vector padding
...
Fixes misleading .data usage in size output because the .vectors section
is now properly marked as read-only in the ELF file.
2018-05-09 00:32:28 +02:00
Joakim Nohlgård
f073fdb34f
cortexm_common: Mark base ISR vector as const
2018-05-09 00:32:28 +02:00
Joakim Nohlgård
85111cb159
Merge pull request #9084 from gebart/pr/kinetis-ldscript-fix
...
kinetis: Memory segment attribute fixes
2018-05-07 16:53:12 +02:00
Joakim Nohlgård
321aa567d6
kinetis: Memory segment attribute fixes
...
vectors and flashsec memory segments will not be considered for orphan
sections if rx is only given for the rom segment.
2018-05-05 08:11:00 +02:00
Vincent Dupont
4e86e12247
cpu/stm32_common: add info-stm32 make target
2018-05-04 15:30:56 +02:00
Vincent Dupont
51dcf27904
cpu/stm32f4: fix support for whole STM32F413 line
2018-05-04 15:30:56 +02:00
Vincent Dupont
9c03ff71b7
cpu/stm32f4: add support for STM32F423 line
2018-05-04 15:30:56 +02:00
Hauke Petersen
9815697b3e
cpu/nrf5x: define nrfmin feature in nrf5x_common
2018-05-04 13:47:46 +02:00
Matthew Blue
55a7d8f83d
boards/jiminy-mega256rfr2: remove context swap defines
2018-05-03 17:29:28 -04:00
Matthew Blue
2979626ef6
boards/common/atmega: gracefully handle CKDIV8 fuse
2018-05-02 14:05:33 -04:00
Matthew Blue
ac2b643308
cpu/atmega_common: return to non-interrupt context swaps
2018-04-27 14:13:34 -04:00
Semjon Kerner
ad993263e9
cpu/nrf51/pwm: initial implementation
2018-04-25 15:54:00 +02:00
Francisco Acosta
689333ff04
Merge pull request #8928 from gebart/pr/kinetis-clock-init
...
kinetis: Refactor clock initialization code
2018-04-17 12:15:47 +02:00
Joakim Nohlgård
c54f6b4fcf
kinetis: Refactor clock generator initialization
2018-04-17 06:59:22 +02:00
bcab6bd1ba
cpu/lpc2387: remove useless periph file guard
2018-04-16 10:11:47 +02:00
5a63331621
cpu/lpc1768: remove useless timer periph file guard
2018-04-16 10:09:03 +02:00
ebbb071e0a
cpu/cc2538: remove useless periph file guard
2018-04-16 10:07:00 +02:00
1195ee609f
cpu/atmega_common: remove useless periph file guard
2018-04-16 09:58:44 +02:00
Gaëtan Harter
e876bbd0ae
Merge pull request #8817 from cladmi/pr/ld/mips32r2_timer_set
...
mips32r2_common: timer fixes
2018-04-13 14:32:12 +02:00
Vincent Dupont
0d9badfab5
atmega_common: improve posix_unistd syscalls
...
Add open implementation and improve fcntl with variable arguments
2018-04-13 10:51:07 +02:00
3d97fd4771
Merge pull request #6164 from kaspar030/fix_cortexm_thread_yield
...
cortexm: fix thread_yield() -> thread_yield_higher() in ISRs
2018-04-13 10:27:46 +02:00
c9c7cd4951
cpu: cortexm_common: use thread_yield_higher() in cortexm_isr_end()
2018-04-13 10:12:39 +02:00
80f97b0f54
Merge pull request #8890 from basilfx/feature/efm32_rtt_rtc
...
cpu: efm32: throw error on including rtc and rtt together.
2018-04-12 23:10:56 +02:00
Gaëtan Harter
40c28d78c0
Revert "native: remove non required NATIVEINCLUDES"
...
This reverts commit 93a521c501
.
2018-04-12 17:48:07 +02:00
a1050daec0
Merge pull request #8819 from Marc-Aurele/i2c_timeout_busy
...
cpu/stm32l0 : timeout added on waiting loop
2018-04-12 08:59:03 +02:00
Bas Stottelaar
bbb0606e33
cpu: efm32: mark rtc+rtt as conflict.
2018-04-11 18:39:59 +02:00
Martine Lenders
f52b17022e
netdev_tap: fix return value of set option function
2018-04-10 15:12:15 +02:00
cladmi
3f145413f5
boards/makefiles: Remove '-Otype' from OFLAGS
...
* Remove '-Oihex' and '-Obinary' from OFLAGS for all boards
It is now provided by the Makefile.include rule.
2018-04-09 17:32:46 +02:00
2866a26a24
Merge pull request #8808 from Josar/atmega_stackPointer
...
cpu/atmega_common: use __temp_reg__
2018-04-09 12:05:29 +02:00
d7bf2c112e
Merge pull request #7491 from aabadie/nucleo_l433
...
boards/nucleo-l433rc: initial support
2018-04-07 21:12:14 +02:00
Francisco Acosta
ce4384604e
Merge pull request #8824 from basilfx/feature/efm32_slwstk6200b
...
boards: slwstk6000b: add support
2018-04-06 13:59:41 +02:00
Hauke Petersen
a92b577bc1
cpu/nrf5x: added nrfble radio driver
2018-04-06 11:18:53 +02:00
Bas Stottelaar
b40cf3075e
cpu/efm32: efr32mg12p: add support
2018-04-05 19:41:24 +02:00
Bas Stottelaar
9937f29eab
cpu/efm32: efr32mg1p: extend vendor headers
2018-04-05 19:40:41 +02:00
Bas Stottelaar
d1441be06b
cpu/efm32: efr32mg12p: add vendor headers
2018-04-05 19:40:34 +02:00
Bas Stottelaar
41347328ce
cpu: efm32: correct power modes
2018-04-04 21:29:20 +02:00
Bas Stottelaar
5e912b9482
Merge pull request #8873 from basilfx/feature/efm32_update
...
pkg: gecko_sdk: update version
2018-04-04 12:50:43 +02:00
Bas Stottelaar
6f99dce581
cpu: lpc1768: correct number of modes.
2018-04-04 11:37:42 +02:00
Bas Stottelaar
c2a7ee0c8c
cpu: efm32: update vendor files to 5.4.0
2018-04-03 19:02:03 +02:00
Bas Stottelaar
587a41ceab
cpu: lpc1768: provide periph_pm.
2018-04-03 18:33:18 +02:00
Bas Stottelaar
6be31d1faa
cpu: lpc1768: implement gpio driver
2018-04-03 16:47:25 +02:00
Francisco Acosta
69f4d632e3
Merge pull request #8837 from kaspar030/refactor_atmega_stdio
...
cpu/atmega: refactor stdio init code
2018-04-03 15:56:33 +03:00
391cc83881
cpu/atmega_common: provide common stdio initialization
2018-04-03 14:18:32 +02:00
Josarn
2ef1001ec7
cpu/atmega_common: use __temp_reg__
2018-03-30 10:22:32 +02:00
Aurelien Fillau
59b1890ef8
i2c : timeout added on busy waiting loop
...
A timeout has been added to get out of busy waiting loop.
Signed-off-by: Aurelien Fillau <aurelien.fillau@gmail.com>
2018-03-29 10:23:43 +02:00
Gaëtan Harter
fff5810191
Makefile.include: FIX .DEFAULT_GOAL not being all
...
.DEFAULT_GOAL was reset many times which removed 'all' from being the default
goal.
By chance it was then set to `link` so was working by some magic.
2018-03-28 16:59:00 +02:00
Dylan Laduranty
1e3cf7db08
Merge pull request #8810 from gebart/pr/samd21-tc-intflags
...
cpu/samd21: Avoid clearing interrupt bits unintentionally
2018-03-27 11:25:59 +02:00
be5ae87262
Merge pull request #8829 from ZetaR60/RIOT_xplained
...
cpu/atmega1284p: support and boards/mega-xplained: support
2018-03-27 10:03:15 +02:00
Joakim Nohlgård
dfa342b5f8
cpu/samd21: Avoid clearing interrupt bits unintentionally
...
The INTENSET, INTENCLR, INTFLAG registers are write-1-to-confirm
registers, so writing zeroes will not affect anything, on the other
hand, a compiler generated read-modify-write cycle may unintentionally
affect more bits than the one being set. Avoid by using direct
assignment instead of or-assignment (|=) or bitfield writes (.bit.xxx=).
2018-03-27 07:54:18 +02:00
Matthew Blue
d3dc49e2ab
cpu/atmega_common: Support for ATmega1284P
2018-03-25 14:24:40 -04:00
Matthew Blue
a55921394c
cpu/atmega1284p: Initial ATmega1284P support
2018-03-25 14:24:37 -04:00
Martine Lenders
690c36b3cf
Merge pull request #8652 from cladmi/pr/remove_nativeincludes
...
native: remove non required NATIVEINCLUDES
2018-03-22 15:57:38 +00:00
Joakim Nohlgård
369036760a
cpu/mips32r2_generic: Add PERIPH_TIMER_PROVIDES_SET
...
mips32r2_common already implements timer_set so it should not be provided by
periph_common/timer to avoid multiple definition errors currently hidden by the
linker.
The firmware was using the one from `mips32r2_common` before (binary checked).
So behaviour is identical.
2018-03-22 14:21:24 +01:00
Gaëtan Harter
d6e47461ba
mips32r2_common/periph/timer: fix return values
...
Fix 'timer_set', 'timer_set_absolute' and 'timer_clear' return value to 1 on
success as documented in the API.
2018-03-22 14:21:03 +01:00
2c4b94b236
cpu/stm32l4: add support for stm32l433rc
2018-03-21 17:07:28 +01:00
Gaëtan Harter
93a521c501
native: remove non required NATIVEINCLUDES
...
Some modules used a 'NATIVEINCLUDES' with different include path and no other
included directories.
It was defining basic 'include' in a different order and not using other things
defined in INCLUDES.
After doing some checks with the given include path and possible conflicting
files, there should be no conflict when using the default one.
* No common headers between all the NATIVEINCLUDES directories
* No common headers files between board/native/include, cpu/native/include and
other files in the repository (except other boards/cpus of course).
2018-03-20 17:51:03 +01:00
Martine Lenders
875a5c165d
trace: initial import of a stack backtrace function for native
...
Sometimes the debugger just isn't fast enough to debug that pesky race
conditions. This module provides at least a little help.
2018-03-20 15:12:48 +00:00
Bas Stottelaar
9117fe577a
cpu/efm32: efm32pg1b: add support
2018-03-16 16:26:58 +01:00
Bas Stottelaar
cbca0cc6ae
cpu/efm32: efm32pg1b: add vendor headers
2018-03-16 16:26:58 +01:00
Bas Stottelaar
a05d1b1004
cpu/board: native: use common peripheral initialization
2018-03-15 23:26:01 +01:00
Martine Lenders
295c53ebd4
Merge pull request #8611 from beduino-project/sam3-clang-build-failure
...
cpu/sam3: fix build failure with TOOLCHAIN=llvm
2018-03-15 16:31:24 +01:00
Vincent Dupont
549bf0ef78
cpu/stm32: use const pointer in flashpage
2018-03-14 16:28:33 +01:00
Vincent Dupont
a1f482cbf7
cpu/sam0: use const pointer in flashpage
2018-03-14 16:28:33 +01:00
Vincent Dupont
b40249153d
cpu/nrf5x: use const pointer in flashpage
2018-03-14 16:28:33 +01:00
Vincent Dupont
5a2a4cf1e0
cpu/msp430: use const pointer in flashpage
2018-03-14 16:28:32 +01:00
Vincent Dupont
4f44778a42
cpu/efm32: use const pointer in flashpage
2018-03-14 16:28:32 +01:00
Joakim Nohlgård
078104223a
Merge pull request #8732 from girtsf/cortexm-fix-no-mpu
...
cortexm_common: don't try to set MEMFAULTENA on ARMv6-M
2018-03-13 21:06:21 +01:00
06392bbfd3
cpu/stm32f1: add flashpage_raw support
2018-03-13 16:30:04 +01:00
4f7dc1ae41
cpu/stm32f0: add flashpage_raw support
2018-03-13 16:30:04 +01:00
4e1f2b5d38
cpu/stm32l1: add flashpage support
2018-03-13 16:30:04 +01:00
4972f952d4
cpu/stm32l0: add flashpage support
2018-03-13 16:30:04 +01:00
67190a31ef
cpu/stm32_common: unify flashpage support
2018-03-13 16:30:04 +01:00
Girts Folkmanis
b9744f698f
cortexm_common: don't try to set MEMFAULTENA on ARMv6-M
...
Before this change, if one tried to build a Cortex-M0+ target that had
an MPU, compilation would fail due to missing
'SCB_SHCSR_MEMFAULTENA_Msk' in SCB structure. Cortex-M0+ is a ARMv6-M
arch (unlike most other targets that have MPU support). ARMv6-M has more
limited support for fault conditions, see ARMv6-M Architecture Reference
Manual, D3.6.2.
2018-03-12 19:57:29 -07:00
Aurelien Fillau
0368239a63
cpu/stm32l0: power management updated
...
Now, MCU is able to go in stop mode if necessary when
periph_pm feature is activated.
Regarding LPSDSR bit that deactivates or not regulator in stop
mode, it is up to the user to set/clear this bit. In order
to save power, voltage regulator can be set in low power state
during stop mode but it increases wakeup time.
Signed-off-by: Aurelien Fillau <aurelien.fillau@gmail.com>
2018-03-11 11:01:25 +01:00
d025de32ed
Merge pull request #8351 from kaspar030/introduce_iolists
...
net: Introduce iolists
2018-03-07 09:56:13 +01:00
fcb451b2c5
Merge pull request #8743 from dylad/saml21_fix_rtc_define
...
cpu/saml21: fix RTC wrong condition for #if
2018-03-07 07:41:33 +01:00
dylad
20ac4b060d
cpu/saml21: fix RTC wrong condition for #if
2018-03-06 21:36:18 +01:00
Francisco Acosta
c922119fe4
Merge pull request #8744 from Josar/atmega_stackPointer
...
atmega: add last instruction print
2018-03-06 16:16:07 +01:00
7f150d6041
Merge pull request #7787 from OTAkeys/pr/stm32_pm_periph
...
cpu/stm32: add pm support in uart, spi and i2c (f4)
2018-03-06 16:34:44 +02:00
Hauke Petersen
e78b055787
Merge pull request #8556 from kaspar030/stm32_gpio_read
...
cpu: stm32_common: always do gpio_read() from input register
2018-03-06 15:30:01 +01:00
Vincent Dupont
857b44a975
cpu/stm32f4: add pm support in i2c driver
2018-03-06 15:13:02 +01:00
Vincent Dupont
34e8609f2c
cpu/stm32_common: add pm support in spi driver
2018-03-06 15:13:01 +01:00
Vincent Dupont
1aee2f1f14
cpu/stm32_common: add pm support in uart driver
2018-03-06 15:13:00 +01:00
Vincent Dupont
c01e8629ec
cpu/stm32_common: add PM modes
2018-03-06 15:12:58 +01:00
Josarn
d82f1eba4c
atmega: add last instruction print
...
Signed-off-by: Josua Arndt <josuaarndt@live.de>
2018-03-06 14:57:18 +01:00
58e172e4df
cpu/stm32_common: always enable PWR module
2018-03-06 14:55:32 +01:00
Hauke Petersen
c14b8081bc
Merge pull request #8735 from kaspar030/stm32_unify_cpu_init
...
cpu/stm32: unify cpu_init()
2018-03-06 14:09:13 +01:00
23b414b732
drivers: net: adapt to iolist-using netdev
2018-03-06 14:00:31 +01:00
ff6b8aa4f1
cpu/native/netdev_tap: adapt to netdev with iolist
2018-03-06 14:00:31 +01:00
Francisco
0fd12487e1
cpu/stm32l4: add support for stm32l452re
2018-03-05 14:34:16 -03:00
3b42fb49b5
cpu/stm32: unify cpu_init()
2018-03-05 12:35:00 +01:00
Hauke Petersen
47a500d0b1
Merge pull request #8447 from haukepetersen/opt_test_periphuartpower
...
tests/periph_uart: included power_on/off() in test
2018-03-05 09:49:20 +01:00
Joakim Nohlgård
68ea6b3316
kinetis: Add support for NXP Kinetis KW41Z SoC
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
2090dd0234
kinetis: Add GPIO ISR for CPUs with combined PORTB+PORTC interrupt
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
8642c8ceb8
kinetis: Support CM0+ devices with 96 bit UID
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
005b4bfbb3
kinetis: Filter out PWM code if no FTM exists
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
11361ec7e1
kinetis: Add support for CPUs with a single IRQ for all PIT channels
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
2b64452c33
kinetis: GPIO workaround for missing open drain support
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
a196bb431d
kinetis: Only configure PWM settings if the FTM device exists
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
ba76402d03
kinetis: Add Bit Manipulation Engine helpers
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
18908667a3
kinetis: Make open drain GPIO availability depend on CPU header
2018-03-02 15:38:39 +01:00
Joakim Nohlgård
a7f06f8c42
Merge pull request #8724 from gebart/pr/kinetis-lpuart-clocking
...
kinetis: Set LPUART clock source during uart_lpuart_init
2018-03-02 15:38:01 +01:00
Peter Kietzmann
215940b058
Merge pull request #8643 from Josar/jiminy_master
...
boards: Jiminy-mega256rfr2: initial support
2018-03-02 15:24:39 +01:00
Joakim Nohlgård
2bdf0bfbf1
kinetis: Align definitions in cpu_conf_kinetis.h
2018-03-02 14:39:00 +01:00
Joakim Nohlgård
82e960b642
kinetis: Set LPUART clock source during uart_lpuart_init
2018-03-02 14:39:00 +01:00
Josarn
3c906c6c3d
cpu/atmega256rfr2: ATmega256rfr2 MCU support
...
Signed-off-by: Josua Arndt <josuaarndt@live.de>
Signed-off-by: Steffen Robertz <steffen.robertz@online.de>
2018-03-02 13:33:53 +01:00
Josarn
3bace2bd24
cpu/atmega-common: Adjustments Jiminy-mega256rfr2
...
Signed-off-by: Josua Arndt <josuaarndt@live.de>
Signed-off-by: Steffen Robertz <steffen.robertz@online.de>
2018-03-02 13:33:26 +01:00
Francisco Acosta
2e701bd535
Merge pull request #8725 from gebart/pr/kinetis-errata-func
...
kinetis: Move errata workarounds to separate function
2018-03-02 12:30:16 +01:00
Francisco Acosta
a31940eee4
Merge pull request #8723 from gebart/pr/kinetis-periph-cpu-doc-fix
...
kinetis: periph_cpu.h doc fix
2018-03-02 12:03:06 +01:00
Hauke Petersen
4fd16b0bcc
cpu/native: add empty uart/power_x functions
2018-03-02 10:54:21 +01:00
Hauke Petersen
2fc724db7e
cpu/lpc2487: add empty uart/power_x functions
2018-03-02 10:53:55 +01:00
Hauke Petersen
8ac3465ba7
cpu/kinetis: add empty uart/power_x functions
2018-03-02 10:53:55 +01:00
Hauke Petersen
ce9e6f4eb0
cpu/atmega_common: add empty uart/power_x functions
2018-03-02 10:53:55 +01:00
Joakim Nohlgård
fd76e5ddad
kinetis: Move errata workarounds to separate function
2018-03-02 08:17:00 +01:00
Joakim Nohlgård
f5edf56be4
kinetis: periph_cpu.h doc fixes
2018-03-02 08:06:46 +01:00
Joakim Nohlgård
a11c66382f
kinetis: Add dependency on rtt for LPTMR time base
2018-03-02 07:37:14 +01:00
Bas Stottelaar
bcffbba480
Merge pull request #8718 from cladmi/pr/cpu/efm32/remove_timer_set
...
cpu/efm32/periph/timer: remove timer_set duplicate
2018-03-01 20:16:01 +01:00
Gaëtan Harter
04e180dd3d
Merge pull request #8719 from gebart/pr/kinetis-lpuart-align
...
kinetis: Align defines in uart.c
2018-03-01 17:58:37 +01:00
Gaëtan Harter
6f2eeca91b
cpu/efm32/periph/timer: remove timer_set duplicate
...
timer_set is already provided by 'periph_common' so does not need to be
provided by cpu/periph.
2018-03-01 17:31:15 +01:00
Joakim Nohlgård
8f3fb59840
kinetis: Align defines in uart.c
2018-03-01 17:12:54 +01:00
Joakim Nohlgård
d8c80e245a
kinetis: Fix shiftTooManyBitsSigned warning in GPIO driver
2018-03-01 14:35:22 +01:00
Sebastian Meiling
f5ef0bd09c
Merge pull request #8345 from danpetry/cc2538_uart
...
cc2538/include/periph_cpu.h: Changed UART configuration format for cc2538.
2018-03-01 12:02:59 +01:00
c450cdebeb
Merge pull request #8482 from cogip/qdec
...
drivers: Initial import of low-level QDEC driver interface
2018-02-26 17:44:58 +01:00
MichelRottleuthner
bad08596f6
Merge pull request #8399 from OTAkeys/fix/mtd_native_write
...
mtd_native: fix overlapping pages write check
2018-02-26 15:38:46 +01:00
Vincent Dupont
f04ecee9f6
mtd_native: fix overlapping pages write check
2018-02-26 15:32:06 +01:00
Gilles DOFFE
bee493ac71
cpu/stm32_common: add qdec implementation
...
* Add support for the STM32 encoder interface
* The STM32 only supports X2 and X4 modes.
* Enable interrupt handler on counter overflow
* Add simple test code for QDEC based on nucleo-f401 board
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:17:26 +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
Joakim Nohlgård
d4e5bea0a3
efm32: Use different values for each unsupported ADC res
2018-02-23 09:36:57 +01:00
Bas Stottelaar
11638eb1d6
cpu: efm32: fix typo in cpus.txt
2018-02-22 15:38:13 +01:00
Bas Stottelaar
864839cb90
cpu/efm32: efm32lg: add support
2018-02-21 19:16:49 +01:00
Bas Stottelaar
1e3fdce1d7
cpu/efm32: efm32lg: add vendor headers
2018-02-21 19:16:49 +01:00
Sören Tempel
3ce89aeb04
cpu/sam3: fix build failure with TOOLCHAIN=llvm
2018-02-21 15:32:00 +01:00
Peter Kietzmann
e853c7534f
Merge pull request #8555 from kaspar030/stm32f4_fix_adc_res
...
cpu/stm32f4: fix periph/adc resolution check
2018-02-19 10:05:18 +01:00
Francisco Acosta
25c818bef0
cpu/efm32: fix flashpage_erase
2018-02-16 18:21:49 +01:00
Bas Stottelaar
a68f47eca1
cpu/efm32: efm32gg: add support.
2018-02-16 13:57:17 +01:00
Bas Stottelaar
f9f1b9ebfa
cpu/efm32: efm32gg: add vendor headers
2018-02-16 13:57:17 +01:00
Francisco Acosta
879e949967
Merge pull request #8572 from basilfx/bugfix/efm32_peripherals
...
cpu: efm32: fix ADC and RTC
2018-02-16 13:54:29 +01:00
Bas Stottelaar
2329b84935
cpu: efm32: fix ADC resolution selection
...
The `res` argument is a combination of resolution and shifting, combined using `(y << 4) | x`. To yield x, `0x0F` should have been used.
2018-02-15 21:14:09 +01:00
Bas Stottelaar
2af38d749c
cpu: efm32: fix RTC for Series 0 MCUs.
...
Without fix:
Setting alarm to 12627-11-30 15:00:05
Alarm is set to 12722-01-25 07:13:03
With fix:
Setting alarm to 2011-12-13 14:15:17
Alarm is set to 2011-12-13 14:15:17
2018-02-15 21:12:40 +01:00
Joakim Nohlgård
b61eeb9fe0
kinetis: Allow per-board config of ADC ref
...
ADC reference can be external pin or internal VREF module on most
Kinetis CPUs.
2018-02-14 15:16:41 +01:00
Bas Stottelaar
76ca2c9bb3
cpu: efm32: use static mutex initialization.
2018-02-14 09:30:08 +01:00
83bff5c643
cpu: stm32_common: always do gpio_read() from input register
2018-02-13 21:51:45 +01:00
41dab11a8f
cpu/stm32f4: fix periph/adc resolution check
2018-02-13 21:45:02 +01:00
Francisco Acosta
1b2ce2d559
Merge pull request #8544 from smlng/osx/cflags
...
cpu/native: reduce scope of CFLAGS for OSX compatibility
2018-02-13 14:29:54 +01:00
Francisco Acosta
ac9328381c
cpu/cortexm_common: add NOP after WFI to avoid hardfault on stm32l152
2018-02-12 15:10:34 +01:00
smlng
15a7e6bb98
cpu/native: reduce scope of CFLAGS for OSX compatibility
2018-02-09 17:44:41 +01:00
Vincent Dupont
972eeefe6e
stm32_common/rtt: add support for stm32f4
2018-02-08 17:39:39 +01:00
danpetry
cd449e388b
cpu/cc2538: Adapted UART driver incl. board config
...
Changed the style of the UART configuration for different boards,
from a define based configuration to one based on an array of
structs, one struct for each UART, with the format of the struct defined
in cc2538/include/periph_cpu.h.
- Defined the fields of the struct in periph_cpu.h
- Removed the compilation includes that were in uart.c for each UART
- Implemented a generic ISR subroutine for clarity
- combined uart_base and uart_init in uart.c
- used bitmask for the interrupt setup
- took the uart Rx, Tx, and IRQ numbers out of the config
(as this has to match the .dev field). Replaced with
macros from the uart number
- took out some unused code
- implemented power on/off commands
- removed reset function - now bytes are just discarded on error
- Rx now not initialised if Rx callback = NULL, as per
drivers/periph/uart.h
- device is now enabled after callbacks are set, not before
- asserts raised if rts and cts are enabled for UART0
- BIT macro removed
2018-02-08 14:36:51 +01:00
Francisco Acosta
bba457290e
Merge pull request #8525 from kaspar030/namespace_mcuboot
...
make: mcuboot: add MCUBOOT_ namespacing
2018-02-07 17:57:24 +01:00
7847a91e12
cpu: instead of cpp-style, use C-style comments
2018-02-06 16:59:58 +01:00
3bfe4b6986
make: mcuboot: add MCUBOOT_ namespacing
2018-02-06 16:41:48 +01:00
dylad
391164a788
pkg: fix broken nordic softdevice package
...
Prevent CPU from using cortexm_init() when softdevice is used for NRF52 devices
as the softdevice already do some obscur inits
Also ensure the softdevice pkg will be used by hacking Makefile due to RIOT's
build system limitations (will be fix later with the new build system)
2018-02-05 17:04:13 +01:00
Bas Stottelaar
6a112bdf51
Merge pull request #8474 from basilfx/feature/efm32_pwm_mode
...
cpu: efm32: implement pwm modes.
2018-02-05 12:56:02 +01:00
Hauke Petersen
b1efc39348
cpu/nrf52: optimized i2c driver implementation
2018-02-02 11:34:40 +01:00
Hauke Petersen
787d69c676
cpu/nrf52: add CPU specific sleep function
...
This function is supposed to be used for putting the CPU into
sleep mode for short amounts of time (e.g. in typical polling
loops used in periph drivers).
2018-02-02 11:33:18 +01:00
Hauke Petersen
959e838836
cpu/nrf52: updated vendor header
2018-02-02 11:33:18 +01:00
Peter Kietzmann
047219aff3
Merge pull request #8486 from haukepetersen/fix_nrf52_i2c-mutexinit
...
cpu/nrf52/i2c: use static mutex initializtion
2018-02-02 10:53:50 +01:00
Martine Lenders
c982cc81ed
Merge pull request #8278 from smlng/cpu/native/replace_timex
...
cpu, native: replace timex_t in syscalls
2018-02-01 12:55:29 +01:00
Bas Stottelaar
e4d699ad46
Merge pull request #8471 from cladmi/pr/fix_tradfri_module_name_conflict
...
cpu/efm32: fix 'cpu' module name conflict
2018-02-01 08:41:03 +01:00
Bas Stottelaar
91b2627539
cpu: efm32: implement pwm modes.
2018-01-31 23:39:42 +01:00
Hauke Petersen
503e60ef25
cpu/nrf52/i2c: use static mutex initializtion
2018-01-30 19:07:26 +01:00
Martine Lenders
c0dcff6dd0
Merge pull request #8421 from aabadie/pr/zep_doxygen_bis
...
sys/net/zep: add missing doxygen brief description
2018-01-30 17:34:09 +01:00
Gaëtan Harter
f7046f83fb
cpu/efm32: Fix 'cpu' module name conflict
...
Rename 'cpu/efm32/families/efr32mg1p' module to 'cpu_efr32mg1p' to don't
conflict with 'cpu'.
Also required to set the path to vectors.o as its not provided by cpu.
2018-01-30 11:55:05 +01:00
Dan Evans
0f011d53de
samd21/cpu DFLL lock loop error
2018-01-26 09:59:59 -07:00
4fe2490bc5
cpu/native/socket_zep: add ref to net_zep doxygen group
2018-01-24 21:41:31 +01:00
smlng
f63f3b2a4b
cpu, native: replace timex_t in syscalls
2018-01-23 14:35:24 +01:00
Martine Lenders
d0140a9ec8
Merge pull request #8380 from miri64/gnrc_netif/enh/6lo-nrfmin
...
gnrc_netif: set-up 6Lo for NRFmin
2018-01-23 11:17:29 +01:00
f4d687502e
cpu/native/socket_zep: fix doxygen grouping
2018-01-23 09:02:00 +01:00
smlng
5c38e1a56f
socket_zep: remove unnecessary include
2018-01-22 15:28:19 +01:00
Martine Lenders
851eb767be
gnrc_netif: set-up 6Lo for NRFmin
2018-01-18 13:00:25 +01:00
Sebastian Meiling
5c0b058db4
Merge pull request #6121 from miri64/native/feat/zep_socket
...
native: provide socket-based ZEP device
2018-01-18 10:03:08 +01:00
Martine Lenders
81ef15287a
native: provide socket-based ZEP device
2018-01-18 09:15:37 +01:00
cefb7974d7
Merge pull request #8210 from astralien3000/teensy31
...
boards/teensy31 : initial support of Teensy 3.1 & 3.2
2018-01-18 09:14:51 +01:00
Loïc Dauphin
982f36cdb0
cpu/kinetis: add support of MK20D7
2018-01-17 18:13:59 +01:00
99d484f336
cpu/cortexm_common: select bitarithm_lsb() by available instructions
2018-01-16 23:35:14 +01:00
ca38df6960
Merge pull request #7469 from MichelRottleuthner/stm32l4_stmclk
...
stm32l4: implement stmclk interface
2018-01-15 17:38:28 +01:00
Sebastian Meiling
469a1bb632
Merge pull request #8360 from neiljay/pr/correct_usage_of_features_on_mips
...
mips: Correct usage of USEMODULE
2018-01-15 15:19:01 +01:00
Neil Jones
e297a71e8c
mips: Correct usage of USEMODULE
...
In CPU definitions we should not be explicilty naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.
This commit removes periph_hwrng support from the pic32mx cpu builds as
pic32mx does not have hwrng only pic32mz does.
2018-01-15 14:02:59 +00:00
Sebastian Meiling
eb89954f13
Merge pull request #5166 from kaspar030/syntax_check_debug_code
...
core: debug: rely on optimizer to kick out unused debug code
2018-01-15 14:52:35 +01:00
4dd854da74
cpu/cc2538: DEBUG fixes
2018-01-15 14:37:05 +01:00
c398b74ae0
cpu: native: uart: adapt to changed DEBUG
2018-01-15 14:37:04 +01:00
Michel Rottleuthner
1e0258d493
stm32l4/stmclk: enable MSI/LSE trimming only with available LSE
2018-01-15 12:22:51 +01:00
Sebastian Meiling
7e7c573eaf
Merge pull request #8355 from beduino-project/fix-stm32f1-pullup
...
stm32f1: fix gpio mode GPIO_IN_PU
2018-01-15 09:27:08 +01:00
MichelRottleuthner
c33985dc81
stm32l4: implement stmclk functions
2018-01-14 16:58:53 +01:00
neiljay
bec3f12e0b
Merge pull request #8248 from neiljay/pr/mips_makefile_improvements
...
mips: clean up pic32 makefiles
2018-01-12 15:54:39 +00:00
Tristan Bruns
d4de629c34
stm32f1: fix gpio mode GPIO_IN_PU
2018-01-12 16:11:58 +01:00
kYc0o
af8deddbf1
cpu/stm32l1/vectors.c: fix model stm32l152ret6 -> stm32l152re
2018-01-11 18:48:14 +01:00
Matthieu Berthomé
1c6321791c
puts => LOG_INFO for the MSP430 startup message
2018-01-11 09:27:20 +01:00
Daniel Frejek
2925ef9ab5
cpu/stm32f1: fixed flash page sizes
2018-01-09 22:06:27 +01:00
MichelRottleuthner
ee17dae5af
pkg/fatfs: add vfs integration
2018-01-09 14:46:40 +01:00
Dylan Laduranty
87e3f10e8b
Merge pull request #8318 from PeterKietzmann/dnahm_nrf52_i2c
...
cpu/nrf52: add i2c driver and configs
2018-01-08 09:23:35 +01:00
paula75
128ab3a22e
cpu/stm32l1: fix ADC resolution register
2018-01-05 14:24:51 -03:00
dnahm
6245b4165f
cpu/nrf52: add i2c driver and configs
2018-01-04 10:51:05 +01:00
Neil Jones
0133de6e4f
mips: clean up pic32 makefiles.
...
Make pic32m* depend on pic32_common which depends on mips32r2_common.
Remove some duplication.
This addresses some issues in #8052 .
2018-01-02 13:59:08 +00:00
Bas Stottelaar
8f12b9896f
cpu: efm32_common + ef32mg1p: replace with generalized efm32 cpu
2017-12-19 20:04:37 +01:00
65acefe478
Merge pull request #8002 from george-hopkins/stm32f103ze
...
cpu/stm32f1: add support for STM32F103ZE
2017-12-16 07:22:37 +01:00
ce274414ea
cpu: add support for stm32l475vg
2017-12-15 13:36:45 +01:00
c1e20f8231
Merge pull request #7709 from smlng/cpu/sam0_common/enh_uart
...
cpu, sam0 common: adapt periph-uart to use read-only bit-fields
2017-12-15 12:45:10 +01:00
smlng
ba324ef07c
cpu, cc2538: adapt uart to RIOT gpio API
2017-12-14 10:32:04 +01:00
smlng
150f3fb231
cpu/sam0_common: fix assert in periph/flashpage
2017-12-10 16:21:52 +01:00
Joakim Nohlgård
3a9cd9653f
saml21: Update FEATURE_PERIPH_PM -> MODULE_PERIPH_PM
2017-12-08 05:22:09 +01:00
43e972fc61
Merge pull request #7970 from kYc0o/add_flashpage_write_raw
...
periph/flashpage: add flashpage_write_raw interface
2017-12-04 13:13:52 +01:00
George Hopkins
e3d42681b7
cpu/stm32f1: add support for STM32F103ZE
2017-12-01 21:20:56 +01:00
kYc0o
cb0d021811
cpu/sam0_common/Makefile.features: add periph_flash_raw
2017-11-30 17:25:35 +01:00
kYc0o
adc08d6578
cpu/sam0_common: add alignment and minimum size write block constants
2017-11-30 17:25:35 +01:00
fcb3fd9e70
cpu/sam0_common: add flashpage_write_raw()
2017-11-30 15:14:39 +01:00
Francisco Acosta
38880acad8
Merge pull request #7799 from kYc0o/factorise_stm32_ld
...
ld: refactor stm32 linker scripts
2017-11-30 14:28:51 +01:00
kYc0o
d6751dde22
cpu/stm32_common/Makefile.include: add ccm linker var
2017-11-30 14:11:08 +01:00
kYc0o
ab60f9dc47
cpu/stm32*/ldscripts: remove all stm32 family linker scripts
2017-11-30 14:11:07 +01:00
kYc0o
945d7f6887
cpu/stm32_common: add stm32_mem_lengths.mk to calculate ROM and RAM lengths
2017-11-30 14:11:07 +01:00
Martine Lenders
071d9c2d7f
Merge pull request #8176 from PeterKietzmann/pr_msp430_check_tim_chan
...
cpu/xxx430: correct channel check in periph timer driver
2017-11-29 17:09:21 +01:00
PeterKietzmann
b6b6fd2626
cpu/xxx430: correct channel check in periph timer driver
2017-11-29 16:47:09 +01:00
Bas Stottelaar
be24c66592
cpu: efm32_common: override CMU/EMU parameters in board.h.
2017-11-29 16:15:28 +01:00
Sebastian Meiling
a6c2558802
Merge pull request #8175 from smlng/cpu/efm32/fix_sign_compare
...
cpu, efm32_common: fix sign-compare error in flashpage
2017-11-29 16:14:10 +01:00
smlng
2be6cf0938
cpu, efm32_common: fix sign-compare error in flashpage
2017-11-29 15:20:37 +01:00
Bas Stottelaar
156240c3b6
Merge pull request #8166 from basilfx/feature/efm32_periph_improvements
...
cpu: efm32_common: add support for GPIO ports A-K and I2C2.
2017-11-29 10:46:04 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
Bas Stottelaar
8660a1ba9e
cpu: efm32_common: add support for GPIO ports A-K and I2C2.
2017-11-28 15:30:23 +01:00
Martine Lenders
39c122155c
Merge pull request #7995 from smlng/make/fix/unused_params
...
make: fix unused-params error
2017-11-28 14:46:23 +01:00
smlng
7309171303
build: fix unused parameter errors
...
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-11-28 14:36:01 +01:00
neiljay
5ccfe68f1f
Merge pull request #8032 from cladmi/pr/cpu/mips_cleanup_modules
...
cpu/mips: make `mips32r2_common` only a common cpu and remove cpu/periph module duplicate names.
2017-11-28 13:34:30 +00:00
smlng
e381317fbf
make: fix sign-compare errors
...
cpu, nrf5x_common: fix sign-compare in periph/flashpage
drivers, periph_common: fix sign-compare in flashpage
cpu, sam0_common: fix sign-compare error in periph/gpio
cpu, cc2538: fix sign-compare in periph/timer
cpu, sam3: fix sign-compare in periph/gpio
cpu, stm32_common: fix sign-compare in periph/pwm
cpu, stm32_common: fix sign-compare in periph/timer
cpu, stm32_common: fix sign-compare in periph/flashpage
cpu, nrf5x_common: fix sign-compare in radio/nrfmin
cpu, samd21: fix sign-compare in periph/pwm
cpu, ezr32wg: fix sign-compare in periph/gpio
cpu, ezr32wg: fix sign-compare in periph/timer
drivers, ethos: fix sign-compare
sys, net: fix sign-compare
cpu, atmega_common: fix sign-compare error
cpu, msp430fxyz: fix sign-compare in periph/gpio
boards, msb-430-common: fix sign-compare in board_init
driver, cc2420: fix sign-compared
sys/net: fix sign-compare in gnrc_tftp
driver, pcd8544: fix sign-compare
driver, pn532: fix sign-compare
driver, sdcard_spi: fix sign-compare
tests: fix sign_compare
sys/net, lwmac: fix sign_compare
pkg, lwip: fix sign-compare
boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
tests, sock_ip: fix sign compare
tests, msg_avail: fix sign compare
tests, sock_udp: fix sign compare
boards: fix sign-compare for calliope and microbit matrix
2017-11-28 11:55:48 +01:00
8a6d04ce52
Merge pull request #7925 from RIOT-OS/gnrc_netif2_integration/master
...
gnrc_netif2: gnrc_ipv6_nib: full integration into GNRC
2017-11-27 21:12:14 +01:00
Gaëtan Harter
2375fcd82e
cpu/mips32r2_common: BUG add periph_timer globally to mips32r2_common.
2017-11-24 17:15:58 +01:00