Skip to content

Commit b72c4a1

Browse files
updated asr6601 boardInitMcu()
1 parent 543626d commit b72c4a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cores/asr6601/platform/system/system_cm4.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "tremo_pwr.h"
66
#include "rtc-board.h"
77
#include "ASR_Arduino.h"
8+
#include "uart.h"
89

910
void boardInitMcu( void )
1011
{
@@ -21,14 +22,15 @@ void boardInitMcu( void )
2122
rcc_enable_peripheral_clk(RCC_PERIPHERAL_RTC, true);
2223
rcc_enable_peripheral_clk(RCC_PERIPHERAL_SAC, true);
2324
rcc_enable_peripheral_clk(RCC_PERIPHERAL_LORA, true);
24-
delay(100);
25+
delay(200);
2526
pinMode(Vext,OUTPUT);
2627
digitalWrite(Vext,HIGH);
2728
pinMode(VBAT_ADC_CTL, OUTPUT);
2829
digitalWrite(VBAT_ADC_CTL,HIGH);
2930
pwr_xo32k_lpm_cmd(true);
3031
RtcInit();
31-
systime = (uint32_t)TimerGetCurrentTime();
32+
delay(100);
33+
systime = (uint32_t)RtcGetTimerValue();
3234
srand(analogRead(11)+analogRead(4)+analogRead(5)+analogRead(8)+analogRead(47));
3335
SX126xInit();
3436
sx126xSleep();

0 commit comments

Comments
 (0)