Classes | Macros | Typedefs | Functions | Variables
globals.h File Reference
#include <asf.h>
#include "../../../src/ISComm.h"
#include "../../../src/data_sets.h"
#include "../../../src/ISConstants.h"
#include "../../../hw-libs/misc/bootloaderShared.h"
#include "../../../hw-libs/misc/rtos.h"
#include "../../../hw-libs/drivers/d_usartDMA.h"
#include "drivers/d_time.h"
#include "conf_board.h"
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  date_time_t
 
struct  evb_msg_t
 
union  PACKED
 
union  PACKED
 

Macros

#define SKI_BOX_STATUS_LED_PIN   GPIO_10_PIN
 
#define STREAM_BUFFER_SIZE   4096
 
#define STREAM_INS_FOR_TIME_SYNC   1
 
#define UBLOX_LOG_ENABLE   0
 
#define USE_RTC_DATE_TIME   1
 

Typedefs

typedef PUSH_PACK_1 struct PACKED nvm_config_t
 
typedef struct PACKED nvr_manage_t
 
typedef void(* VoidFuncPtrVoid) (void)
 

Functions

void board_IO_config (void)
 
void com_bridge_apply_preset (evb_flash_cfg_t *cfg)
 
void com_bridge_forward (uint32_t srcPort, uint8_t *buf, int len)
 
void com_bridge_smart_forward (uint32_t srcPort, uint32_t ledPin)
 
int comRead (int serialNum, unsigned char *buf, int size, uint32_t ledPin)
 
int comWrite (int serialNum, const unsigned char *buf, int size, uint32_t ledPin)
 
int error_check_config (evb_flash_cfg_t *cfg)
 
void globals_init (void)
 
POP_PACK void init_set_board_IO_config_callback (VoidFuncPtrVoid fpIoCfg)
 
void nvr_init (void)
 
void nvr_slow_maintenance (void)
 
void nvr_validate_config_integrity (evb_flash_cfg_t *cfg)
 
void refresh_led_cfg (void)
 
void reset_config_defaults (evb_flash_cfg_t *cfg)
 

Variables

uint32_t g_comm_time_ms
 
debug_array_t g_debug
 
bool g_enRtosStats
 
dev_info_t g_evbDevInfo
 
evb_flash_cfg_tg_flashCfg
 
date_time_t g_gps_date_time
 
bool g_gpsTimeSync
 
uint8_t g_hdw_detect
 
bool g_loggerEnabled
 
evb_msg_t g_msg
 
nvr_manage_t g_nvr_manage_config
 
evb_rtos_info_t g_rtos
 
evb_status_t g_status
 
uint32_t g_uInsBootloaderEnableTimeMs
 
nvm_config_t g_userPage
 
wheel_encoder_t g_wheelEncoder
 

Macro Definition Documentation

◆ SKI_BOX_STATUS_LED_PIN

#define SKI_BOX_STATUS_LED_PIN   GPIO_10_PIN

Definition at line 33 of file globals.h.

◆ STREAM_BUFFER_SIZE

#define STREAM_BUFFER_SIZE   4096

Definition at line 82 of file globals.h.

◆ STREAM_INS_FOR_TIME_SYNC

#define STREAM_INS_FOR_TIME_SYNC   1

Definition at line 32 of file globals.h.

◆ UBLOX_LOG_ENABLE

#define UBLOX_LOG_ENABLE   0

Definition at line 34 of file globals.h.

◆ USE_RTC_DATE_TIME

#define USE_RTC_DATE_TIME   1

Definition at line 30 of file globals.h.

Typedef Documentation

◆ nvm_config_t

◆ nvr_manage_t

typedef struct PACKED nvr_manage_t

◆ VoidFuncPtrVoid

typedef void(* VoidFuncPtrVoid) (void)

Definition at line 36 of file globals.h.

Function Documentation

◆ board_IO_config()

void board_IO_config ( void  )

Definition at line 376 of file init.c.

◆ com_bridge_apply_preset()

void com_bridge_apply_preset ( evb_flash_cfg_t cfg)

Definition at line 147 of file globals.c.

◆ com_bridge_forward()

void com_bridge_forward ( uint32_t  srcPort,
uint8_t *  buf,
int  len 
)

Definition at line 753 of file communications.cpp.

◆ com_bridge_smart_forward()

void com_bridge_smart_forward ( uint32_t  srcPort,
uint32_t  ledPin 
)

Definition at line 637 of file communications.cpp.

◆ comRead()

int comRead ( int  serialNum,
unsigned char *  buf,
int  size,
uint32_t  ledPin 
)

Definition at line 72 of file communications.cpp.

◆ comWrite()

int comWrite ( int  serialNum,
const unsigned char *  buf,
int  size,
uint32_t  ledPin 
)

Definition at line 53 of file communications.cpp.

◆ error_check_config()

int error_check_config ( evb_flash_cfg_t cfg)

Definition at line 407 of file globals.c.

◆ globals_init()

void globals_init ( void  )

Definition at line 38 of file globals.c.

◆ init_set_board_IO_config_callback()

POP_PACK void init_set_board_IO_config_callback ( VoidFuncPtrVoid  fpIoCfg)

Definition at line 371 of file init.c.

◆ nvr_init()

void nvr_init ( void  )

Definition at line 300 of file globals.c.

◆ nvr_slow_maintenance()

void nvr_slow_maintenance ( void  )

Definition at line 322 of file globals.c.

◆ nvr_validate_config_integrity()

void nvr_validate_config_integrity ( evb_flash_cfg_t cfg)

Definition at line 275 of file globals.c.

◆ refresh_led_cfg()

void refresh_led_cfg ( void  )

Definition at line 355 of file init.c.

◆ reset_config_defaults()

void reset_config_defaults ( evb_flash_cfg_t cfg)

Definition at line 437 of file globals.c.

Variable Documentation

◆ g_comm_time_ms

uint32_t g_comm_time_ms

Definition at line 32 of file globals.c.

◆ g_debug

debug_array_t g_debug

Definition at line 26 of file globals.c.

◆ g_enRtosStats

bool g_enRtosStats

Definition at line 35 of file globals.c.

◆ g_evbDevInfo

dev_info_t g_evbDevInfo

Definition at line 19 of file globals.c.

◆ g_flashCfg

evb_flash_cfg_t* g_flashCfg

Definition at line 22 of file globals.c.

◆ g_gps_date_time

date_time_t g_gps_date_time

Definition at line 28 of file globals.c.

◆ g_gpsTimeSync

bool g_gpsTimeSync

Definition at line 31 of file globals.c.

◆ g_hdw_detect

uint8_t g_hdw_detect

◆ g_loggerEnabled

bool g_loggerEnabled

Definition at line 33 of file globals.c.

◆ g_msg

evb_msg_t g_msg

Definition at line 25 of file globals.c.

◆ g_nvr_manage_config

nvr_manage_t g_nvr_manage_config

Definition at line 23 of file globals.c.

◆ g_rtos

Definition at line 27 of file globals.c.

◆ g_status

evb_status_t g_status

Definition at line 21 of file globals.c.

◆ g_uInsBootloaderEnableTimeMs

uint32_t g_uInsBootloaderEnableTimeMs

Definition at line 34 of file globals.c.

◆ g_userPage

nvm_config_t g_userPage

Definition at line 24 of file globals.c.

◆ g_wheelEncoder

wheel_encoder_t g_wheelEncoder

Definition at line 20 of file globals.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59