From c6c3d4a04504a5361b402b086cb1f2cb94364fb6 Mon Sep 17 00:00:00 2001 From: Kevin Thomas Date: Sun, 5 Apr 2026 21:36:42 -0400 Subject: [PATCH] remove unused coprocessor driver from all CBM projects No project uses floating-point, so coprocessor_enable() was dead code. Removes rp2350_coprocessor.c/.h and all references from reset handlers and Makefiles across all 15 CBM drivers (0x01-0x0f). --- .../0x01_uart_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x01_uart_cbm/Makefile | 1 - .../0x01_uart_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x01_uart_cbm/Src/rp2350_reset_handler.c | 6 ++-- .../0x02_blink_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x02_blink_cbm/Makefile | 1 - .../0x02_blink_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x02_blink_cbm/Src/rp2350_reset_handler.c | 6 ++-- .../0x03_button_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x03_button_cbm/Makefile | 1 - .../0x03_button_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../Src/rp2350_reset_handler.c | 6 ++-- drivers/0x04_pwm_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x04_pwm_cbm/Makefile | 1 - drivers/0x04_pwm_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x04_pwm_cbm/Src/rp2350_reset_handler.c | 6 ++-- .../0x05_servo_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x05_servo_cbm/Makefile | 1 - .../0x05_servo_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x05_servo_cbm/Src/rp2350_reset_handler.c | 8 ++--- drivers/0x06_adc_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x06_adc_cbm/Makefile | 1 - drivers/0x06_adc_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x06_adc_cbm/Src/rp2350_reset_handler.c | 6 ++-- drivers/0x07_i2c_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x07_i2c_cbm/Makefile | 1 - drivers/0x07_i2c_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x07_i2c_cbm/Src/rp2350_reset_handler.c | 6 ++-- .../0x08_lcd1602_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x08_lcd1602_cbm/Makefile | 1 - .../0x08_lcd1602_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../Src/rp2350_reset_handler.c | 6 ++-- .../0x09_dht11_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x09_dht11_cbm/Makefile | 1 - .../0x09_dht11_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x09_dht11_cbm/Src/rp2350_reset_handler.c | 6 ++-- drivers/0x0a_ir_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0a_ir_cbm/Makefile | 1 - drivers/0x0a_ir_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x0a_ir_cbm/Src/rp2350_reset_handler.c | 6 ++-- drivers/0x0b_spi_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0b_spi_cbm/Makefile | 1 - drivers/0x0b_spi_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x0b_spi_cbm/Src/rp2350_reset_handler.c | 15 ++------ .../Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0c_multicore_cbm/Makefile | 1 - .../Src/rp2350_coprocessor.c | 34 ------------------- .../Src/rp2350_reset_handler.c | 6 ++-- .../0x0d_timer_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0d_timer_cbm/Makefile | 1 - .../0x0d_timer_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x0d_timer_cbm/Src/rp2350_reset_handler.c | 8 ++--- .../Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0e_watchdog_cbm/Makefile | 1 - .../Src/rp2350_coprocessor.c | 34 ------------------- .../Src/rp2350_reset_handler.c | 17 ++-------- .../0x0f_flash_cbm/Inc/rp2350_coprocessor.h | 33 ------------------ drivers/0x0f_flash_cbm/Makefile | 1 - .../0x0f_flash_cbm/Src/rp2350_coprocessor.c | 34 ------------------- .../0x0f_flash_cbm/Src/rp2350_reset_handler.c | 5 +-- 60 files changed, 32 insertions(+), 1101 deletions(-) delete mode 100644 drivers/0x01_uart_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x01_uart_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x02_blink_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x02_blink_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x03_button_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x03_button_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x04_pwm_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x04_pwm_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x05_servo_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x05_servo_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x06_adc_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x06_adc_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x07_i2c_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x07_i2c_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x08_lcd1602_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x08_lcd1602_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x09_dht11_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x09_dht11_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0a_ir_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0a_ir_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0b_spi_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0b_spi_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0c_multicore_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0c_multicore_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0d_timer_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0d_timer_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0e_watchdog_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0e_watchdog_cbm/Src/rp2350_coprocessor.c delete mode 100644 drivers/0x0f_flash_cbm/Inc/rp2350_coprocessor.h delete mode 100644 drivers/0x0f_flash_cbm/Src/rp2350_coprocessor.c diff --git a/drivers/0x01_uart_cbm/Inc/rp2350_coprocessor.h b/drivers/0x01_uart_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x01_uart_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x01_uart_cbm/Makefile b/drivers/0x01_uart_cbm/Makefile index ca237ea..d64d0d4 100644 --- a/drivers/0x01_uart_cbm/Makefile +++ b/drivers/0x01_uart_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/main.c \ $(SRC_DIR)/image_def.c diff --git a/drivers/0x01_uart_cbm/Src/rp2350_coprocessor.c b/drivers/0x01_uart_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x01_uart_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x01_uart_cbm/Src/rp2350_reset_handler.c b/drivers/0x01_uart_cbm/Src/rp2350_reset_handler.c index 8d6ca1a..e228a44 100644 --- a/drivers/0x01_uart_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x01_uart_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, and coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x02_blink_cbm/Inc/rp2350_coprocessor.h b/drivers/0x02_blink_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x02_blink_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x02_blink_cbm/Makefile b/drivers/0x02_blink_cbm/Makefile index 24d1b97..2b11db5 100644 --- a/drivers/0x02_blink_cbm/Makefile +++ b/drivers/0x02_blink_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_gpio.c \ $(SRC_DIR)/rp2350_led.c \ diff --git a/drivers/0x02_blink_cbm/Src/rp2350_coprocessor.c b/drivers/0x02_blink_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x02_blink_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x02_blink_cbm/Src/rp2350_reset_handler.c b/drivers/0x02_blink_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x02_blink_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x02_blink_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x03_button_cbm/Inc/rp2350_coprocessor.h b/drivers/0x03_button_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x03_button_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x03_button_cbm/Makefile b/drivers/0x03_button_cbm/Makefile index 216067d..0196fea 100644 --- a/drivers/0x03_button_cbm/Makefile +++ b/drivers/0x03_button_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_gpio.c \ $(SRC_DIR)/rp2350_led.c \ diff --git a/drivers/0x03_button_cbm/Src/rp2350_coprocessor.c b/drivers/0x03_button_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x03_button_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x03_button_cbm/Src/rp2350_reset_handler.c b/drivers/0x03_button_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x03_button_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x03_button_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x04_pwm_cbm/Inc/rp2350_coprocessor.h b/drivers/0x04_pwm_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x04_pwm_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x04_pwm_cbm/Makefile b/drivers/0x04_pwm_cbm/Makefile index bb920b1..a4e256d 100644 --- a/drivers/0x04_pwm_cbm/Makefile +++ b/drivers/0x04_pwm_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_pwm.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x04_pwm_cbm/Src/rp2350_coprocessor.c b/drivers/0x04_pwm_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x04_pwm_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x04_pwm_cbm/Src/rp2350_reset_handler.c b/drivers/0x04_pwm_cbm/Src/rp2350_reset_handler.c index 100f99f..29d6388 100644 --- a/drivers/0x04_pwm_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x04_pwm_cbm/Src/rp2350_reset_handler.c @@ -5,7 +5,7 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, PWM, coprocessor, then + * stack, XOSC, subsystem resets, UART, PWM, then * branches to main(). * ****************************************************************************** @@ -27,19 +27,17 @@ #include "rp2350_reset.h" #include "rp2350_uart.h" #include "rp2350_pwm.h" -#include "rp2350_coprocessor.h" extern int main(void); /** - * @brief Initialize late peripherals (PWM and coprocessor). + * @brief Initialize late peripherals (PWM release and init). * @retval None */ void _late_init(void) { pwm_release_reset(); pwm_init(); - coprocessor_enable(); } void __attribute__((naked, noreturn)) Reset_Handler(void) diff --git a/drivers/0x05_servo_cbm/Inc/rp2350_coprocessor.h b/drivers/0x05_servo_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x05_servo_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x05_servo_cbm/Makefile b/drivers/0x05_servo_cbm/Makefile index 24f5a22..85ec89e 100644 --- a/drivers/0x05_servo_cbm/Makefile +++ b/drivers/0x05_servo_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_servo.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x05_servo_cbm/Src/rp2350_coprocessor.c b/drivers/0x05_servo_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x05_servo_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x05_servo_cbm/Src/rp2350_reset_handler.c b/drivers/0x05_servo_cbm/Src/rp2350_reset_handler.c index edd4780..92552aa 100644 --- a/drivers/0x05_servo_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x05_servo_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, servo, coprocessor, - * then branches to main(). + * stack, XOSC, subsystem resets, UART, servo, then + * branches to main(). * ****************************************************************************** * @attention @@ -27,19 +27,17 @@ #include "rp2350_reset.h" #include "rp2350_uart.h" #include "rp2350_servo.h" -#include "rp2350_coprocessor.h" extern int main(void); /** - * @brief Initialize late peripherals (servo and coprocessor). + * @brief Initialize late peripherals (servo release and init). * @retval None */ void _late_init(void) { servo_release_reset(); servo_init(); - coprocessor_enable(); } void __attribute__((naked, noreturn)) Reset_Handler(void) diff --git a/drivers/0x06_adc_cbm/Inc/rp2350_coprocessor.h b/drivers/0x06_adc_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x06_adc_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x06_adc_cbm/Makefile b/drivers/0x06_adc_cbm/Makefile index 7930990..a7fd712 100644 --- a/drivers/0x06_adc_cbm/Makefile +++ b/drivers/0x06_adc_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_adc.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x06_adc_cbm/Src/rp2350_coprocessor.c b/drivers/0x06_adc_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x06_adc_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x06_adc_cbm/Src/rp2350_reset_handler.c b/drivers/0x06_adc_cbm/Src/rp2350_reset_handler.c index af4c51f..eac8526 100644 --- a/drivers/0x06_adc_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x06_adc_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, ADC, coprocessor, - * then branches to main(). + * stack, XOSC, subsystem resets, UART, ADC, then + * branches to main(). * ****************************************************************************** * @attention @@ -27,7 +27,6 @@ #include "rp2350_reset.h" #include "rp2350_uart.h" #include "rp2350_adc.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -40,7 +39,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x07_i2c_cbm/Inc/rp2350_coprocessor.h b/drivers/0x07_i2c_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x07_i2c_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x07_i2c_cbm/Makefile b/drivers/0x07_i2c_cbm/Makefile index d589326..97274d8 100644 --- a/drivers/0x07_i2c_cbm/Makefile +++ b/drivers/0x07_i2c_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_i2c.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x07_i2c_cbm/Src/rp2350_coprocessor.c b/drivers/0x07_i2c_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x07_i2c_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x07_i2c_cbm/Src/rp2350_reset_handler.c b/drivers/0x07_i2c_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x07_i2c_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x07_i2c_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x08_lcd1602_cbm/Inc/rp2350_coprocessor.h b/drivers/0x08_lcd1602_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x08_lcd1602_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x08_lcd1602_cbm/Makefile b/drivers/0x08_lcd1602_cbm/Makefile index 1957147..528c32b 100644 --- a/drivers/0x08_lcd1602_cbm/Makefile +++ b/drivers/0x08_lcd1602_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_i2c.c \ $(SRC_DIR)/rp2350_lcd1602.c \ diff --git a/drivers/0x08_lcd1602_cbm/Src/rp2350_coprocessor.c b/drivers/0x08_lcd1602_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x08_lcd1602_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x08_lcd1602_cbm/Src/rp2350_reset_handler.c b/drivers/0x08_lcd1602_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x08_lcd1602_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x08_lcd1602_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x09_dht11_cbm/Inc/rp2350_coprocessor.h b/drivers/0x09_dht11_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x09_dht11_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x09_dht11_cbm/Makefile b/drivers/0x09_dht11_cbm/Makefile index db4eba0..dd35b17 100644 --- a/drivers/0x09_dht11_cbm/Makefile +++ b/drivers/0x09_dht11_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_dht11.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x09_dht11_cbm/Src/rp2350_coprocessor.c b/drivers/0x09_dht11_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x09_dht11_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x09_dht11_cbm/Src/rp2350_reset_handler.c b/drivers/0x09_dht11_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x09_dht11_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x09_dht11_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x0a_ir_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0a_ir_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0a_ir_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0a_ir_cbm/Makefile b/drivers/0x0a_ir_cbm/Makefile index 333e523..785bf61 100644 --- a/drivers/0x0a_ir_cbm/Makefile +++ b/drivers/0x0a_ir_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_ir.c \ $(SRC_DIR)/main.c \ diff --git a/drivers/0x0a_ir_cbm/Src/rp2350_coprocessor.c b/drivers/0x0a_ir_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0a_ir_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0a_ir_cbm/Src/rp2350_reset_handler.c b/drivers/0x0a_ir_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x0a_ir_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0a_ir_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x0b_spi_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0b_spi_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0b_spi_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0b_spi_cbm/Makefile b/drivers/0x0b_spi_cbm/Makefile index d211907..44a8bc1 100644 --- a/drivers/0x0b_spi_cbm/Makefile +++ b/drivers/0x0b_spi_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_spi.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x0b_spi_cbm/Src/rp2350_coprocessor.c b/drivers/0x0b_spi_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0b_spi_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0b_spi_cbm/Src/rp2350_reset_handler.c b/drivers/0x0b_spi_cbm/Src/rp2350_reset_handler.c index e01b866..c6da9f2 100644 --- a/drivers/0x0b_spi_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0b_spi_cbm/Src/rp2350_reset_handler.c @@ -5,7 +5,7 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then + * stack, XOSC, subsystem resets, SPI, UART, then * branches to main(). * ****************************************************************************** @@ -27,20 +27,9 @@ #include "rp2350_reset.h" #include "rp2350_spi.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); -/** - * @brief Initialize late peripherals (SPI reset and coprocessor). - * @retval None - */ -void _late_init(void) -{ - spi_release_reset(); - coprocessor_enable(); -} - void __attribute__((naked, noreturn)) Reset_Handler(void) { __asm__ volatile ( @@ -48,9 +37,9 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl xosc_init\n\t" "bl xosc_enable_peri_clk\n\t" "bl reset_init_subsystem\n\t" + "bl spi_release_reset\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl _late_init\n\t" "b main\n\t" ); } diff --git a/drivers/0x0c_multicore_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0c_multicore_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0c_multicore_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0c_multicore_cbm/Makefile b/drivers/0x0c_multicore_cbm/Makefile index aa156a8..7ea98b4 100644 --- a/drivers/0x0c_multicore_cbm/Makefile +++ b/drivers/0x0c_multicore_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_multicore.c \ $(SRC_DIR)/rp2350_delay.c \ diff --git a/drivers/0x0c_multicore_cbm/Src/rp2350_coprocessor.c b/drivers/0x0c_multicore_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0c_multicore_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0c_multicore_cbm/Src/rp2350_reset_handler.c b/drivers/0x0c_multicore_cbm/Src/rp2350_reset_handler.c index 24287ee..e228a44 100644 --- a/drivers/0x0c_multicore_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0c_multicore_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, coprocessor, then - * branches to main(). + * stack, XOSC, subsystem resets, UART, then branches + * to main(). * ****************************************************************************** * @attention @@ -26,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -39,7 +38,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); } diff --git a/drivers/0x0d_timer_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0d_timer_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0d_timer_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0d_timer_cbm/Makefile b/drivers/0x0d_timer_cbm/Makefile index 08997df..7f1cfe4 100644 --- a/drivers/0x0d_timer_cbm/Makefile +++ b/drivers/0x0d_timer_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_delay.c \ $(SRC_DIR)/rp2350_timer.c \ diff --git a/drivers/0x0d_timer_cbm/Src/rp2350_coprocessor.c b/drivers/0x0d_timer_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0d_timer_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0d_timer_cbm/Src/rp2350_reset_handler.c b/drivers/0x0d_timer_cbm/Src/rp2350_reset_handler.c index cbbb213..1cceba6 100644 --- a/drivers/0x0d_timer_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0d_timer_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, TIMER0 tick generator, - * coprocessor, then branches to main(). + * stack, XOSC, subsystem resets, UART, TIMER0 tick + * generator, then branches to main(). * ****************************************************************************** * @attention @@ -27,19 +27,17 @@ #include "rp2350_reset.h" #include "rp2350_uart.h" #include "rp2350_timer.h" -#include "rp2350_coprocessor.h" extern int main(void); /** - * @brief Initialize late peripherals (timer tick and coprocessor). + * @brief Initialize late peripherals (timer release and tick init). * @retval None */ void _late_init(void) { timer_release_reset(); timer_tick_init(); - coprocessor_enable(); } void __attribute__((naked, noreturn)) Reset_Handler(void) diff --git a/drivers/0x0e_watchdog_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0e_watchdog_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0e_watchdog_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0e_watchdog_cbm/Makefile b/drivers/0x0e_watchdog_cbm/Makefile index 9d0be1b..7d84234 100644 --- a/drivers/0x0e_watchdog_cbm/Makefile +++ b/drivers/0x0e_watchdog_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_delay.c \ $(SRC_DIR)/rp2350_watchdog.c \ diff --git a/drivers/0x0e_watchdog_cbm/Src/rp2350_coprocessor.c b/drivers/0x0e_watchdog_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0e_watchdog_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0e_watchdog_cbm/Src/rp2350_reset_handler.c b/drivers/0x0e_watchdog_cbm/Src/rp2350_reset_handler.c index 70aae11..f5666ef 100644 --- a/drivers/0x0e_watchdog_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0e_watchdog_cbm/Src/rp2350_reset_handler.c @@ -5,8 +5,8 @@ * @brief Reset handler implementation for RP2350. * * Entry point after power-on or system reset. Initializes the - * stack, XOSC, subsystem resets, UART, watchdog tick generator, - * coprocessor, then branches to main(). + * stack, XOSC, subsystem resets, UART, watchdog tick + * generator, then branches to main(). * ****************************************************************************** * @attention @@ -27,20 +27,9 @@ #include "rp2350_reset.h" #include "rp2350_uart.h" #include "rp2350_watchdog.h" -#include "rp2350_coprocessor.h" extern int main(void); -/** - * @brief Initialize late peripherals (watchdog tick and coprocessor). - * @retval None - */ -void _late_init(void) -{ - watchdog_tick_init(); - coprocessor_enable(); -} - void __attribute__((naked, noreturn)) Reset_Handler(void) { __asm__ volatile ( @@ -50,7 +39,7 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl _late_init\n\t" + "bl watchdog_tick_init\n\t" "b main\n\t" ); } diff --git a/drivers/0x0f_flash_cbm/Inc/rp2350_coprocessor.h b/drivers/0x0f_flash_cbm/Inc/rp2350_coprocessor.h deleted file mode 100644 index 6e26fa0..0000000 --- a/drivers/0x0f_flash_cbm/Inc/rp2350_coprocessor.h +++ /dev/null @@ -1,33 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.h - * @author Kevin Thomas - * @brief Coprocessor access control driver header for RP2350. - * - * Enables coprocessor access via the CPACR register. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#ifndef __RP2350_COPROCESSOR_H -#define __RP2350_COPROCESSOR_H - -#include "rp2350.h" - -/** - * @brief Enable coprocessor access via CPACR with DSB/ISB barriers. - * @retval None - */ -void coprocessor_enable(void); - -#endif /* __RP2350_COPROCESSOR_H */ diff --git a/drivers/0x0f_flash_cbm/Makefile b/drivers/0x0f_flash_cbm/Makefile index b507680..a7ddf0b 100644 --- a/drivers/0x0f_flash_cbm/Makefile +++ b/drivers/0x0f_flash_cbm/Makefile @@ -36,7 +36,6 @@ SRCS = $(SRC_DIR)/vector_table.c \ $(SRC_DIR)/rp2350_stack.c \ $(SRC_DIR)/rp2350_xosc.c \ $(SRC_DIR)/rp2350_reset.c \ - $(SRC_DIR)/rp2350_coprocessor.c \ $(SRC_DIR)/rp2350_uart.c \ $(SRC_DIR)/rp2350_flash.c \ $(SRC_DIR)/main.c \ diff --git a/drivers/0x0f_flash_cbm/Src/rp2350_coprocessor.c b/drivers/0x0f_flash_cbm/Src/rp2350_coprocessor.c deleted file mode 100644 index b637b36..0000000 --- a/drivers/0x0f_flash_cbm/Src/rp2350_coprocessor.c +++ /dev/null @@ -1,34 +0,0 @@ -/** - ****************************************************************************** - * @file rp2350_coprocessor.c - * @author Kevin Thomas - * @brief Coprocessor access control driver implementation for RP2350. - * - * Grants access to coprocessors 0 and 1 by setting the - * corresponding bits in CPACR with DSB/ISB barriers. - * - ****************************************************************************** - * @attention - * - * Copyright (c) 2026 Kevin Thomas. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ - -#include "rp2350_coprocessor.h" - -void coprocessor_enable(void) -{ - uint32_t value; - value = *CPACR; - value |= (1U << CPACR_CP1_SHIFT); - value |= (1U << CPACR_CP0_SHIFT); - *CPACR = value; - __asm__ volatile ("dsb"); - __asm__ volatile ("isb"); -} diff --git a/drivers/0x0f_flash_cbm/Src/rp2350_reset_handler.c b/drivers/0x0f_flash_cbm/Src/rp2350_reset_handler.c index 811cef1..6c7b626 100644 --- a/drivers/0x0f_flash_cbm/Src/rp2350_reset_handler.c +++ b/drivers/0x0f_flash_cbm/Src/rp2350_reset_handler.c @@ -6,8 +6,7 @@ * * Entry point after power-on or system reset. Copies the * .data section from flash to RAM, initializes the stack, - * XOSC, subsystem resets, UART, coprocessor, then branches - * to main(). + * XOSC, subsystem resets, UART, then branches to main(). * ****************************************************************************** * @attention @@ -27,7 +26,6 @@ #include "rp2350_xosc.h" #include "rp2350_reset.h" #include "rp2350_uart.h" -#include "rp2350_coprocessor.h" extern int main(void); @@ -77,7 +75,6 @@ void __attribute__((naked, noreturn)) Reset_Handler(void) "bl reset_init_subsystem\n\t" "bl uart_release_reset\n\t" "bl uart_init\n\t" - "bl coprocessor_enable\n\t" "b main\n\t" ); }