From 28628012bf43efcc963b1b2b4b0c34be972f43e3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Jul 2022 21:57:19 -0400 Subject: [PATCH] armcm_canboot: New file for CanBoot entry code Rename the existing armcm_boot.c file to armcm_canboot.c . This makes it easier to track changes between CanBoot and Klipper as the CanBoot entry code is notably different from the Klipper entry code. Signed-off-by: Kevin O'Connor --- src/generic/{armcm_boot.c => armcm_canboot.c} | 2 +- src/lpc176x/Makefile | 2 +- src/stm32/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/generic/{armcm_boot.c => armcm_canboot.c} (97%) diff --git a/src/generic/armcm_boot.c b/src/generic/armcm_canboot.c similarity index 97% rename from src/generic/armcm_boot.c rename to src/generic/armcm_canboot.c index 83a3de7..46a0fb6 100644 --- a/src/generic/armcm_boot.c +++ b/src/generic/armcm_canboot.c @@ -1,4 +1,4 @@ -// ARM Cortex-M vector table and initial bootup handling +// CanBoot specific entry code for ARM Cortex-M vector table and bootup // // Copyright (C) 2019 Kevin O'Connor // diff --git a/src/lpc176x/Makefile b/src/lpc176x/Makefile index 5a071aa..45e9fcc 100644 --- a/src/lpc176x/Makefile +++ b/src/lpc176x/Makefile @@ -13,7 +13,7 @@ $(OUT)canboot.elf: $(OUT)src/generic/armcm_link.ld # Add source files src-y += lpc176x/main.c lpc176x/gpio.c lpc176x/flash.c -src-y += generic/armcm_boot.c generic/armcm_irq.c +src-y += generic/armcm_canboot.c generic/armcm_irq.c src-y += generic/armcm_timer.c generic/crc16_ccitt.c src-y += ../lib/lpc176x/device/system_LPC17xx.c diff --git a/src/stm32/Makefile b/src/stm32/Makefile index 7d2fb4f..37dd8a5 100644 --- a/src/stm32/Makefile +++ b/src/stm32/Makefile @@ -26,7 +26,7 @@ $(OUT)canboot.elf: $(OUT)src/generic/armcm_link.ld # Add source files src-y += stm32/gpio.c stm32/flash.c stm32/clockline.c -src-y += generic/armcm_boot.c generic/armcm_irq.c generic/crc16_ccitt.c +src-y += generic/armcm_canboot.c generic/armcm_irq.c generic/crc16_ccitt.c src-$(CONFIG_MACH_STM32F0) += ../lib/stm32f0/system_stm32f0xx.c src-$(CONFIG_MACH_STM32F0) += stm32/stm32f0.c stm32/stm32f0_timer.c src-$(CONFIG_MACH_STM32F0) += stm32/gpioperiph.c