From 45f4545ae9be2663660333acc134b7c260a3f830 Mon Sep 17 00:00:00 2001 From: zykrahgaming Date: Thu, 30 Dec 2021 14:56:36 +1100 Subject: [PATCH] Updated chibios version in chconf.h, readded some lines that were accidentally removed --- testhal/RP/RP2040/RT-RP2040-PICO-ADC/cfg/chconf.h | 2 +- testhal/RP/RP2040/RT-RP2040-PICO-HID/cfg/chconf.h | 10 +++++++++- .../RP/RP2040/RT-RP2040-PICO-I2C-24AA01/cfg/chconf.h | 2 +- testhal/RP/RP2040/RT-RP2040-PICO-SERIAL/cfg/chconf.h | 10 +++++++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/testhal/RP/RP2040/RT-RP2040-PICO-ADC/cfg/chconf.h b/testhal/RP/RP2040/RT-RP2040-PICO-ADC/cfg/chconf.h index 175f458f..cfd15eda 100644 --- a/testhal/RP/RP2040/RT-RP2040-PICO-ADC/cfg/chconf.h +++ b/testhal/RP/RP2040/RT-RP2040-PICO-ADC/cfg/chconf.h @@ -29,7 +29,7 @@ #define CHCONF_H #define _CHIBIOS_RT_CONF_ -#define _CHIBIOS_RT_CONF_VER_7_0_ +#define _CHIBIOS_RT_CONF_VER_8_0_ /*===========================================================================*/ /** diff --git a/testhal/RP/RP2040/RT-RP2040-PICO-HID/cfg/chconf.h b/testhal/RP/RP2040/RT-RP2040-PICO-HID/cfg/chconf.h index 175f458f..6f9388ce 100644 --- a/testhal/RP/RP2040/RT-RP2040-PICO-HID/cfg/chconf.h +++ b/testhal/RP/RP2040/RT-RP2040-PICO-HID/cfg/chconf.h @@ -29,7 +29,7 @@ #define CHCONF_H #define _CHIBIOS_RT_CONF_ -#define _CHIBIOS_RT_CONF_VER_7_0_ +#define _CHIBIOS_RT_CONF_VER_8_0_ /*===========================================================================*/ /** @@ -835,6 +835,14 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ +#ifdef USB_DEBUG +#include + +extern void process_command(uint32_t message); + +#define PORT_HANDLE_FIFO_MESSAGE(core, message) \ + if (core == 0U) { process_command(message); } +#endif /* USB_DEBUG */ #endif /* CHCONF_H */ diff --git a/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/cfg/chconf.h b/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/cfg/chconf.h index 175f458f..cfd15eda 100644 --- a/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/cfg/chconf.h +++ b/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/cfg/chconf.h @@ -29,7 +29,7 @@ #define CHCONF_H #define _CHIBIOS_RT_CONF_ -#define _CHIBIOS_RT_CONF_VER_7_0_ +#define _CHIBIOS_RT_CONF_VER_8_0_ /*===========================================================================*/ /** diff --git a/testhal/RP/RP2040/RT-RP2040-PICO-SERIAL/cfg/chconf.h b/testhal/RP/RP2040/RT-RP2040-PICO-SERIAL/cfg/chconf.h index 175f458f..6f9388ce 100644 --- a/testhal/RP/RP2040/RT-RP2040-PICO-SERIAL/cfg/chconf.h +++ b/testhal/RP/RP2040/RT-RP2040-PICO-SERIAL/cfg/chconf.h @@ -29,7 +29,7 @@ #define CHCONF_H #define _CHIBIOS_RT_CONF_ -#define _CHIBIOS_RT_CONF_VER_7_0_ +#define _CHIBIOS_RT_CONF_VER_8_0_ /*===========================================================================*/ /** @@ -835,6 +835,14 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ +#ifdef USB_DEBUG +#include + +extern void process_command(uint32_t message); + +#define PORT_HANDLE_FIFO_MESSAGE(core, message) \ + if (core == 0U) { process_command(message); } +#endif /* USB_DEBUG */ #endif /* CHCONF_H */