mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 22:14:05 -06:00
sam3: Rename src/sam3x8e to src/sam3
This is in preparation for merging sam3 and sam4 code into one directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e70b70fb75
commit
70bbdf9334
12 changed files with 20 additions and 21 deletions
|
@ -25,7 +25,7 @@ choice
|
|||
endchoice
|
||||
|
||||
source "src/avr/Kconfig"
|
||||
source "src/sam3x8e/Kconfig"
|
||||
source "src/sam3/Kconfig"
|
||||
source "src/samd21/Kconfig"
|
||||
source "src/sam4e8e/Kconfig"
|
||||
source "src/lpc176x/Kconfig"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Kconfig settings for SAM3x8e processors
|
||||
# Kconfig settings for SAM3 processors
|
||||
|
||||
if MACH_SAM3X8E
|
||||
|
||||
|
@ -12,7 +12,7 @@ config SAM_SELECT
|
|||
|
||||
config BOARD_DIRECTORY
|
||||
string
|
||||
default "sam3x8e"
|
||||
default "sam3"
|
||||
|
||||
config CLOCK_FREQ
|
||||
int
|
|
@ -1,9 +1,9 @@
|
|||
# Additional sam3x8e build rules
|
||||
# Additional SAM3 build rules
|
||||
|
||||
# Setup the toolchain
|
||||
CROSS_PREFIX=arm-none-eabi-
|
||||
|
||||
dirs-y += src/sam3x8e src/generic
|
||||
dirs-y += src/sam3 src/generic
|
||||
dirs-y += lib/sam3x/gcc/gcc
|
||||
|
||||
CFLAGS += -mthumb -mcpu=cortex-m3 -falign-loops=16
|
||||
|
@ -15,13 +15,13 @@ CFLAGS_klipper.elf += -T lib/sam3x/gcc/gcc/sam3x8e_flash.ld
|
|||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||
|
||||
# Add source files
|
||||
src-y += sam3x8e/main.c sam3x8e/timer.c
|
||||
src-y += sam3x8e/gpio.c sam3x8e/adc.c sam3x8e/spi.c
|
||||
src-y += sam3/main.c sam3/timer.c
|
||||
src-y += sam3/gpio.c sam3/adc.c sam3/spi.c
|
||||
src-y += generic/crc16_ccitt.c generic/alloc.c
|
||||
src-y += generic/armcm_irq.c generic/timer_irq.c
|
||||
src-y += ../lib/sam3x/gcc/system_sam3xa.c
|
||||
src-y += ../lib/sam3x/gcc/gcc/startup_sam3xa.c
|
||||
src-$(CONFIG_SERIAL) += sam3x8e/serial.c generic/serial_irq.c
|
||||
src-$(CONFIG_SERIAL) += sam3/serial.c generic/serial_irq.c
|
||||
|
||||
# Build the additional hex output file
|
||||
target-y += $(OUT)klipper.bin
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef __SAM3X8E_GPIO_H
|
||||
#define __SAM3X8E_GPIO_H
|
||||
#ifndef __SAM3_GPIO_H
|
||||
#define __SAM3_GPIO_H
|
||||
|
||||
#include <stdint.h> // uint32_t
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue