1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

2298 Commits

Author SHA1 Message Date
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
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