CubeCell-Arduino
CubeCell-Arduino copied to clipboard
ASR6601CB Not compatible
Hi.
I'm trying using this for Ebyte E78 (ASR6601CB) module but i'm see that ASR6601CB dont have some gpios for init SX1262 chip -
void SX126xLoracInit()
{
LORAC->CR0 = 0x00000200;
LORAC->SSP_CR0 = 0x07;
LORAC->SSP_CPSR = 0x02;
//wakeup lora
//avoid always waiting busy after main reset or soft reset
if(LORAC->CR1 != 0x80)
{
delayMicroseconds(20);
LORAC->NSS_CR = 0;
delayMicroseconds(20);
LORAC->NSS_CR = 1;
}
LORAC->SSP_CR1 = 0x02;
NVIC_EnableIRQ(LORA_IRQn);
//enable LORA_IRQHandler wakeup
TREMO_REG_WR(0x40001804,TREMO_REG_RD(0x40001804)|0x80);
//NVIC_SetPriority(LORAC_IRQn, 2);
pinMode(CONFIG_LORA_RFSW_VDD_PIN,OUTPUT);
digitalWrite(CONFIG_LORA_RFSW_VDD_PIN,0);
iomux(CONFIG_LORA_RFSW_CTRL_PIN, 3);
}
ASR6601CB DONT HAVE - CONFIG_LORA_RFSW_VDD_PIN - 35 gpio for this - Maybe you have proper config for ASR6601CB chip? Thank.