From 92f4e2060c28263cc37948d51319ab6e2213c647 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Wed, 20 Apr 2022 21:19:07 +1000 Subject: [PATCH] Silence --- source/Core/BSP/Magic/IRQ.cpp | 12 ++---------- source/Core/Drivers/USBPD.cpp | 2 -- source/Core/Src/main.cpp | 1 - source/Core/Threads/MOVThread.cpp | 1 - source/Core/Threads/PIDThread.cpp | 1 - source/Core/Threads/POWThread.cpp | 1 - 6 files changed, 2 insertions(+), 16 deletions(-) diff --git a/source/Core/BSP/Magic/IRQ.cpp b/source/Core/BSP/Magic/IRQ.cpp index 98034412..c1350c79 100644 --- a/source/Core/BSP/Magic/IRQ.cpp +++ b/source/Core/BSP/Magic/IRQ.cpp @@ -25,7 +25,6 @@ history ADC_Temp; history ADC_Tip; void adc_fifo_irq(void) { - MSG((char *)"ADC IRQ\r\n"); if (ADC_GetIntStatus(ADC_INT_FIFO_READY) == SET) { // Read out all entries in the fifo const uint8_t cnt = ADC_Get_FIFO_Count(); @@ -64,16 +63,9 @@ volatile uint8_t pendingPWM = 200; volatile bool lastPeriodWasFast = false; // Timer 0 is used to co-ordinate the ADC and the output PWM -void timer0_comp0_callback(void) { - MSG((char *)"Timer CMP0\r\n"); - ADC_Start(); -} -void timer0_comp1_callback(void) { - MSG((char *)"Timer CMP1\r\n"); - PWM_Channel_Disable(PWM_Channel); -} +void timer0_comp0_callback(void) { ADC_Start(); } +void timer0_comp1_callback(void) { PWM_Channel_Disable(PWM_Channel); } void timer0_comp2_callback(void) { - MSG((char *)"Timer CMP2\r\n"); // This occurs at timer rollover, so if we want to turn on the output PWM; we do so if (PWMSafetyTimer) { PWMSafetyTimer--; diff --git a/source/Core/Drivers/USBPD.cpp b/source/Core/Drivers/USBPD.cpp index 1c404cad..d2d37777 100644 --- a/source/Core/Drivers/USBPD.cpp +++ b/source/Core/Drivers/USBPD.cpp @@ -61,11 +61,9 @@ bool USBPowerDelivery::negotiationComplete() { } bool USBPowerDelivery::fusbPresent() { if (detectionState == 0) { - MSG((char *)"FUSB Probe\r\n"); if (fusb.fusb_read_id()) { detectionState = 1; } - MSG((char *)"FUSB Probe - %d\r\n", detectionState); } return detectionState == 1; } diff --git a/source/Core/Src/main.cpp b/source/Core/Src/main.cpp index 6921cd8a..02f55143 100644 --- a/source/Core/Src/main.cpp +++ b/source/Core/Src/main.cpp @@ -45,7 +45,6 @@ int main(void) { setTipX10Watts(0); // force tip off - MSG((char *)"main\r\n"); resetWatchdog(); /* Create the thread(s) */ diff --git a/source/Core/Threads/MOVThread.cpp b/source/Core/Threads/MOVThread.cpp index 457617d1..9fe832fa 100644 --- a/source/Core/Threads/MOVThread.cpp +++ b/source/Core/Threads/MOVThread.cpp @@ -118,7 +118,6 @@ inline void readAccelerometer(int16_t &tx, int16_t &ty, int16_t &tz, Orientation } } void startMOVTask(void const *argument __unused) { - MSG((char *)"startMOVTask\r\n"); osDelay(TICKS_100MS / 5); // This is here as the BMA doesnt start up instantly and can wedge the I2C bus if probed too fast after boot detectAccelerometerVersion(); osDelay(TICKS_100MS / 2); // wait ~50ms for setup of accel to finalise diff --git a/source/Core/Threads/PIDThread.cpp b/source/Core/Threads/PIDThread.cpp index efa36934..9e3d37b3 100644 --- a/source/Core/Threads/PIDThread.cpp +++ b/source/Core/Threads/PIDThread.cpp @@ -30,7 +30,6 @@ static int32_t getX10WattageLimits(); /* StartPIDTask function */ void startPIDTask(void const *argument __unused) { - MSG((char *)"startPIDTask\r\n"); /* * We take the current tip temperature & evaluate the next step for the tip * control PWM. diff --git a/source/Core/Threads/POWThread.cpp b/source/Core/Threads/POWThread.cpp index d8638816..c7e41796 100644 --- a/source/Core/Threads/POWThread.cpp +++ b/source/Core/Threads/POWThread.cpp @@ -25,7 +25,6 @@ void startPOWTask(void const *argument __unused) { postRToSInit(); // You have to run this once we are willing to answer PD messages // Setting up too early can mean that we miss the ~20ms window to respond on some chargers - MSG((char *)"POW_PD\r\n"); #if POW_PD USBPowerDelivery::start(); // Crank the handle at boot until we are stable and waiting for IRQ