Peter Kietzmann
f76b2f4906
Merge pull request #6273 from OTAkeys/pr/nucleo-f042
...
boards: add nucleo-f042
2017-01-10 14:52:00 +01:00
Hauke Petersen
a05233633f
cpu/nrf5x: moved nrfmin driver to nrf5x_common
2017-01-10 11:54:49 +01:00
Hauke Petersen
36317c56f3
cpu/nrf51: ported nrmin radio driver to netdev2
2017-01-10 11:54:16 +01:00
Hauke Petersen
ee56f37809
cpu/nrf51: added I2C driver implementation
2017-01-10 11:52:36 +01:00
Hauke Petersen
8d48239f9b
cpu/nrf5: restructured periph_cpu.h files
...
- inserted one specific for each family (nrf51 and nrf52)
- renamed the common one to periph_cpu_common.h
2017-01-10 11:52:36 +01:00
Vincent Dupont
83b8495259
cpu/stm32f0: add support for stm32f042x6 mcu
2017-01-10 10:34:18 +01:00
Peter Kietzmann
11a0422b83
Merge pull request #6181 from haukepetersen/opt_lpc11u34_gpio
...
cpu/lpc11u34: reworked GPIO driver
2017-01-10 09:43:17 +01:00
Antonio Galea
ff8ed15aca
updated list of saml21 variants as defined in Atmel ASF v3.33.0
2017-01-09 18:29:32 +01:00
Antonio Galea
610767cb54
remove blank line at EOF
2017-01-09 17:32:50 +01:00
Antonio Galea
fa1e8fcfc9
saml21 cmsis includes: fix whitespace
2017-01-09 16:13:17 +01:00
Oleg Hahm
3485026a48
cpu: stm32: use unsigned as loop counter
2017-01-09 10:15:20 +01:00
Francisco Acosta
7b2dc4ff5d
Merge pull request #6252 from jthacker/avr_reboot_disable_interrupts
...
atmega_common: disable interrupts prior to rebooting
2017-01-06 15:29:36 +01:00
Hauke Petersen
ade8bd2a17
Merge pull request #6187 from haukepetersen/opt_stm32_uart
...
cpu/stm32x: unified UART driver implementations
2017-01-06 10:18:29 +01:00
Hauke Petersen
21300cb40f
cpu/stm32: fix timer speed for STM32F1 and F2
2017-01-05 14:47:38 +01:00
Hauke Petersen
c062bf71b9
Merge pull request #6177 from gebart/pr/kinetis-adc-clock-scaler-fix
...
kinetis: Fix ADC clock computation
2017-01-05 14:08:00 +01:00
Hauke Petersen
625d804fcb
cpu/stm32_common: unified UART driver
2017-01-05 11:00:18 +01:00
Hauke Petersen
5afb191027
cpu/stm32x: unified gpio_init_af() function
2017-01-05 10:58:54 +01:00
Hauke Petersen
d1db190f83
cpu/kinetis_common: reworked PWM driver
2017-01-05 10:55:15 +01:00
Oleg Hahm
84b2910657
Merge pull request #6253 from gebart/pr/newlib-nano-include-dir-fix
...
LLVM+newlib include path search fixes
2017-01-04 11:19:54 +01:00
Joakim Nohlgård
c2ccc1bfa0
kinetis: Fix ADC clock computation
...
The ADC prescaler computation was broken and gave too high ADC clock for
module clocks slower than 32 MHz (the >32 MHz case is already handled
separately)
2016-12-27 17:10:25 +01:00
Oleg Hahm
ea83b8c14f
Merge pull request #5856 from OTAkeys/pr/stm32f2_pll_i2s
...
stm32f2: add initialization of PLL I2S for MCO2
2016-12-23 10:47:29 +01:00
f44763f346
make: adapt Makefiles to AD -> Q rename
2016-12-22 12:12:38 +01:00
924fff7513
Merge pull request #6171 from haukepetersen/opt_cortex_isrend
...
cpu/cortexm: added and use central yield_from_isr() function
2016-12-22 09:32:25 +01:00
Joakim Nohlgård
e9f8608307
llvm: Only add -target to CFLAGS if TARGET_ARCH is set
2016-12-21 13:54:35 +01:00
Joakim Nohlgård
2001b36284
llvm: Refactor include path search
...
The patterns in GCC_CXX_INCLUDE_PATTERNS are tested in order from first
to last and the first matching pattern is used instead of the last.
The latest version within each pattern will be selected, like before, to
get the most recent tool chain version.
2016-12-21 13:08:48 +01:00
Joakim Nohlgård
9021001200
llvm: Add support for >=GCC-6 C++ headers on Gentoo
2016-12-21 13:08:00 +01:00
Hauke Petersen
adfd201a20
cpu/sam3: reworked PWM driver implementation
2016-12-21 13:06:27 +01:00
Hauke Petersen
38c7d11f8c
cpu/sam3: add gpio_init_mux() function
2016-12-21 13:05:59 +01:00
Hauke Petersen
3a00fe8e49
cpus: make use of cortexm_isr_end()
2016-12-21 11:28:46 +01:00
Hauke Petersen
04b246cb01
cpu/cortexm_common: added cortexm_isr_end() function
2016-12-21 11:27:46 +01:00
Jon Thacker
c62803d243
atmega_common: disable interrupts prior to rebooting
...
If the watchdog is being reset in another thread, then
the reboot will never take place. This commit disables interrupts prior
to setting the watchdog timer to 250ms. This functionallity was common
to all Atmega CPUs, so it was moved to atmega_common.
2016-12-20 17:22:39 -06:00
smlng
35adde55d2
cppcheck: cpu/cc2538 reduce scope of variables
2016-12-20 15:48:54 +01:00
Antonio Galea
9421152cb8
SAML21: updated periph driver to match ASF-3.33 includes
2016-12-19 18:27:47 +01:00
Antonio Galea
e936177646
SAML21: typo in README
2016-12-19 15:20:39 +01:00
Antonio Galea
eb1d267975
SAML21: updated CMSIS files to ASF XDK 3.33.0
2016-12-19 13:48:43 +01:00
Antonio Galea
11b6f47502
saml21: add README stating origin for SAML21 CMSIS includes
2016-12-19 13:30:01 +01:00
Ludwig Knüpfer
0d628b6dc3
Merge pull request #6110 from lebrush/stm32f1-no-pll
...
cpu/stm32f1: implement lpm + run without PLL
2016-12-18 19:33:04 +01:00
Hauke Petersen
96fb9bfbdc
Merge pull request #5842 from OTAkeys/pr/stm32_rcc_fix
...
cpu/stm32(_common & f2): implement delay after RCC peripheral clock enable
2016-12-16 21:23:14 +01:00
310e193494
Merge pull request #6224 from haukepetersen/rm_saml21_saml21periphh
...
cpu/saml21: removed unused saml21_periph.h
2016-12-16 21:07:27 +01:00
Pieter Willemsen
a0835ccb1d
stm32: use periph_clk_en/dis functions for clock changes
2016-12-16 15:01:56 +01:00
Pieter Willemsen
2b37d369a0
stm32_common: add delay when turn on peripheral clock
...
Implements workaround 1 (use __DSB()) proposed in the stm32 errata
It was possible to lose data when you configure a peripheral
right after enabling its clock
2016-12-16 14:51:35 +01:00
79043d2518
Merge pull request #6186 from haukepetersen/opt_stm32_pwm
...
cpu/stm32x: unified PWM driver implementations
2016-12-16 14:34:33 +01:00
596f8c516b
Merge pull request #6189 from bergzand/stm32f401-i2c
...
cpu/stm32f4: Add I2C low speed support to the stm32f4
2016-12-16 14:30:44 +01:00
3ec401da61
cpu/stm32f4: add i2c low speed mode support
2016-12-15 20:56:10 +01:00
Hauke Petersen
4d09d09ee4
cpu/stm32x: unified PWM driver
2016-12-15 12:18:39 +01:00
Hauke Petersen
74bba2a183
cpu/saml21: removed unused saml21_periph.h
2016-12-15 11:59:54 +01:00
Hauke Petersen
fcb1e68732
cpu/sam0: renamed sam21_common to sam0_common
2016-12-15 11:47:03 +01:00
Hauke Petersen
bfb52afde9
cpu/sam21: unified structure for sam[drl]21 CPUs
2016-12-15 11:39:19 +01:00
Cenk Gündoğan
0b85959efc
Revert "netdev2_tap: return actual byte number on read request"
...
This reverts commit 613bceeae3
.
FIONREAD seems to be unsupported for tun/tap interfaces in Linux.
2016-12-14 14:17:14 +01:00
Vincent Dupont
283f0c3b29
stm32f2: improve MCO2 clock output support
...
MCO2 output prescaler can be set by using:
Valid values are in range 1 - 5
2016-12-14 10:56:46 +01:00
Toon Stegen
5f6b182a8d
stm32f2: add initialization of PLL I2S for MCO2
...
To use it, add the following defines to your periph_conf.h:
/* prescaler for 8MHz I2S clock */
#define ENABLE_PLLI2S_MCO2 1
#define CLOCK_PLL_I2S_R (6U)
#define CLOCK_PLL_I2S_N (240U)
2016-12-14 10:56:46 +01:00
Hauke Petersen
ad3ed80f05
cpu/arm7_common: s/u_long/unsigned long/
2016-12-13 13:26:37 +01:00
Hauke Petersen
2a62ec5f6b
cpu/stm32f[3|4] adapted PWM driver
2016-12-09 12:20:03 +01:00
Hauke Petersen
0aa70faa3d
cpu/stm32f2: temporarily removed PWM driver
2016-12-09 12:20:03 +01:00
Hauke Petersen
47b379e45d
cpu/stm32x: unified timer driver
2016-12-09 12:20:03 +01:00
Hauke Petersen
e50479f84f
cpu/stm32: changed TIM->CCR def in vendor headers
2016-12-09 12:20:03 +01:00
Hauke Petersen
7979c3ac5c
cpu/stm32_common: added periph_apb_clk() function
2016-12-09 12:20:02 +01:00
Oleg Hahm
ccb9179c23
Merge pull request #5824 from kaspar030/change_default_c_dialect
...
make: use -std=c99 as default
2016-12-08 13:44:34 -05:00
Oleg Hahm
d1b370ece6
Merge pull request #6163 from locicontrols/arvalid
...
cpu/cortexm_common: simplify ARVALID tests and fix BFARVALID test.
2016-12-08 12:28:01 -05:00
Hauke Petersen
dad5f0c269
lpc11u34: remodeled GPIO driver
2016-12-07 10:44:46 +01:00
jfbortolotti
b2e79959b1
cpu: nRF52: move clearing of TXRDY flag
...
... before writing the data to avoid an infinite loop in case of multiple thread accessing the UART. (#6029 )
2016-12-06 10:52:27 +01:00
Victor Arino
419dcfdf11
cpu/stm32f1: allow to run without PLL
2016-12-06 10:08:41 +01:00
Ian Martin
299a3eed3b
cpu/cortexm_common: simplify ARVALID tests and fix BFARVALID test.
2016-12-01 17:18:06 -05:00
Hauke Petersen
fe1d4bf9ed
cpu/nrf51/2: unified erase reg in vendor header
2016-11-30 16:51:10 +01:00
Hauke Petersen
df19605145
cpu/nrf5x: added flashpage driver implemenation
2016-11-30 16:51:10 +01:00
Hauke Petersen
c3a4a44f49
cpu/stm32f1: added flashpage driver implementation
2016-11-30 16:51:09 +01:00
Francisco Acosta
84d0d61279
Merge pull request #5608 from gebart/pr/xtimer-ticks
...
xtimer: Allow arbitrary timer frequency, second attempt
2016-11-29 23:00:31 +01:00
Joakim Nohlgård
7c48c891a0
xtimer: Update xtimer usage to match API changes
2016-11-29 20:44:31 +01:00
Peter Kietzmann
e547ff1d60
Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
...
periph/uart: added names to return values
2016-11-29 19:14:09 +01:00
Martine Lenders
613bceeae3
netdev2_tap: return actual byte number on read request
2016-11-16 23:57:04 +01:00
smlng
e9aba880cd
native: fix netdev2_tap for macOS
2016-11-16 18:50:49 +01:00
Martine Lenders
d31d3d5fb9
Merge pull request #6130 from zhuoshuguo/fix_stm32f4_include_guards
...
cpu/stm32f4: fix include guards.
2016-11-16 18:07:48 +01:00
Martine Lenders
c833a82f03
Merge pull request #6129 from zhuoshuguo/fix_stm32f2_include_guards
...
cpu/stm32f2: fix include guards.
2016-11-16 17:20:06 +01:00
Martine Lenders
e1cbb4c794
Merge pull request #6128 from zhuoshuguo/fix_stm32f0_include_guards
...
cpu/stm32f0: fix include guards.
2016-11-16 15:54:12 +01:00
zhuoshuguo
a60fa5b8d3
cpu/cortexm_common: fix include guards.
2016-11-16 11:45:03 +01:00
zhuoshuguo
501bdcf305
cpu/stm32f4: fix include guards.
2016-11-16 11:33:26 +01:00
zhuoshuguo
672b99c9e1
cpu/stm32f2: fix include guards.
2016-11-16 11:29:55 +01:00
zhuoshuguo
7f5dbe6f77
cpu/stm32f0: fix include guards.
2016-11-16 11:22:42 +01:00
1f70e65faf
cpu: msp430: set gnu99 as C dialect
2016-11-15 14:59:36 +01:00
705f0c768a
cpu: atmega1281: asm -> __asm__
2016-11-15 14:59:36 +01:00
f4bee2672c
cpu: cc2538: remove typeof() usage
2016-11-15 14:59:36 +01:00
Victor Arino
163d1634a7
cpu/stm32f1: remove unnecessary line
2016-11-11 15:25:37 +01:00
Victor Arino
787d255ccd
cpu/stm32f1: implement lpm
2016-11-11 15:25:26 +01:00
smlng
e867d83eff
cbor: fix redefined macro error on macOS
2016-11-10 16:16:06 +01:00
Francisco Acosta
eb06b13722
Merge pull request #5754 from locicontrols/cc2538-timer-pr
...
CC2538 periph/timer overhaul
2016-11-01 23:22:21 +01:00
Martine Lenders
ee698f17ad
Merge pull request #6009 from kaspar030/fix_cortexm_compile_warning
...
cpu: cortexm_common: fix compile warning
2016-11-01 15:56:11 +01:00
Yonezawa-T2
fe96a4c9c4
make: use gobjcopy if objcopy is not available
2016-10-31 22:28:43 +01:00
Martine Lenders
61daeff04c
Merge pull request #5881 from miri64/core/enh/add-verbose-assert
...
core: define macro for verbose behavior for assert()
2016-10-31 20:13:59 +01:00
Martine Lenders
65a11162fe
core: define macro for verbose behavior for assert()
...
Since this is also done for MSP430 specifically that file can be
removed.
2016-10-31 13:51:54 +01:00
Oleg Hahm
3aab6bb286
Merge pull request #2071 from LudwigKnuepfer/2071
...
native: *long* overdue fixes
2016-10-30 19:37:40 +01:00
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
2016-10-28 10:32:00 +02:00
0dfcefc003
cpu: cortexm_common: fix compile warning
2016-10-27 15:20:56 +02:00
Martine Lenders
3422190c51
Merge pull request #5957 from OlegHahm/cpu_stack_size_cleanup
...
cpu: minor improvements for MSP430 and AVR
2016-10-27 14:24:11 +02:00
Oleg Hahm
69b703729f
cpu: make standard stack sizes configurable
2016-10-27 11:46:47 +02:00
Oleg Hahm
a8004a8b3a
cpu: some cosmetics
2016-10-27 11:46:47 +02:00
Martine Lenders
9e97b0a028
Merge pull request #5977 from miri64/ieee802154/enh/centralize-default-values
...
ieee802154: centralize default values
2016-10-26 16:39:44 +02:00
Martine Lenders
3114c05cc9
Merge pull request #5782 from aabadie/nucleo_f070
...
boards: initial support for nucleo-f070
2016-10-26 15:35:27 +02:00
Martine Lenders
20e1fce5b7
ieee802154: centralize default values
2016-10-26 15:32:12 +02:00
efe3d52ba4
cpu/stm32f0: initial support for stm32f070xb cpu
2016-10-26 13:05:50 +02:00
Aaron Sowry
9f05620654
cc2538: Fix indentation
2016-10-26 19:48:34 +13:00
Hauke Petersen
bee57a4d6a
Merge pull request #5798 from aabadie/nucleo-f030
...
boards: initial support for Nucleo f030 board
2016-10-25 19:50:59 +02:00
Francisco Acosta
b2bed29683
Merge pull request #5564 from locicontrols/mpu-rebase2
...
Cortex-M MPU driver and pseudo-module for guarding against stack overflows
2016-10-25 11:56:40 +02:00
Peter Kietzmann
d8d658f1f7
Merge pull request #5974 from cgundogan/pr/atmega_common_time
...
cpu/atmega_common: include time.h for time_t
2016-10-25 08:10:58 +02:00
Martine Lenders
6434687271
Merge pull request #5989 from haukepetersen/fix_stm32f103cb_linkerscript
...
cpu/stm32f103cb: generalize linkerscript
2016-10-24 22:42:42 +02:00
Peter Kietzmann
32eb239b5a
Merge pull request #5985 from smlng/pr/netstats_l2
...
netstats_l2: cc2538 (and at86rf2xx fixes)
2016-10-24 20:59:12 +02:00
Ian Martin
22b5de86a5
add mpu_stack_guard pseudomodule (just Cortex-M for now)
...
triggers an exception during stack overflow,
but at a cost of 32-63 bytes of RAM per thread.
2016-10-24 12:40:44 -04:00
Hauke Petersen
f2eb4618f2
boards/spark-core: added custom linkerscript
2016-10-24 17:36:31 +02:00
Hauke Petersen
ecb24e55bf
cpu/stm32f103cb: generalized linkerscript
2016-10-24 17:35:44 +02:00
Martine Lenders
3225f020e5
Merge pull request #5964 from kaspar030/make_fix_appdir_bindir
...
make: remove trailing slash from BINDIR and APPDIR variables
2016-10-24 14:33:40 +02:00
smlng
89978ab8e5
cc2538: add netstat_l2
2016-10-21 21:56:04 +02:00
Cenk Gündoğan
9ef148e931
cpu/atmega_common: include time.h for time_t
2016-10-20 15:33:01 +02:00
Ian Martin
b7bd6b3479
cpu/cortexm_common: add Memory Protection Unit (MPU) driver
2016-10-19 11:12:36 -04:00
PeterKietzmann
f57e185f5d
cpu/stm32f1: remove leftover from #5921
2016-10-19 12:21:42 +02:00
PeterKietzmann
bb4bf51020
cpu/stm32f1: improve SPI driver speed
2016-10-19 08:56:18 +02:00
560a509036
make: remove trailing slash from BINDIR variable
2016-10-18 23:27:59 +02:00
Hauke Petersen
470fe20a40
cpu/msp430fxyz: added bifields for SPI STAT reg
2016-10-17 20:47:27 +02:00
Hauke Petersen
6cd8d98f1d
cpu/msp430fxyz: improved SPI driver speed
2016-10-17 20:47:26 +02:00
Ludwig Ortmann
cabb20036f
cpu/samd21: implement low power modes
2016-10-16 20:20:55 +02:00
Ludwig Ortmann
0b72be7c87
native: add syscall-leave trampoline
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
237340b3e3
native: add thread_yield_higher misuse warning
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
83886d61c7
native: start with interrupts disabled
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
535eda8805
native: improve comments, coding style
2016-10-15 07:40:49 +02:00
Martine Lenders
d1111dcafa
Merge pull request #5918 from PeterKietzmann/fix_msp430f1_spi_clk
...
cpu/msp430: fix spi clk config for msp430f1xxx
2016-10-14 12:52:04 +02:00
PeterKietzmann
17b322494d
cpu/msp430: remove non-effective code for msp430f2xxx
2016-10-14 11:41:00 +02:00
PeterKietzmann
d4ee66cfb7
cpu/msp430: fix spi clk config for msp430f1xxx
2016-10-14 11:40:05 +02:00
Joakim Nohlgård
11c11a5ecf
Merge pull request #5727 from kaspar030/fix_panic_compile
...
cpu: cortexm_common: fix compile warning
2016-10-14 10:08:42 +02:00
88d03aebfe
cpu/stm32f0: adding stm32f030r8 support
2016-10-12 11:16:03 +02:00
Martine Lenders
2e953b7261
Merge pull request #5907 from jfbortolotti/nRF52_linker
...
cpu: cortexm_common: Remove useless path when setting default value for LINKER_SCRIPT
2016-10-11 10:21:44 +02:00
Sebastian Meiling
be38643a2d
Merge pull request #5915 from aeneby/send_wait_v2
...
cpu/cc2538: Wait for transmission to complete before returning from send()
2016-10-10 13:23:44 +02:00
3dfafde027
cpu: cortexm_common: fix compile warning
2016-10-07 12:06:43 +02:00
Hauke Petersen
ac6b73a35c
cpu/samd21(common): cleaned up pad selection macros
...
- renamed uart and spi pad selection macros to consistent style
- adapted uart and spi implementation to use new names
2016-10-07 11:02:14 +02:00
Peter Kietzmann
9063121558
Merge pull request #5910 from haukepetersen/fix_sam0_muxstuff
...
cpu/sam21: removed superfluous gpio_init_sercom
2016-10-07 08:08:02 +02:00
Aaron Sowry
191dc0ffad
cpu/cc2538: Wait for transmission to complete before returning from send()
2016-10-07 12:25:38 +13:00
Francisco Acosta
ba6a8e06b0
Merge pull request #5475 from aabadie/arduino_zero
...
boards/arduino-zero: add initial support
2016-10-06 20:26:33 +02:00
Peter Kietzmann
108832d6fb
Merge pull request #5912 from haukepetersen/fix_sam0_periphcpu
...
cpu/sam21_common: remove unused defines
2016-10-06 08:57:05 +02:00
Hauke Petersen
b2d996034f
cpu/sam21_common: remove unused defines
2016-10-05 15:18:39 +02:00
Hauke Petersen
d3e41e7b58
cpu/sam21: removed superfluous gpio_init_sercom
...
This function was a duplication of the existing gpio_init_mux,
where the exiting function is the more general one, as the mux
inititalization is not only valid for the sercom module...
2016-10-05 13:19:52 +02:00
Kees Bakker
bac5cda1e3
periph/i2c: convert char to uint8_t where applicapable
...
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.
Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
68acc8857e
boards/arduino-zero: add initial support
2016-10-04 18:34:51 +02:00
Jeff Bortolotti
488723b394
cpu: cortexm_common: Remove useless path when setting default value for LINKER_SCRIPT
2016-10-03 23:19:00 +02:00
Martine Lenders
536aec648b
Merge pull request #5895 from jfbortolotti/nRF52_linker
...
cpu: cortexm_common: allow overriding of linker script
2016-10-03 16:04:27 +02:00
Peter Kietzmann
d1c3233242
Merge pull request #5892 from gebart/pr/kinetis-gpio-include
...
kinetis: Add stddef, stdint missing includes for gpio.c
2016-09-30 08:33:20 +02:00
Jeff Bortolotti
92e533de74
cpu: cortexm_common: allow overriding of linker script
2016-09-29 23:56:47 +02:00
f2c5314643
Merge pull request #5860 from keestux/add-sodaq-autonomo
...
boards: add sodaq autonomo
2016-09-29 22:00:38 +02:00
Joakim Nohlgård
1a2b2575fb
kinetis: Add stddef, stdint missing includes for gpio.c
2016-09-29 15:47:53 +02:00
Peter Kietzmann
d33786d0c7
Merge pull request #5706 from aabadie/nucleo_f446
...
boards: initial support of ST Nucleo f446
2016-09-29 13:25:45 +02:00
Kees Bakker
076d5bda11
boards: add support for SODAQ Autonomo
...
The following features were tested (briefly):
* UART (the first)
* I2C using a BMP180 on a SODAQ TPH board
* SPI0, connected to the on-board serial data flash (only DevID was read
using the periph_spi test program)
* xtimer is working (it's the same code as in samr21)
boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
2016-09-28 18:02:16 +02:00
Kees Bakker
6aa346fbad
cpu/sam21_common: some corrections to CMSIS samd21 include files
...
See README.md for details
* eliminate trailing white space
* remove define of LITTLE_ENDIAN
2016-09-28 18:01:12 +02:00
Kees Bakker
3123b501b5
cpu/sam21_common: add samd21 include files from ASF CMSIS
...
This adds support for all samd21 variants. Notice that the previous samd21
was moved to cpu/samr21
To use this cpu variant you must set at least the following in your boards
Makefile.include:
export CPU = samd21
export CPU_MODEL = samd21j18a # Not sure if this is used
CFLAGS += -D__SAMD21J18A__ # or whatever variant you have
The samd21 include files were copied from ASF 3.30
2016-09-28 18:01:12 +02:00
b50ab2f46e
cpu/stm32f4: adding support for stm32f446re cpu
2016-09-28 17:00:56 +02:00
Martine Lenders
ff2f9983f0
Merge pull request #5880 from OlegHahm/fix_debug_newlines
...
debug: add missing line breaks
2016-09-28 15:21:28 +02:00
Peter Kietzmann
4fa4626c15
Merge pull request #5861 from hamilton-mote/fix-samr21e
...
cpu/sam21_common: support SAMR21E18
2016-09-28 09:25:39 +02:00
Oleg Hahm
b428979a1d
debug: add missing line breaks
2016-09-27 23:38:41 +02:00
Peter Kietzmann
f7056cf976
Merge pull request #5868 from immesys/patch-1
...
samd21: spi: fix power regression
2016-09-27 21:25:44 +02:00
smlng
77250f89a3
cc2538: disable l2 ack recv irq
2016-09-27 15:04:39 +02:00
Michael Andersen
68f9916ab6
samd21: spi: fix power regression
...
The MISO pin cannot be left floating as it increases power consumption
2016-09-26 19:59:51 -07:00
Peter Kietzmann
436ff13c1c
Merge pull request #5804 from aeneby/no_mutex_lock
...
cpu/cc2538: Remove superfluous mutex lock
2016-09-26 10:46:39 +02:00
Oleg Hahm
63615157ef
Merge pull request #5819 from makomi/stm32l1
...
cpu/stm32l1: uart: suppress cppcheck nullPointer errors
2016-09-23 20:15:50 +02:00
Oleg Hahm
797ab580c8
Merge pull request #5818 from makomi/stm32f3
...
cpu/stm32f3: uart: suppress cppcheck nullPointer errors
2016-09-23 20:13:29 +02:00
Oleg Hahm
50215e9b5d
Merge pull request #5817 from makomi/stm32f0
...
cpu/stm32f0: uart: suppress cppcheck nullPointer errors
2016-09-23 19:50:31 +02:00
Oleg Hahm
ed3aa6c46e
Merge pull request #5835 from mali/timer
...
cpu/atmega_common: fix timer_set_absolute return code
2016-09-23 19:35:22 +02:00
Michael Andersen
41190ac2a8
cpu/sam21_common: support SAMR21E18
2016-09-22 16:24:09 -07:00
0e45604765
Merge pull request #5743 from keestux/refactor-samd21
...
Refactor samd21
2016-09-22 14:54:57 +02:00
b2b42c7b71
Merge pull request #5451 from mali/uno
...
boards: add arduino uno and duemilanove support
2016-09-22 09:29:49 +02:00
Ludwig Knüpfer
6d30ced410
Merge pull request #5763 from jthacker/avr_thread_arch_isr_stack_usage
...
atmega: use software interrupt for context swap
2016-09-21 21:13:05 +02:00
Kees Bakker
d367090c44
cpu/sam21_common: remove define of LITTLE_ENDIAN
...
This define conflicts with LITTLE_ENDIAN defined in
include/machine/endian.h which is part of gcc-arm-none-eabi.
Also, the define does not seem to be used by the ASF included files.
2016-09-21 20:44:38 +02:00
Kees Bakker
e118525731
cpu/sam21_common: add C++ wrapper to sam0.h
2016-09-21 20:40:49 +02:00
Kees Bakker
1b307b3802
cpu/sam21_common: eliminate trailing white space in CMSIS include files
2016-09-21 20:40:28 +02:00
Kees Bakker
ea8b90fa5f
cpu/samd21: uart: now using padd setting from board config
...
Notice the extra fields in uart_conf_t for rx_pad and tx_pad.
2016-09-21 20:34:22 +02:00
Kees Bakker
845ef0decd
cpu/samd21: Refactor spi using ArduinoCore as example
...
The pinmux is now part of the board config. The pad setting is done with
clear names instead of numbers.
2016-09-21 20:34:22 +02:00
Kees Bakker
f794bd4c8e
cpu/samd21: spi: change #ifdef's to #if's
...
The board config can define SPI_1_EN as 0, and in that case #ifdef won't
work.
Add some more comments, and fix typos.
2016-09-21 20:34:22 +02:00
Kees Bakker
574b565e2a
cpu/samd21: add helper functions spi_power_on/off
2016-09-21 20:34:22 +02:00
Kees Bakker
2a4655b6f8
cpu/samd21: rewrite i2c_init_master to make use of gpio_init_sercom
...
The former i2c_init_master was too complicated. It was trying to set IN/OUT
mode of the pins, but all that is needed is to set the proper MUX.
Also the configuration for the boards was incomplete (no MUX, no pad
setting).
It was tested on a SODAQ Autonomo, but not on a samr21-xpro
2016-09-21 20:34:22 +02:00
Kees Bakker
be1113fa6c
cpu/sam21_common: move i2c.c from samd21 to sam21_common
...
Notice that saml21 does not use I2C (yet).
2016-09-21 20:34:22 +02:00
Kees Bakker
4ad3313ae5
cpu/sam21_common: add a few typedefs for SERCOM
...
A generic function is added to initialize a SERCOM.
Notice that uart_conf_t was expanded with pad settings, but it isn't used
yet.
2016-09-21 20:34:21 +02:00
Kees Bakker
8644b5f7a0
cpu/samd21: introduce sam0.h so that we can select samr21.h or other
...
In the Makefile.include of the board it is required to set the correct
define.
Currently only SAMRG18A is supported, as required by samr21-xpro.
2016-09-21 19:43:30 +02:00
Kees Bakker
88e84f68ff
cpu/sam21_common: update ASF CMSIS (samr21) include files using ASF 3.21
...
Notice that RIOT was using FDPLL96M, which is indeed the name in the
datasheet. But Atmel is using GCLK_GENCTRL_SRC_FDPLL.
2016-09-21 19:43:30 +02:00
Kees Bakker
2869d7729d
cpu/samr21: rename ASF include files to prepare for ASF update
2016-09-21 19:43:30 +02:00
Joakim Nohlgård
6be334b4f4
Merge pull request #5833 from immesys/fix-i2c-checks
...
samd21: i2c: check all busstate bits
2016-09-20 10:06:40 +02:00
Michael Andersen
e367ab93f6
samd21: i2c: improve busstate comparison
2016-09-19 10:54:17 -07:00
Matthias Kolja Miehl
c5cfacebc3
cpu/stm32l1: uart: make sure 'dev' is != NULL to avoid nullPointer errors
2016-09-13 22:22:48 +02:00
Martine Lenders
8a74475e70
Merge pull request #5761 from mali/rmdeadcode
...
boards/atmega_common: remove dead code on link
2016-09-12 17:01:15 +02:00
Martine Lenders
03fbe9c2a5
Merge pull request #5766 from zhuoshuguo/fix_cpu_atmega_header_include_guards
...
fix cpu/atmega header include guardes.
2016-09-12 17:00:56 +02:00
Matthias Kolja Miehl
0bb7050c60
cpu/stm32f3: uart: make sure that 'port' and 'dev' are !=NULL
...
This fixes some cppcheck nullPointer errors.
2016-09-11 17:19:59 +02:00
Matthias Kolja Miehl
2ba795eb81
cpu/stm32f0: uart: make sure that 'port' and 'dev' are !=NULL
...
This fixes some cppcheck nullPointer errors.
2016-09-11 16:56:35 +02:00
Laurent Navet
4c9c3ab7d6
cpu/atmega_common: fix timer_set_absolute return code
...
according to timer documentation, timer_set and timer_set_absolute should
return 1 on succes, not 0.
2016-09-10 00:12:39 +02:00
Michael Andersen
082d8e85a9
samd21: i2c: clear timeout_counter
...
If not cleared, long writes timeout incorrectly
2016-09-07 18:21:38 -07:00
Jon Thacker
e0365e0bf9
atmega: use software interrupt for context swap
...
Fixes #5745
For AVR based boards, three defines must be defined AVR_CONTEXT_SWAP_INIT,
AVR_CONTEXT_SWAP_INTERRUPT_VECT, and AVR_CONTEXT_SWAP_TRIGGER.
These defines are used to trigger a software interrupt used for context
switching.
When AVR_CONTEXT_SWAP_INTERRUPT_VECT is handled, the scheduler is run
and a context swap will happen if necessary, with the resulting thread
starting following the reti instruction. This results in threads running
at normal priority instead of at interrupt priority.
Atmega devices do provide a pure software interrupt. The method used
here for waspmote-pro and arduino-mega2560 is to use pin change
interrupts, set the pin to act as an output, and toggle the value to
simulate a software interrupt. The main limitation here is that a
physical pin is now occupied and must be defined for each board
supported by RIOT. On the plus side, it provides an easy method for
detecting context swaps with an oscilloscope.
2016-09-07 14:35:53 -05:00
Aaron Sowry
2ba43d560f
cpu/cc2538: Remove superfluous mutex lock
2016-09-04 20:51:51 +12:00
Oleg Hahm
908f5489b6
Merge pull request #5653 from aeneby/rssi_lqi_fix_v2
...
cpu/cc2538: Make ED and LQI values 802.15.4 compliant
2016-09-04 10:27:02 +02:00
Laurent Navet
3f0e1862a8
cpu/atmega328p: add atmega328p mcu support
...
add atmega328p support with:
uart, timer, spi and gpio
2016-09-02 22:26:19 +02:00
Shuguo Zhuo
db3a349a51
cpu/atmega: revised header include guards.
2016-09-01 18:32:17 +02:00
26e4004de4
Merge pull request #5397 from OTAkeys/pr/stm32f2xx
...
cpu: add stm32f2xx family support (based on #4497 )
2016-08-31 21:14:37 +02:00
kYc0o
5e3747ea8b
Merge pull request #5590 from mali/atmega_common
...
cpu/atmega_common: improve to add smaller atmega MCUs.
2016-08-31 18:29:53 +02:00
BytesGalore
c34e9d268c
Merge pull request #5785 from x3ro/fix-mci-driver-timer-issue
...
lpc2387: Fix wrong factor in driver poll-timer
2016-08-30 21:09:17 +02:00
Peter Kietzmann
28638bea92
Merge pull request #5725 from aeneby/tx_underrun_fix
...
cpu/cc2538: wait for ongoing transmission before flushing TX FIFO
2016-08-30 21:07:14 +02:00
Lucas Jenss
1cf1f59ca9
lpc2378: Fix wrong factor in driver poll-timer
...
Fixes #4530
2016-08-30 19:59:34 +02:00
Joakim Nohlgård
455fb6cd4d
Merge pull request #5742 from kaspar030/fix_lto
...
LTO fixes
2016-08-29 19:00:09 +02:00
d1198b489d
cpu: k60: rename vector.c -> vectors.c, add to SRC_NOLTO
2016-08-29 17:29:53 +02:00