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

89 Commits

Author SHA1 Message Date
Marian Buschsieweke
793e1122eb
boards/arduino-mega2560: Updated documentaiton
- Extended documentation regarding debugging
- Removed outdated board state tracking list. (All periphs are now supported)
- Made table code pretty
2020-03-10 20:14:35 +01:00
Koos
cec9817b2e boards/arduino-mega2560: Updated broken image link 2020-03-04 09:54:36 +01:00
Marian Buschsieweke
23531b3a73
boards/arduino-mega2560: Refactor avrdude conf 2020-02-10 14:58:18 +01:00
713fead00a
boards: move some USEMODULE to Makefile.dep 2020-02-07 13:21:22 +01:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Robert Hartung
18117b4eb8 boards/arduino-mega2560: restrics usable pin change interrupts 2019-08-01 09:35:35 +02:00
Robert Hartung
09b26120fd boards: adds atmega pin change interrupt to doc 2019-08-01 09:35:35 +02:00
Sebastian Meiling
d29d336894
Merge pull request #11039 from maribu/avrdude
makefiles/tools: Improved avrdude integration
2019-02-28 22:15:30 +02:00
Marian Buschsieweke
4abc41a227
makefiles/tools: Automatically set avrdude target
The CPU variable in the boards Makefile.include file already contains the target
CPU, so there is no reason to provide it in each board again as avrdude flag.

This commit automatically sets the avrdude target from the CPU variable and
removes the unneeded flags.
2019-02-28 20:55:04 +01:00
Marian Buschsieweke
7bc9b4b707
boards/common/atmega: Refactoring periph_conf.h
- Moved code for periph_conf of all ATmega based boards to boards/common/atmega
- Added possibility to override config from individual board:
  - Named file `periph_conf_atmega_common.h` and let this be included from
    `board/$BOARD/include/periph_conf.h` to allow modifications
  - Guarded individual periph configs by `#ifndef $PERIPH_NUMOF` ... `#endif`
2019-02-25 18:48:09 +01:00
Francisco Acosta
1a98d64cd5 boards/arduino*: use common avrdude.inc.mk from atmega_common
Leverages common flasher (avrdude) and removes unnecessary exports.
Moreover, a reuse of serial.inc.mk is perfomed from the same
atmega_common/Makefile.include
2019-02-05 17:12:03 +01:00
PeterKietzmann
8d11ca417f cpu/atmega_common: add mega2560 puf_sram feature 2018-11-20 09:45:32 +01:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
The file always exist so no need to do '-include'.

Replaced using:

    sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
        $(git grep -l  '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
cladmi
6a96042b4a
arduino-mega2560: configure BOOTLOADER_SIZE
Taken from https://store.arduino.cc/arduino-mega-2560-rev3
2018-09-05 12:20:41 +02:00
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
Hauke Petersen
0f155db499 boards/arduino-atmega: move shared code to common/arduino-atmega 2017-11-30 10:26:35 +01:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
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