Merge pull request #1321 from g-oikonomou/bugfix/cc26xx/remove-redundant-reads

Remove redundant function calls in CC13xx/CC26xx RFC code
This commit is contained in:
George Oikonomou 2016-01-09 17:52:15 +00:00
commit fa002c2d73

View File

@ -109,9 +109,7 @@ PROCESS(rf_core_process, "CC13xx / CC26xx RF driver");
uint8_t uint8_t
rf_core_is_accessible() rf_core_is_accessible()
{ {
if(ti_lib_prcm_rf_ready() && if(ti_lib_prcm_rf_ready()) {
ti_lib_prcm_power_domain_status(PRCM_DOMAIN_RFCORE) ==
PRCM_DOMAIN_POWER_ON) {
return RF_CORE_ACCESSIBLE; return RF_CORE_ACCESSIBLE;
} }
return RF_CORE_NOT_ACCESSIBLE; return RF_CORE_NOT_ACCESSIBLE;
@ -238,10 +236,6 @@ rf_core_power_up()
ti_lib_prcm_load_set(); ti_lib_prcm_load_set();
while(!ti_lib_prcm_load_get()); while(!ti_lib_prcm_load_get());
while(!rf_core_is_accessible()) {
PRINTF("rf_core_power_up: Not ready\n");
}
HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIFG) = 0x0; HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIFG) = 0x0;
HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIEN) = 0x0; HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIEN) = 0x0;
ti_lib_int_enable(INT_RF_CPE0); ti_lib_int_enable(INT_RF_CPE0);