make convenience pointer to global structs const
This commit is contained in:
parent
679d4534cb
commit
f60545f664
@ -58,11 +58,8 @@ static void setup_nvic_priorities()
|
|||||||
NVIC_SetPriority(DMA2_Stream7_IRQn, 3);
|
NVIC_SetPriority(DMA2_Stream7_IRQn, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process parameters are defined static globally to be watched in debugger from any context */
|
|
||||||
static float target_temperature;
|
|
||||||
|
|
||||||
FATFS fs;
|
FATFS fs;
|
||||||
FATFS *fs_ptr = &fs;
|
FATFS * const fs_ptr = &fs;
|
||||||
|
|
||||||
static inline void uart_gpio_config()
|
static inline void uart_gpio_config()
|
||||||
{
|
{
|
||||||
@ -209,8 +206,6 @@ int main()
|
|||||||
uint64_t quarter_sec_timestamp = 0ULL;
|
uint64_t quarter_sec_timestamp = 0ULL;
|
||||||
enum safety_adc_check_result safety_adc_status;
|
enum safety_adc_check_result safety_adc_status;
|
||||||
|
|
||||||
target_temperature = 25.0f;
|
|
||||||
|
|
||||||
zero_ccm_ram();
|
zero_ccm_ram();
|
||||||
setup_system();
|
setup_system();
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
static char __attribute__((section(".ccmram"))) display_buffer[4][21] = {0};
|
static char __attribute__((section(".ccmram"))) display_buffer[4][21] = {0};
|
||||||
static struct lcd_menu reflow_menu;
|
static struct lcd_menu reflow_menu;
|
||||||
static struct lcd_menu *reflow_menu_ptr = &reflow_menu;
|
static struct lcd_menu * const reflow_menu_ptr = &reflow_menu;
|
||||||
|
|
||||||
static void update_display_buffer(uint8_t row, const char *data)
|
static void update_display_buffer(uint8_t row, const char *data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user