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 5
5
#include "tremo_pwr.h"
6
6
#include "rtc-board.h"
7
7
#include "ASR_Arduino.h"
8
+ #include "uart.h"
8
9
9
10
void boardInitMcu ( void )
10
11
{
@@ -21,14 +22,15 @@ void boardInitMcu( void )
21
22
rcc_enable_peripheral_clk (RCC_PERIPHERAL_RTC , true);
22
23
rcc_enable_peripheral_clk (RCC_PERIPHERAL_SAC , true);
23
24
rcc_enable_peripheral_clk (RCC_PERIPHERAL_LORA , true);
24
- delay (100 );
25
+ delay (200 );
25
26
pinMode (Vext ,OUTPUT );
26
27
digitalWrite (Vext ,HIGH );
27
28
pinMode (VBAT_ADC_CTL , OUTPUT );
28
29
digitalWrite (VBAT_ADC_CTL ,HIGH );
29
30
pwr_xo32k_lpm_cmd (true);
30
31
RtcInit ();
31
- systime = (uint32_t )TimerGetCurrentTime ();
32
+ delay (100 );
33
+ systime = (uint32_t )RtcGetTimerValue ();
32
34
srand (analogRead (11 )+ analogRead (4 )+ analogRead (5 )+ analogRead (8 )+ analogRead (47 ));
33
35
SX126xInit ();
34
36
sx126xSleep ();
You can’t perform that action at this time.
0 commit comments