kopia lustrzana https://github.com/SP8EBC/ParaTNC
make master time volatile
rodzic
6a4d8343b3
commit
7498ba2538
|
@ -10,7 +10,7 @@
|
||||||
#include "config_data.h"
|
#include "config_data.h"
|
||||||
|
|
||||||
#define SW_VER "EA20"
|
#define SW_VER "EA20"
|
||||||
#define SW_DATE "11042023"
|
#define SW_DATE "14042023"
|
||||||
#define SW_KISS_PROTO "A"
|
#define SW_KISS_PROTO "A"
|
||||||
|
|
||||||
#define SYSTICK_TICKS_PER_SECONDS 100
|
#define SYSTICK_TICKS_PER_SECONDS 100
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
extern uint32_t master_time;
|
extern volatile uint32_t master_time;
|
||||||
|
|
||||||
inline uint32_t main_get_master_time(void) {
|
inline uint32_t main_get_master_time(void) {
|
||||||
return master_time;
|
return master_time;
|
||||||
|
|
|
@ -164,7 +164,7 @@ const config_data_gsm_t * main_config_data_gsm = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! global variable incremented by the SysTick handler to measure time in miliseconds
|
//! 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
|
//! current timestamp from RTC in NVM format
|
||||||
uint32_t main_nvm_timestamp = 0;
|
uint32_t main_nvm_timestamp = 0;
|
||||||
|
|
Ładowanie…
Reference in New Issue