mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-18 08:20:08 -07:00
Profiling
This commit is contained in:
parent
c8aa111d0f
commit
7ea1e42cee
@ -58,7 +58,7 @@ bool Receiver::init()
|
|||||||
//DBG("Configuring IC\r\n");
|
//DBG("Configuring IC\r\n");
|
||||||
configure();
|
configure();
|
||||||
resetBitScanner();
|
resetBitScanner();
|
||||||
//configureGPIOsForRX();
|
configureGPIOsForRX();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -76,10 +76,11 @@ void Receiver::switchToChannel(VHFChannel channel)
|
|||||||
mSwitchToChannel = channel;
|
mSwitchToChannel = channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This is a really, really long operation - over 150us !!!
|
// TODO: This is a really, really long operation - over 320us !!!
|
||||||
void Receiver::startListening(VHFChannel channel)
|
void Receiver::startListening(VHFChannel channel)
|
||||||
{
|
{
|
||||||
configureGPIOsForRX();
|
bsp_signal_high();
|
||||||
|
//configureGPIOsForRX();
|
||||||
|
|
||||||
mChannel = channel;
|
mChannel = channel;
|
||||||
RX_OPTIONS options;
|
RX_OPTIONS options;
|
||||||
@ -91,6 +92,7 @@ void Receiver::startListening(VHFChannel channel)
|
|||||||
options.next_state3 = 0;
|
options.next_state3 = 0;
|
||||||
|
|
||||||
sendCmd (START_RX, &options, sizeof options, NULL, 0);
|
sendCmd (START_RX, &options, sizeof options, NULL, 0);
|
||||||
|
bsp_signal_low();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Receiver::resetBitScanner()
|
void Receiver::resetBitScanner()
|
||||||
@ -255,10 +257,10 @@ void Receiver::pushPacket()
|
|||||||
|
|
||||||
if ( p )
|
if ( p )
|
||||||
{
|
{
|
||||||
bsp_signal_high();
|
//bsp_signal_high();
|
||||||
p->rxPacket = currPacket;
|
p->rxPacket = currPacket;
|
||||||
EventQueue::instance().push(p);
|
EventQueue::instance().push(p);
|
||||||
bsp_signal_low();
|
//bsp_signal_low();
|
||||||
}
|
}
|
||||||
|
|
||||||
mRXPacket->reset();
|
mRXPacket->reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user