Martine Lenders
3a3e993c0c
doc: arduino: unify arduino include path and doc with rest of codebase
6 years ago
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
6 years ago
Anthony Merlino
3f7808add0
boards/arduino-mega2560: Alters board to depend on arduino-atmega-common
6 years ago
Bas Stottelaar
3b14a584b8
boards: *: remove SPI_*_EN now rework is merged
6 years ago
Alexandre Abadie
ebc35a0613
boards: fix doxygen @brief in periph.conf
6 years ago
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
6 years ago
Cenk Gündoğan
d853dd63c1
cpu: make CFLAGS_DBG configurable
6 years ago
Joakim Nohlgård
24b41dc633
boards: Update XTIMER_SHIFT and XTIMER_HZ configurations to match xtimer changes
6 years ago
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
6 years ago
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.
6 years ago
Laurent Navet
5791a38668
boards/arduino-mega2560: adapt compilation flags
...
Remove flags which are now exported in atmega_common
7 years ago
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.
7 years ago
Joakim Nohlgård
db55740447
boards/arduino-mega2560: Add -Wno-error if building with LTO
7 years ago
Bas Stottelaar
43f146663e
boards: arduino-mega2560, waspmote-pro: garbage collect dead code in linker options
7 years ago
Kaspar Schleiser
46bd2f45d9
sys: xtimer: replace XTIMER_MASK with XTIMER_WIDTH in board config
7 years ago
kYc0o
abba25e068
boards/arduino-mega2560: define UART for STDIO
7 years ago
Hauke Petersen
a2ddb1dd7f
boards/atmega2560: adapted UART configuration
7 years ago
Ian Martin
963f8a495d
sys/xtimer: eliminate XTIMER_SHIFT_ON_COMPARE
7 years ago
Hauke Petersen
c95fb05836
boards/arduino-due: add correct XTIMER_MASK
7 years ago
Hauke Petersen
9652aa3814
boards/ardunio-mega2560: adapted timer configuration
7 years ago
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.
7 years ago
pdNor
3f668a0c88
Change in avrdude argument
7 years ago
Joakim Nohlgård
d0033a5d20
avr: Use TARGET_ARCH instead of custom toolchain specification
7 years ago
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
7 years ago
Hauke Petersen
7c744fd4bb
boards/arduino-mega: unified LED defines
7 years ago
Joakim Nohlgård
dc303a4f0b
sys/uart_stdio: rename STDIO -> UART_STDIO_DEV, move to header
7 years ago
Hauke Petersen
e55ea0885c
boards/arduino-mega2560: cleanup in periph_conf.h
...
- remove unused periph configuration
- fixed doxygen
7 years ago
Hauke Petersen
85c1d6c086
boards/arduino-mega2560: added SPI configuration
7 years ago
kYc0o
c0d28f3f87
boards/arduino-mega2560: add support to flash it on mac osx
7 years ago
Joakim Nohlgård
04c37094a0
make: Homogenize CFLAGS settings across cortexm_common, avr, msp430_common
7 years ago
Joakim Nohlgård
4ba3bfce7b
boards/arduino-mega2560: Use code style CFLAGS from Makefile.cflags
7 years ago
Joakim Nohlgård
7835ab2be7
make: Move BOARD and CPU includes to Makefile.modules
7 years ago
Hauke Petersen
ebfc13c68d
boards: added CLOCK_CORECLOCK define to periph_conf
7 years ago
Hauke Petersen
b436219674
boards: removed F_CPU define from board.h
7 years ago
Hauke Petersen
db25206a58
boards: use default values for STDIO defines
7 years ago
Oleg Hahm
8243a153be
arduino-mega2560: fix pedantic compiler warnings
7 years ago
Hauke Petersen
ac2b9f2524
boards: changed module name to 'board'
7 years ago
Thomas Eichinger
72ee60b9d5
scripts: remove hardcoding of bash hashbang
...
For host systems like FreeBSD, bash binary is found in a different path.
7 years ago
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
7 years ago
René Herthel
13ae0ab979
atmega2560/cpu: Fixed wrong using of UART macros
7 years ago
Hauke Petersen
528e832c90
boards: cleaned up entries in Makefile.features
7 years ago
Hauke Petersen
18e364ae17
boards: removed deprecated HW_TIMER defines
7 years ago
Kaspar Schleiser
534290fb5b
board: arduino-mega2560: add xtimer configuration values
7 years ago
Hauke Petersen
8d89b95af5
boards: added missing periph_timer feature
7 years ago
Kaspar Schleiser
bd27feefec
cpu: atmega2560: simplify periph/timer implementation
7 years ago
René Herthel
d05151fdef
cpu/mega2560: initial import of a gpio driver
8 years ago
Kaspar Schleiser
fa0202ec99
board: arduino-mega2560: set default baudrate to 9600
8 years ago
Kaspar Schleiser
bec167c8d0
boards: arduino-mega2560/board.c: add myself as copyright holder
8 years ago
Kaspar Schleiser
73e15bdde1
atmega2560: remove uart0, adapt to uart_stdio
8 years ago
Oleg Hahm
cf2dd6656b
arduino_mega2560: correct uart prototypes
8 years ago