|
@@ -262,15 +262,15 @@ int main(void)
|
|
|
powerOn();
|
|
powerOn();
|
|
|
E52_CtlPowerOn_Fun();
|
|
E52_CtlPowerOn_Fun();
|
|
|
|
|
|
|
|
- deviceInfo.loraDeviceAddress_H = 0xFE;
|
|
|
|
|
- deviceInfo.loraDeviceAddress_L = 0xE1;
|
|
|
|
|
- Flash_Write_LoraAddr(deviceInfo.loraDeviceAddress_H, deviceInfo.loraDeviceAddress_L);
|
|
|
|
|
- uint8_t addrH, addrL;
|
|
|
|
|
- while (TRUE) {
|
|
|
|
|
- Flash_Read_LoraAddr(&addrH, &addrL);
|
|
|
|
|
- printf("LoraAddr: %02X%02X\r\n", addrH, addrL);
|
|
|
|
|
- HAL_Delay(1000);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // deviceInfo.loraDeviceAddress_H = 0xFE;
|
|
|
|
|
+ // deviceInfo.loraDeviceAddress_L = 0xE1;
|
|
|
|
|
+ // Flash_Write_LoraAddr(deviceInfo.loraDeviceAddress_H, deviceInfo.loraDeviceAddress_L);
|
|
|
|
|
+ // uint8_t addrH, addrL;
|
|
|
|
|
+ // while (TRUE) {
|
|
|
|
|
+ // Flash_Read_LoraAddr(&addrH, &addrL);
|
|
|
|
|
+ // printf("LoraAddr: %02X%02X\r\n", addrH, addrL);
|
|
|
|
|
+ // HAL_Delay(1000);
|
|
|
|
|
+ // }
|
|
|
// 在需要设置RTC时间的地方直接调用
|
|
// 在需要设置RTC时间的地方直接调用
|
|
|
// 参数依次为:小时、分钟、秒、星期、月份、日期、年份(均为BCD格式)
|
|
// 参数依次为:小时、分钟、秒、星期、月份、日期、年份(均为BCD格式)
|
|
|
RTC_SetDateTime(&hrtc,
|
|
RTC_SetDateTime(&hrtc,
|