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

71 Commits

Author SHA1 Message Date
Martine Lenders
3a3e993c0c doc: arduino: unify arduino include path and doc with rest of codebase 2017-04-13 18:47:25 +02:00
Anthony Merlino
aa1056a33b boards/arduino*: Unifies PORT_<OS> settings
All boards define a default PORT_LINUX and PORT_DARWIN
arduino-atmega-common uses PORT_LINUX and PORT_DARWIN accordingly
2017-02-02 14:12:03 -05:00
Anthony Merlino
3f7808add0 boards/arduino-mega2560: Alters board to depend on arduino-atmega-common 2017-02-02 14:12:02 -05:00
Bas Stottelaar
3b14a584b8 boards: *: remove SPI_*_EN now rework is merged 2017-01-31 19:38:41 +01:00
ebc35a0613 boards: fix doxygen @brief in periph.conf 2017-01-27 10:31:56 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Cenk Gündoğan
d853dd63c1 cpu: make CFLAGS_DBG configurable 2017-01-16 15:54:59 +01:00
Joakim Nohlgård
24b41dc633 boards: Update XTIMER_SHIFT and XTIMER_HZ configurations to match xtimer changes 2016-11-28 11:05:03 +01:00
Hauke Petersen
fc243f1841 boards: removed some superfluous definitions
- removed UART_STDIO_DEV as they use the default value
- removed BTN_B1_PIN for nucleo-207, as its already defined in the common header
2016-09-29 11:21:48 +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
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
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
Laurent Navet
5791a38668 boards/arduino-mega2560: adapt compilation flags
Remove flags which are now exported in atmega_common
2016-08-31 21:32:10 +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
Laurent Navet
2cd918a07a atmega_common: abstract Power Reduction Register
PR Register is PRR0 on atmega2560 and atmega1281
but PRR on atmega328p.
this abstracts as atmega Power Reduction Register as MEGA_PRR.
2016-08-20 12:21:32 +02:00
Joakim Nohlgård
db55740447 boards/arduino-mega2560: Add -Wno-error if building with LTO 2016-08-10 16:18:29 +02:00
Bas Stottelaar
43f146663e boards: arduino-mega2560, waspmote-pro: garbage collect dead code in linker options 2016-07-13 16:45:13 +02:00
46bd2f45d9 sys: xtimer: replace XTIMER_MASK with XTIMER_WIDTH in board config 2016-07-06 18:16:15 +02:00
kYc0o
abba25e068 boards/arduino-mega2560: define UART for STDIO 2016-06-22 14:25:10 +02:00
Hauke Petersen
a2ddb1dd7f boards/atmega2560: adapted UART configuration 2016-06-08 18:32:17 +02:00
Ian Martin
963f8a495d sys/xtimer: eliminate XTIMER_SHIFT_ON_COMPARE 2016-04-18 12:06:20 -04:00
Hauke Petersen
c95fb05836 boards/arduino-due: add correct XTIMER_MASK 2016-04-07 19:04:01 +02:00
Hauke Petersen
9652aa3814 boards/ardunio-mega2560: adapted timer configuration 2016-04-07 19:04:01 +02:00
pdNor
c8f51e297a boards/arduino-mega: Changes in Arduino pin mapping
The MCU pins was not correctly mapped to Arduino pins.
Updated the mapping so that MCU pins respons to the correct Arduino pins.
2016-04-01 16:27:15 +02:00
pdNor
3f668a0c88 Change in avrdude argument 2016-03-22 21:46:17 +01:00
DipSwitch
5b5810ab7b Merge pull request #5109 from DipSwitch/pr/fix_core_inc_irq
core: Fix/refactor function naming in core/incude/irq.h
2016-03-22 08:12:24 +01:00
Joakim Nohlgård
d0033a5d20 avr: Use TARGET_ARCH instead of custom toolchain specification 2016-03-21 12:19:30 +01:00
DipSwitch
0bb4748a94 core: Fix/refactor function naming in core/incude/irq.h 2016-03-20 16:47:34 +01:00
Hauke Petersen
7c744fd4bb boards/arduino-mega: unified LED defines 2016-03-15 15:48:46 +01:00
Joakim Nohlgård
dc303a4f0b sys/uart_stdio: rename STDIO -> UART_STDIO_DEV, move to header 2016-03-11 12:04:00 +01:00
Hauke Petersen
e55ea0885c boards/arduino-mega2560: cleanup in periph_conf.h
- remove unused periph configuration
- fixed doxygen
2016-03-10 14:04:14 +01:00
Hauke Petersen
5e3f6f52db Merge pull request #5014 from kYc0o/avr_on_macosx
boards/arduino-mega2560: add support to flash it on mac osx
2016-03-10 13:09:59 +01:00
Hauke Petersen
85c1d6c086 boards/arduino-mega2560: added SPI configuration 2016-03-09 18:34:42 +01:00
kYc0o
c0d28f3f87 boards/arduino-mega2560: add support to flash it on mac osx 2016-03-09 15:15:18 +01:00
Joakim Nohlgård
04c37094a0 make: Homogenize CFLAGS settings across cortexm_common, avr, msp430_common 2016-02-11 12:45:44 +01:00
Joakim Nohlgård
4ba3bfce7b boards/arduino-mega2560: Use code style CFLAGS from Makefile.cflags 2016-02-11 12:39:02 +01:00
Joakim Nohlgård
7835ab2be7 make: Move BOARD and CPU includes to Makefile.modules 2016-02-10 16:37:03 +01:00
Hauke Petersen
ebfc13c68d boards: added CLOCK_CORECLOCK define to periph_conf 2016-01-27 09:52:44 +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
Oleg Hahm
0250d62509 Merge pull request #4358 from OlegHahm/eliminate_pedantic_errors
Eliminate pedantic errors
2015-12-08 02:05:30 +01:00
Oleg Hahm
8243a153be arduino-mega2560: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Hauke Petersen
ac2b9f2524 boards: changed module name to 'board' 2015-12-07 17:53:22 +01:00
Cenk Gündoğan
60d4472419 Merge pull request #4301 from thomaseichinger/pr/env_bash
tools: remove hardcoding of bash hashbang
2015-11-30 11:04:23 +01:00
Thomas Eichinger
72ee60b9d5 scripts: remove hardcoding of bash hashbang
For host systems like FreeBSD, bash binary is found in a different path.
2015-11-25 16:20:56 +01:00
Hauke Petersen
3f114cc155 boards/arduino-mega2560: added Ardunio pin mapping
added a pin mapping file that maps MCU GPIO pins to Ardunio
specific pin numbers
2015-11-19 16:16:40 +01:00
René Herthel
13ae0ab979 atmega2560/cpu: Fixed wrong using of UART macros 2015-11-03 18:29:53 +01:00
Hauke Petersen
528e832c90 boards: cleaned up entries in Makefile.features 2015-10-21 16:45:21 +02:00
Hauke Petersen
18e364ae17 boards: removed deprecated HW_TIMER defines 2015-09-17 11:22:03 +02:00
534290fb5b board: arduino-mega2560: add xtimer configuration values 2015-09-16 11:13:41 +02:00