add nrf_set_strength() - openbeacon needs it :-)
This commit is contained in:
parent
462d9f3a32
commit
093370587f
|
@ -283,6 +283,12 @@ void nrf_config_get(nrfconfig config){
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void nrf_set_strength(unsigned char strength){
|
||||||
|
if(strength>3)
|
||||||
|
strength=3;
|
||||||
|
nrf_write_reg(R_RF_SETUP,DEFAULT_SPEED|(strength<<1));
|
||||||
|
};
|
||||||
|
|
||||||
void nrf_init() {
|
void nrf_init() {
|
||||||
// Enable SPI correctly
|
// Enable SPI correctly
|
||||||
sspInit(0, sspClockPolarity_Low, sspClockPhase_RisingEdge);
|
sspInit(0, sspClockPolarity_Low, sspClockPhase_RisingEdge);
|
||||||
|
|
|
@ -155,6 +155,8 @@ void nrf_set_channel(int channel);
|
||||||
void nrf_config_set(nrfconfig config);
|
void nrf_config_set(nrfconfig config);
|
||||||
void nrf_config_get(nrfconfig config);
|
void nrf_config_get(nrfconfig config);
|
||||||
|
|
||||||
|
void nrf_set_strength(unsigned char strength);
|
||||||
|
|
||||||
/* END */
|
/* END */
|
||||||
|
|
||||||
#endif /* _NRF24L01P_H */
|
#endif /* _NRF24L01P_H */
|
||||||
|
|
Loading…
Reference in New Issue