make master time volatile

master
Mateusz Lubecki 2023-04-14 21:45:00 +02:00
rodzic 6a4d8343b3
commit 7498ba2538
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -10,7 +10,7 @@
#include "config_data.h"
#define SW_VER "EA20"
#define SW_DATE "11042023"
#define SW_DATE "14042023"
#define SW_KISS_PROTO "A"
#define SYSTICK_TICKS_PER_SECONDS 100

Wyświetl plik

@ -10,7 +10,7 @@
#include <stdint.h>
extern uint32_t master_time;
extern volatile uint32_t master_time;
inline uint32_t main_get_master_time(void) {
return master_time;

Wyświetl plik

@ -164,7 +164,7 @@ const config_data_gsm_t * main_config_data_gsm = 0;
#endif
//! global variable incremented by the SysTick handler to measure time in miliseconds
uint32_t master_time = 0;
volatile uint32_t master_time = 0;
//! current timestamp from RTC in NVM format
uint32_t main_nvm_timestamp = 0;