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

28 Commits

Author SHA1 Message Date
Marian Buschsieweke
015ee050f2
makefiles/tools/serial.inc.mk: Allow detection of debug adapter
Boards with an integrated debugger/programmer that also provides the
serial as UART <--> USB adapter, the TTY serial matches the serial of
the programmer.

This adapts the `serial.inc.mk` to set the `DEBUG_ADAPTER_ID` to the
TTY serial if (and only if) `MOST_RECENT_PORT` *and*
`DEBUG_ADAPTER_ID_IS_TTY_SERIAL` both have a value of `1`. Boards with
an integrated programmer are expected to set
`DEBUG_ADAPTER_ID_IS_TTY_SERIAL` to `1` in their `Makefile.include`.
2023-02-24 16:50:56 +01:00
Marian Buschsieweke
dadf22f07a
boards/arduino-mega2560: add TTY_BOARD_FILTER
This allows automatically selecting TTY actually belonging to an
Arduino Mega2560 if `MOST_RECENT_PORT=1` is set.

Note: Unless `ARDUINO_MEGA2560_COMPAT_WITH_CLONES` is set to `0`,
this will fall back to detecting any cheap USB UART bridge typically
found in Arduino Mega 2560 clones if no genuine Arduino Mega is found.
2022-12-11 18:58:19 +01:00
64b6314807
boards/atmega: cleanup BOOTLOADER variables definitions 2021-02-02 14:10:03 +01:00
f8822b5f8f
boards: remove not need PORT_LINUX/PORT_DARWIN
They defined the same in serial.inc.mk. Some Darwin default are changed because they are probably wrong
2020-12-02 09:20:57 +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
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
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
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
Hauke Petersen
0f155db499 boards/arduino-atmega: move shared code to common/arduino-atmega 2017-11-30 10:26:35 +01: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
Cenk Gündoğan
d853dd63c1 cpu: make CFLAGS_DBG configurable 2017-01-16 15:54:59 +01: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
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
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
pdNor
3f668a0c88 Change in avrdude argument 2016-03-22 21:46:17 +01:00
Joakim Nohlgård
d0033a5d20 avr: Use TARGET_ARCH instead of custom toolchain specification 2016-03-21 12:19:30 +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
fa0202ec99 board: arduino-mega2560: set default baudrate to 9600 2015-09-03 16:30:51 +02:00
Hinnerk van Bruinehsen
17fe3f4348 boards:mega2560: add debug and debug-server targets 2014-09-26 15:09:37 +02:00
Hinnerk van Bruinehsen
223e22ac1e board: arduino-mega2560: Initial import 2014-08-27 16:39:40 +02:00