Skip to content

Commit

Permalink
updated asr6601 boardInitMcu()
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Jun 4, 2021
1 parent 543626d commit b72c4a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cores/asr6601/platform/system/system_cm4.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "tremo_pwr.h"
#include "rtc-board.h"
#include "ASR_Arduino.h"
#include "uart.h"

void boardInitMcu( void )
{
Expand All @@ -21,14 +22,15 @@ void boardInitMcu( void )
rcc_enable_peripheral_clk(RCC_PERIPHERAL_RTC, true);
rcc_enable_peripheral_clk(RCC_PERIPHERAL_SAC, true);
rcc_enable_peripheral_clk(RCC_PERIPHERAL_LORA, true);
delay(100);
delay(200);
pinMode(Vext,OUTPUT);
digitalWrite(Vext,HIGH);
pinMode(VBAT_ADC_CTL, OUTPUT);
digitalWrite(VBAT_ADC_CTL,HIGH);
pwr_xo32k_lpm_cmd(true);
RtcInit();
systime = (uint32_t)TimerGetCurrentTime();
delay(100);
systime = (uint32_t)RtcGetTimerValue();
srand(analogRead(11)+analogRead(4)+analogRead(5)+analogRead(8)+analogRead(47));
SX126xInit();
sx126xSleep();
Expand Down

0 comments on commit b72c4a1

Please sign in to comment.