14 #include "../../../src/ISUtilities.h" 15 #include "../../../src/ISLogger.h" 25 #define printf_mutex(...) 157 std::string ubloxFile = (logger.
LogDirectory() +
"/raw_ublox.ubx");
162 s_ubloxLog->
write(dataPtr, dataSize);
172 static uint32_t timeOfWeekMsLast=0;
182 #if USE_RTC_DATE_TIME // use RTC 213 if( status != statusLast )
240 memset(&s_fs, 0,
sizeof(
FATFS));
249 #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]
static bool s_sd_card_ready
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 uINS_stream_enable_PPD(is_comm_instance_t &comm)
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 update_led_log(void)
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.