Kevin O'Connor
4b77f29c1b
atsamd: Add support CANbus on ATSAME5x chips
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:28:27 -04:00
Kevin O'Connor
bdf79caac4
atsamd: Add Kconfig definitions for same51j19 and same54p20 chips
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor
69bd26b757
lib: Add atmel same51 and same54 build definitions
...
This also replaces the samd51 component files with the definitions
from the same54 repository.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor
960fd0b1f3
lib: Remove unused gcc/ directories from samd21 and samd51 directories
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-10-13 11:27:14 -04:00
Kevin O'Connor
2692e493c8
atsamd: Remove gcc -mfpu=fpv4-sp-d16 floating point option
...
The floating point unit must be enabled in order to use it and Klipper
does not currently implement that. Newer versions of gcc may spill
registers to the floating point unit causing failures.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-10-30 01:05:47 -04:00
Kevin O'Connor
d7ec5505a6
atsamd: Enable chipid as usb serial number
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-11-25 19:30:31 -05:00
Kevin O'Connor
1a69f38e6e
flash_usb: Pass -t $CONFIG_MCU to flash_usb on all targets
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-10-26 18:48:00 -04:00
Kevin O'Connor
538d6ac3a2
flash_usb: Use "-s" option to specify flash offset on atsamd
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-10-26 18:33:00 -04:00
Kevin O'Connor
1c6a8267f9
armcm_reset: Add a new helper file defining command_reset()
...
Add a generic ARM Cortex-M implementation of the "reset" command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-09-18 11:59:43 -04:00
Kevin O'Connor
caeb610bb9
armcm_link: Rename armcm_boot.lds.S to armcm_link.lds.S
...
Rename the linker script so the build does not have any conflicts with
the armcm_boot.d dependency file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-08-22 13:18:24 -04:00
Kevin O'Connor
6338f6a5f0
atsamd: Update code to use armcm_boot mechanism
...
Replace the custom linker scripts with the src/generic/armcm_boot.c
mechanism.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-08-22 09:58:58 -04:00
Kevin O'Connor
351910c5ac
Makefile: Add generic rule for precompiling linker scripts
...
Add a general build rule to precompile *.lds.S files to *.ld files.
Remove the custom rules in src/atsamd/Makefile and src/stm32/Makefile.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-08-21 12:31:12 -04:00
Kevin O'Connor
6a16e1f4c5
atsamd: Add support to "make flash" to automatically enter the bootloader
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-08 22:22:41 -05:00
Kevin O'Connor
399d539969
Makefile: Reduce use of $^ in build rules
...
It's rare to use all of a target's prerequisites in a recipe - replace
most cases with $< (the target's first prerequisite).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-02 12:01:44 -05:00
Kevin O'Connor
0b33e0b427
atsamd: Implement custom memory allocation functions
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-01 19:05:00 -05:00
Kevin O'Connor
fbef144e7b
atsamd: Use CONFIG_MCU in Makefile
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-01 19:03:34 -05:00
Kevin O'Connor
d33c4820bd
atsamd: Use local linker script
...
Use a local linker script instead of the linker script provided by
Atmel. This will allow Klipper to use dynamic memory allocation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-01 19:03:34 -05:00
Kevin O'Connor
c8d7e28a35
atsamd: Add support for programming SERCOM pins
...
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-03-01 00:40:44 -05:00
Kevin O'Connor
52eef84228
atsamd: Fix typo in Makefile
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-02-16 07:57:30 -05:00
Kevin O'Connor
00e0a70a94
atsamd: Move watchdog code to its own files
...
Move the watchdog code from main.c to watchdog.c and
samd51_watchdog.c.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-02-15 22:10:41 -05:00
Kevin O'Connor
26fb421d59
atsamd: Convert SAMD51 to use armcm_timer
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-02-06 22:03:09 -05:00
Kevin O'Connor
8cd83b4c2d
atsamd: Initial support for SAMD51
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-01-28 20:02:16 -05:00
Florian Heilmann
6256599a6d
src: Rename source folders for atsam and atsamd architectures
...
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2019-01-12 20:14:50 -05:00