Merge branch 'master' of github.com:r0ket/r0ket
This commit is contained in:
commit
812a8f8b13
|
@ -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() {
|
||||
// Enable SPI correctly
|
||||
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_get(nrfconfig config);
|
||||
|
||||
void nrf_set_strength(unsigned char strength);
|
||||
|
||||
/* END */
|
||||
|
||||
#endif /* _NRF24L01P_H */
|
||||
|
|
Loading…
Reference in New Issue