[CC1101] Simplify reset sequence
This commit is contained in:
parent
8e35b14fae
commit
c7fb065310
1 changed files with 1 additions and 7 deletions
|
@ -19,13 +19,7 @@ int16_t CC1101::beginFSK4(float freq, float br, float freqDev, float rxBw, int8_
|
||||||
}
|
}
|
||||||
|
|
||||||
void CC1101::reset() {
|
void CC1101::reset() {
|
||||||
// this is the manual power-on-reset sequence
|
// just send the command, the reset sequence as described in datasheet seems unnecessary in our usage
|
||||||
this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelLow);
|
|
||||||
this->mod->hal->delayMicroseconds(5);
|
|
||||||
this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelHigh);
|
|
||||||
this->mod->hal->delayMicroseconds(40);
|
|
||||||
this->mod->hal->digitalWrite(this->mod->getCs(), this->mod->hal->GpioLevelLow);
|
|
||||||
this->mod->hal->delay(10);
|
|
||||||
SPIsendCommand(RADIOLIB_CC1101_CMD_RESET);
|
SPIsendCommand(RADIOLIB_CC1101_CMD_RESET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue