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

148 Commits

Author SHA1 Message Date
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
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
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
kYc0o
e443b90815 Merge pull request #5452 from locicontrols/find-tty
Adjust find-tty.sh to return all matches, then use it in boards/cc2538dk
2016-07-22 16:01:46 +02:00
Joakim Nohlgård
4d862955c2 xtimer: Rename XTIMER -> XTIMER_DEV 2016-07-06 22:23:04 +02:00
PeterKietzmann
9a7c67411f boards/samr21-xpro:fix SPI_1 DIPO config 2016-07-06 09:27:25 +02:00
Ian Martin
b1946e6715 dist: tools: let find-tty.sh return all matches, not just the first 2016-05-18 15:33:01 -04:00
Oleg Hahm
8f47dcbbf8 Merge pull request #4719 from immesys/feature-samr21e
Add linker file for Atmel SAMR21E18A
2016-03-25 22:12:28 +01:00
Oleg Hahm
10f5f1aa33 make: introduce netif_default pseudomodule
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Michael Andersen
83f9cecc12 cpu/samd21: Change linker file to support E variant 2016-03-23 16:49:24 -07:00
Martine Lenders
5bfc9e43fb at86rf2xx: port to netdev2 2016-03-23 17:45:16 +01:00
Hauke Petersen
5996706771 boards: adapted LED initialization calls 2016-03-17 14:55:31 +01:00
Hauke Petersen
cf3a40dc5f baords: adapted saul config to GPIO changes 2016-03-17 14:55:30 +01:00
Hauke Petersen
363b883d51 boards: fixed doxygen in msp430 and x86 board.h 2016-03-15 18:37:54 +01:00
Hauke Petersen
f0618593ba boards/samr21-xpro: unified LED defines 2016-03-15 18:37:52 +01:00
Joakim Nohlgård
ae108581d3 boards/*/Makefile.include: replace $(shell ls) by native Makefile functions 2016-03-11 15:05:06 +01:00
Hauke Petersen
a75847ca27 baords/samr21-xpro: added third channel for PWM1 2016-02-21 16:49:45 +01:00
Hauke Petersen
fe5023b7d4 boards: adapted to HWRNG changes 2016-02-14 12:59:47 +01:00
Hauke Petersen
9988f00d7b boards: fixed some PWM definitions 2016-02-12 16:10:01 +01:00
Joakim Nohlgård
7835ab2be7 make: Move BOARD and CPU includes to Makefile.modules 2016-02-10 16:37:03 +01:00
Joakim Nohlgård
fae9a092fd boards: Remove Makefile.include.cortexm_common 2016-02-10 16:37:03 +01:00
Cenk Gündoğan
0d1a8393ca saul: add user button for samr21-xpro 2016-02-04 16:35:48 +01:00
Cenk Gündoğan
b860ad3715 saul: make pull-up/pull-down mode configurable 2016-02-04 14:57:00 +01:00
Cenk Gündoğan
b751d79bf5 boards: samr21-xpro: add user button gpio 2016-02-04 13:58:03 +01:00
Hauke Petersen
b436219674 boards: removed F_CPU define from board.h 2016-01-27 09:52:44 +01:00
Hauke Petersen
db25206a58 boards: use default values for STDIO defines 2016-01-05 12:08:31 +01:00
Hauke Petersen
c8386028e0 boards/samr21-xpro: added saul to Makefile.dep 2015-12-10 14:33:33 +01:00
Hauke Petersen
ac2b9f2524 boards: changed module name to 'board' 2015-12-07 17:53:22 +01:00
Oleg Hahm
00def4f8e7 CI: split up Cortex-M0 in two groups 2015-12-07 11:38:34 +01:00
28e800d2d2 boards/samr21: add SAUL led parameters 2015-11-30 20:33:56 +01:00
test
6e51bb741f boards: samr21-xpro: uart config cleanup 2015-11-23 15:37:56 +01:00
Hauke Petersen
004537e045 boards/samr21-xpro: use default at86rf2xx_params.h 2015-11-19 16:25:40 +01:00
Oleg Hahm
c8d89cb645 Merge pull request #3848 from haukepetersen/rm_samr21_at86defs
boards/samr21-xpro: rm unused radio interface defs
2015-11-18 17:12:43 +01:00
Andreas "Paul" Pauli
bf63e09a65 Merge pull request #4137 from haukepetersen/opt_samr21_pwm
cpu/samd21: optimized pin config for PWM driver
2015-11-05 16:14:05 +01:00
Lucas Jenss
d80f18de0b Minor usability improvements for samr21 usage 2015-10-27 19:43:40 +01:00
Hauke Petersen
63b37640b6 s board/periph_conf: added some spaces 2015-10-27 12:28:32 +01:00
Hauke Petersen
83b322f9ce s board: fixes
- moved pwm_conf[_chan]_t to periph_cpu.h
- fixed comments for channel definitions
2015-10-23 11:41:04 +02:00
Hauke Petersen
d70d59592e boards/samr21-xpro: adjusted PWM pin configuration 2015-10-23 11:41:04 +02:00
Hauke Petersen
528e832c90 boards: cleaned up entries in Makefile.features 2015-10-21 16:45:21 +02:00
Hauke Petersen
c24028f408 boards/samr21-xpro: rm unused radio interface defs 2015-10-21 14:14:06 +02:00
Hauke Petersen
e395dfd91e boards: s/GPIO(x,y)/GPIO_PIN(x,y)/ 2015-10-13 14:59:53 +02:00
daniel-k
eb144530d8 samr21-xpro: connect to correct tty when given SERIAL 2015-09-25 17:39:09 +02:00
Thomas Eichinger
36d3d9c4cd boards/samr21-xpro: define serial port for OS X 2015-09-21 15:04:07 +02:00
Martine Lenders
2184c97002 Merge pull request #3838 from haukepetersen/opt_samuart
cpu/samd21: optimized and extended UART impl.
2015-09-17 03:39:36 +02:00
8a0237e4da board: samr21: adapt to xtimer 2015-09-16 10:58:51 +02:00
Hauke Petersen
444d9e1d76 boards/samr21-xpro: adapted and extended UART defs
- adapted to optimized UART implementation
- defined a 2. UART device
2015-09-14 17:20:27 +02:00
Martine Lenders
b41e31bb8a auto_init_ng_netif: remove deprecated files 2015-08-19 17:22:54 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
BytesGalore
394ddb6900 drivers: renamed further remaining *NG_* macros 2015-08-12 17:21:45 +02:00
Oleg Hahm
8639d2c27d at86rf2xx: rename remaining files and variables 2015-08-11 23:52:02 +02:00
Martine Lenders
8f9e1656e1 at86rf2xx: remove ng_ prefix 2015-08-10 00:08:21 +02:00
Hauke Petersen
bff1d7e73e boards: remove feature 'transceiver' 2015-08-06 12:13:54 +02:00
bbf64e81ec remove defaulttransceiver, cc110x, cc2420 traces 2015-08-06 12:13:54 +02:00
830af458ea oldnet: remove radio_packet_length_t define 2015-08-06 12:13:18 +02:00
Hauke Petersen
b6a38b1db2 boards: removed deprecated netif initializations 2015-07-30 13:13:17 +02:00
Oleg Hahm
e634b8c5a8 Merge pull request #3056 from OlegHahm/board_leading_underscore_removal
boards: remove header guard under scores
2015-06-28 17:27:28 +02:00
Joakim Gebart
31f95c40f1 Merge pull request #3185 from daniel-k/fix_openocd_serial
openocd: fix SERIAL env to select board
2015-06-25 08:51:28 +02:00
Oleg Hahm
5312ae998b boards: removed incorrect doxygen comment markers 2015-06-24 15:54:36 +02:00
BigDaddyD
b6bd067863 boards: removed leading underscores from macros
* also added a trailing underscore to header guards for consistency

Commit for PR 2623, repairing header file include guards.
This PR is intended to fix the include guards in files under RIOT/boards

SQUASH ME: fix underscore removal overdos

SQUASH ME: consistent macro naming

SQUASH ME: missed that one

SQUASH ME: fixed overdo

SQUASH ME: consistency
2015-06-24 15:54:36 +02:00
daniel-k
322523261c samr21: fix SERIAL environment varible to select board when flashing 2015-06-16 15:48:05 +02:00
Hauke Petersen
a174b7644a boards: adjusted peripheral confs to GPIO changes 2015-06-12 19:12:21 +02:00
Hauke Petersen
619f336ddc board/samr21-xpro: use ng_netif_default module 2015-06-11 21:58:44 +02:00
Hauke Petersen
92e37e4392 board/samr21-xpro: enabled PWM feature 2015-06-05 11:22:26 +02:00
Hauke Petersen
acb06d8fe8 board/samr21-xpro: made cpu clock configurable 2015-06-04 11:58:26 +02:00
Joakim Gebart
cbe10e1116 Merge pull request #3023 from haukepetersen/opt_cortexm
cpu: unified cortex-m[034]_common implementations
2015-05-29 09:54:34 +02:00
haukepetersen
38f4fc7027 cpu/samd21: moved -O0 from board to cpu 2015-05-28 19:30:07 +02:00
Hauke Petersen
49dcb692d1 boards: adapted Makefiles to cortexm_common folder
- changed naming of cortexm_common in makefiles
- included some minor cleanups
2015-05-28 19:30:07 +02:00
Hauke Petersen
d1050a274f board/samr21-xpro: style fixes and simplified code
- fixed line length issue in doxygen headers
- compressed LED init code in board.c
- fixed whitespace issues in board.h
2015-05-27 13:22:54 +02:00
Hauke Petersen
3120ff3368 board/samr21-xpro: fixed LED initialization 2015-05-27 13:18:53 +02:00
107be4122c board: samr21-xpro: adapt to common board Makefile 2015-05-26 10:46:34 +02:00
9dc0554d98 cpu: samd21: use cortex common makefile and newlib module 2015-05-26 10:46:33 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
3c00ff0c9b drivers: adapt ng_at86rf2xx to new auto_init_ng_netif scheme 2015-05-17 21:02:00 +02:00
daniel-k
a31848ceb8 cpu/samd21: implement peripheral real time timer (periph/rtt) 2015-05-10 21:09:31 +02:00
haukepetersen
43f8a04c41 boards/samr21-xpro: added init of network interfaces 2015-04-30 15:08:49 +02:00
Ludwig Ortmann
70fc6686ff boards/samr21-xpro: fix led macros/init 2015-04-04 16:09:06 +02:00
Ludwig Ortmann
29a614e4c4 Merge pull request #2318 from LudwigOrtmann/flash-targets
boards/samr21-xpro: enable specifying a flash port
2015-03-26 21:07:42 +01:00
Tom Van den Eynde
e5f90a6056 boards/samr21-xpro: split FEATURES_PROVIDED over multiple lines 2015-03-20 00:14:01 +01:00
Ludwig Ortmann
7344f770a3 boards/samr21-xpro: allow specifying flash device 2015-03-03 21:19:48 +01:00
Philipp Rosenkranz
02d0c88284 tests/travis: split buildtests into MCU groups. 2015-02-22 15:04:52 +01:00
Hauke Petersen
d476a3d30c board/samr21-xpro: fixed doxygen group name 2015-02-12 15:11:01 +01:00
haukepetersen
de3200a88f board/samr21-xpro: use unified openocd script 2015-02-10 14:27:45 +01:00
Joakim Gebart
38fc33717b samr21-xpro: Add -mno-thumb-interwork.
Cortex-M processors only support Thumb instructions (no ARM mode code).

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-28 13:52:53 +01:00
Lucas Jenss
5fdbf0ccfe Samr21: autostart gdb when running make debug 2015-01-27 20:49:58 +01:00
Troels Hoffmeyer
29b0e73350 samr21: cpuid implemented by reading 128 bits from flash 2015-01-12 13:50:16 +01:00
bapclenet
55aabf9dfb cpu/samd21: add rtc periph implementation 2014-12-18 15:25:49 +01:00
Thomas Eichinger
ca53077e3c Merge pull request #1998 from Troels51/samr21-hwtimer-fix
samr21: 32 hwtimer
2014-12-17 17:29:36 +01:00
Troels Hoffmeyer
7124ec6258 samr21: implemented 32 bit hwtimer 2014-12-17 14:44:54 +01:00
Troels Hoffmeyer
33ef43c8e2 samr21: implemented transceiver via spi, gpio changes 2014-12-16 17:43:30 +01:00
bapclenet
54fb0f0610 cpu/samd21: add i2c periph implementation 2014-12-11 08:32:27 +01:00
Thomas Eichinger
23f8d2104f boards/samr21-xpro: declare implemented features 2014-11-20 15:02:23 +01:00
BytesGalore
ae3492b017 cpu/samd12: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
boards/samr21-xpro: provided c++ feature (cpp)
2014-11-14 13:20:54 +01:00
BytesGalore
fc56535dd3 boards: add extern "C" to header files 2014-10-31 11:27:59 +01:00
René Kijewski
765c88d08a make: allow drivers to implement features
This change allows drivers (or any module for that matter) to provide
features. This is e.g. useful if a board does not have a transceiver,
but your application uses `USEMODULE += some_driver`, which implements
the transceiver interface.

The line `FEATURES_PROVIDED += some_feature` should go to the guarded
block in `{sys,drivers}/Makefile.include`.
2014-10-26 23:54:10 +01:00
Oleg Hahm
481d4f2ee3 doc: fix ambiguous file name warnings
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Ludwig Ortmann
6262c4427e make: add gpio feature 2014-10-06 18:55:54 +02:00
Thomas Eichinger
bf256f63a3 samr21-xpro: initial import for the samr21-xpro board 2014-09-25 14:37:47 +02:00