RAKWireless / Products_practice_based_on_RUI

This repository will collect all of products practice based on RAK IoT module and RAK IoT SDK RUI.The creativity may come from RAK official and open source contributor.
MIT License
18 stars 17 forks source link

have any API support get/set RTC? #8

Open KunYi opened 4 years ago

KunYi commented 4 years ago

I compiling a example for RAK 4200 and get the below build.log would be export RTC api for user? I need timestamp feature for my application. need set/get system time (rtc-board.c)

mkdir _build CC lora_config.c CC i2c_cube.c CC stm32l0xx_hal_msp.c CC app_RAK4200.c CC gpio-board.c CC adc_cube.c CC delay-board.c CC at_cmd.c CC sx1276mb1mas-board.c CC board.c Copying file 20.00% CC rtc-board.c CC spi_board.c CC stm32l0xx_it.c CC system_stm32l0xx.c CC usart_board.c Copying file 30.00% CC stm32l0xx_hal_uart.c CC stm32l0xx_hal_rcc_ex.c CC stm32l0xx_hal.c CC stm32l0xx_hal_cryp.c CC stm32l0xx_hal_i2c_ex.c Copying file 40.00% CC stm32l0xx_hal_crc_ex.c CC stm32l0xx_hal_flash_ramfunc.c CC stm32l0xx_hal_pcd_ex.c CC stm32l0xx_hal_adc.c CC stm32l0xx_hal_lptim.c CC stm32l0xx_hal_spi.c CC stm32l0xx_hal_gpio.c CC stm32l0xx_hal_flash_ex.c CC stm32l0xx_hal_cryp_ex.c Copying file 50.00% CC stm32l0xx_hal_cortex.c CC stm32l0xx_hal_tim.c CC stm32l0xx_hal_tim_ex.c CC stm32l0xx_hal_uart_ex.c CC stm32l0xx_hal_dma.c Copying file 60.00% CC stm32l0xx_hal_firewall.c CC stm32l0xx_hal_dac.c CC stm32l0xx_hal_flash.c CC stm32l0xx_hal_pwr.c CC stm32l0xx_hal_rtc.c CC stm32l0xx_hal_i2c.c Copying file 70.00% CC stm32l0xx_hal_adc_ex.c CC stm32l0xx_hal_rcc.c CC stm32l0xx_hal_dac_ex.c CC stm32l0xx_hal_rtc_ex.c CC stm32l0xx_hal_pwr_ex.c Copying file 80.00% CC stm32l0xx_hal_crc.c CC stm32l0xx_hal_usart.c CC stm32l0xx_hal_pcd.c CC gpio.c Copying file 90.00% CC delay.c CC timer.c CC sx1276.c CC LoRaMacCrypto.c CC LoRaMac.c CC Region.c Copying file 100.00% CC RegionUS915.c CC RegionAU915.c CC RegionEU868.c CC RegionAS923.c CC RegionCN470.c CC RegionCN779.c CC RegionEU433.c CC RegionKR920.c CC RegionIN865.c CC RegionUS915-Hybrid.c CC RegionCommon.c CC aes.c CC cmac.c CC rw_lora.c CC partition.c CC p2p.c CC rui.c CC utilities.c AS startup_stm32l071xx.s text data bss dec hex filename 99904 1032 10728 111664 1b430 _build/stm_xx.elf arm-none-eabi-objcopy -O ihex _build/stm_xx.elf _build/stm_xx.hex arm-none-eabi-objcopy -O binary -S _build/stm_xx.elf _build/stm_xx.bin

KunYi commented 4 years ago

I knew rtc-board.c implement the below APIs from debug information. maybe you can write down in RUI SDK documents and export header file