14 #include "../../../src/ISUtilities.h" 15 #include "../../../src/ISLogger.h" 26 #define printf_mutex(...) 152 std::string ubloxFile = (logger.
LogDirectory() +
"/raw_ublox.ubx");
157 s_ubloxLog->
write(dataPtr, dataSize);
167 static uint32_t timeOfWeekMsLast=0;
177 #if USE_RTC_DATE_TIME // use RTC 208 if( status != statusLast )
235 memset(&s_fs, 0,
sizeof(
FATFS));
244 #if USE_RTC_DATE_TIME uint32_t rtc_set_time(Rtc *p_rtc, uint32_t ul_hour, uint32_t ul_minute, uint32_t ul_second)
Set the RTC time value.
#define LUN_ID_SD_MMC_0_MEM
bool InitSave(eLogType logType=LOGTYPE_DAT, const string &directory=g_emptyString, int numDevices=1, float maxDiskSpacePercent=0.5f, uint32_t maxFileSize=1024 *1024 *5, bool useSubFolderTimestamp=true)
void sd_card_maintenance(void)
Ctrl_status sd_mmc_test_unit_ready(uint8_t slot)
Tests the memory state and initializes the memory if required.
uint32_t dateToWeekDay(uint32_t ul_year, uint32_t ul_month, uint32_t ul_day)
void rtc_get_time(Rtc *p_rtc, uint32_t *pul_hour, uint32_t *pul_minute, uint32_t *pul_second)
Get the RTC time value.
#define RTC_CR_UPDCAL
(RTC_CR) Update Request Calendar Register
static void stop_logger(cISLogger &logger, is_comm_instance_t &comm)
static int s_enableLogger
rtos_task_t task[UINS_RTOS_NUM_TASKS]
void evbUiRefreshLedLog()
static bool s_sd_card_ready
void refresh_led_log(void)
void EnableLogging(bool enabled)
#define printf_mutex(...)
uint32_t rtc_set_date(Rtc *p_rtc, uint32_t ul_year, uint32_t ul_month, uint32_t ul_day, uint32_t ul_week)
Set the RTC date.
void convertMjdToDate(int32_t mjd, int32_t *year, int32_t *month, int32_t *day)
#define RTC_CR_UPDTIM
(RTC_CR) Update Request Time Register
date_time_t g_gps_date_time
virtual std::size_t write(const void *bytes, std::size_t len)=0
Ctrl_status
Status returned by CTRL_ACCESS interfaces.
static void start_logger(cISLogger &logger, is_comm_instance_t &comm)
void step_logger_control(cISLogger &logger, is_comm_instance_t &comm)
void sd_card_logger_init(void)
void enable_logger(bool enable)
bool SetDeviceInfo(const dev_info_t *info, unsigned int device=0)
void rtc_get_date(Rtc *p_rtc, uint32_t *pul_year, uint32_t *pul_month, uint32_t *pul_day, uint32_t *pul_week)
Get the RTC date value.
void rtc_set_hour_mode(Rtc *p_rtc, uint32_t ul_mode)
Set the RTC hour mode.
void time_sync_from_uINS(void)
Autogenerated API include file for the Atmel Software Framework (ASF)
FRESULT f_mount(BYTE vol, FATFS *fs)
int32_t convertGpsToMjd(int32_t gpsWeek, int32_t gpsSeconds)
void log_ublox_raw_to_SD(cISLogger &logger, uint8_t *dataPtr, uint32_t dataSize)
CTRL_ACCESS interface for common SD/MMC stack.
void convertGpsToHMS(int32_t gpsSeconds, int32_t *hour, int32_t *minutes, int32_t *seconds)
#define RTC
(RTC ) Base Address
void sd_mmc_init(void)
Initialize the SD/MMC stack and low level driver required.