Fix #10: Moved static and global variablöes that are 0 initialized to CCMRAM in order to make room and increase performance.

This commit is contained in:
2020-08-18 19:57:13 +02:00
parent 64ef7b4a3c
commit 60e990632b
9 changed files with 25 additions and 21 deletions

View File

@@ -28,25 +28,26 @@
#include <cmsis/core_cm4.h>
#include <stm-periph/stm32-gpio-macros.h>
#include <stdlib.h>
#include <helper-macros/helper-macros.h>
#include <stm-periph/clock-enable-manager.h>
#include <reflow-controller/safety/safety-controller.h>
static float pt1000_offset;
static float pt1000_sens_dev;
static bool calibration_active;
static float filter_alpha;
static float IN_SECTION(.ccmram) pt1000_offset;
static float IN_SECTION(.ccmram) pt1000_sens_dev;
static bool IN_SECTION(.ccmram) calibration_active;
static float IN_SECTION(.ccmram) filter_alpha;
/**
* @brief Filtered PT1000 resistance value.
* @note This value is not yet calibrated. Use @ref adc_pt1000_get_current_resistance to get this value with calibration.
*/
static volatile float pt1000_res_raw_lf;
static volatile float IN_SECTION(.ccmram) pt1000_res_raw_lf;
static volatile int * volatile streaming_flag_ptr = NULL;
static uint32_t filter_startup_cnt;
static volatile float adc_pt1000_raw_reading_hf;
static uint32_t IN_SECTION(.ccmram) filter_startup_cnt;
static volatile float IN_SECTION(.ccmram) adc_pt1000_raw_reading_hf;
static volatile uint16_t dma_sample_buffer[ADC_PT1000_DMA_AVG_SAMPLES];
static volatile uint32_t adc_watchdog_counter = 0UL;
static volatile uint32_t IN_SECTION(.ccmram) adc_watchdog_counter = 0UL;
volatile float * volatile stream_buffer = NULL;
volatile uint32_t stream_count;