Change linker script and startup code.
This is my own code from my template. It is much cleaner than the old code.
This commit is contained in:
@@ -32,22 +32,22 @@
|
||||
#include <stm-periph/clock-enable-manager.h>
|
||||
#include <reflow-controller/safety/safety-controller.h>
|
||||
|
||||
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;
|
||||
static float IN_SECTION(.ccm.bss) pt1000_offset;
|
||||
static float IN_SECTION(.ccm.bss) pt1000_sens_dev;
|
||||
static bool IN_SECTION(.ccm.bss) calibration_active;
|
||||
static float IN_SECTION(.ccm.bss) 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 IN_SECTION(.ccmram) pt1000_res_raw_lf;
|
||||
static volatile float IN_SECTION(.ccm.bss) pt1000_res_raw_lf;
|
||||
|
||||
static volatile int * volatile streaming_flag_ptr = NULL;
|
||||
static uint32_t IN_SECTION(.ccmram) filter_startup_cnt;
|
||||
static volatile float IN_SECTION(.ccmram) adc_pt1000_raw_reading_hf;
|
||||
static uint32_t IN_SECTION(.ccm.bss) filter_startup_cnt;
|
||||
static volatile float IN_SECTION(.ccm.bss) adc_pt1000_raw_reading_hf;
|
||||
static volatile uint16_t dma_sample_buffer[ADC_PT1000_DMA_AVG_SAMPLES];
|
||||
static volatile uint32_t IN_SECTION(.ccmram) adc_watchdog_counter = 0UL;
|
||||
static volatile uint32_t IN_SECTION(.ccm.bss) adc_watchdog_counter = 0UL;
|
||||
|
||||
volatile float * volatile stream_buffer = NULL;
|
||||
volatile uint32_t stream_count;
|
||||
|
Reference in New Issue
Block a user