File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
cores/asr6601/platform/system Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55#include "tremo_pwr.h"
66#include "rtc-board.h"
77#include "ASR_Arduino.h"
8+ #include "uart.h"
89
910void 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 ();
You can’t perform that action at this time.
0 commit comments