mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2025-12-06 03:01:59 +01:00
merge comments
This commit is contained in:
parent
23fb12605e
commit
ea8bb9de64
|
|
@ -259,7 +259,7 @@ static void* _sched_waveform_thread(void* param)
|
||||||
* *********************************************************************************************
|
* *********************************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int nin, nout;
|
int nin, nout;
|
||||||
|
|
||||||
int i; // for loop counter
|
int i; // for loop counter
|
||||||
float fsample; // a float sample
|
float fsample; // a float sample
|
||||||
|
|
@ -268,12 +268,6 @@ static void* _sched_waveform_thread(void* param)
|
||||||
// Flags ...
|
// Flags ...
|
||||||
int initial_tx = 1; // Flags for TX circular buffer, clear if starting transmit
|
int initial_tx = 1; // Flags for TX circular buffer, clear if starting transmit
|
||||||
int initial_rx = 1; // Flags for RX circular buffer, clear if starting receive
|
int initial_rx = 1; // Flags for RX circular buffer, clear if starting receive
|
||||||
//int Coder_ON = 0; // Is CODEC2 On/Active ???
|
|
||||||
//int transmit_ON = 0; // Is CODEC2 in transmit mode?
|
|
||||||
//int New_Packet_Waiting = 0; // Is new packet waiting?
|
|
||||||
//int Is_Control_Packet = 0; // Is the new packet a control packet?
|
|
||||||
//int InputRxPacketReady = 0; // Is the new packet a sampled data packet for RX input?
|
|
||||||
//int InputTxPacketReady = 0; // Is the new packet a sampled data packet for TX input?
|
|
||||||
|
|
||||||
// VOCODER I/O BUFFERS
|
// VOCODER I/O BUFFERS
|
||||||
short speech_in[FREEDV_NSAMPLES];
|
short speech_in[FREEDV_NSAMPLES];
|
||||||
|
|
@ -368,6 +362,8 @@ static void* _sched_waveform_thread(void* param)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
buf_desc = _WaveformList_UnlinkHead();
|
buf_desc = _WaveformList_UnlinkHead();
|
||||||
|
// if we got signalled, but there was no new data, something's wrong
|
||||||
|
// and we'll just wait for the next packet
|
||||||
if (buf_desc == NULL)
|
if (buf_desc == NULL)
|
||||||
{
|
{
|
||||||
//output( "We were signaled that there was another buffer descriptor, but there's not one here");
|
//output( "We were signaled that there was another buffer descriptor, but there's not one here");
|
||||||
|
|
@ -670,6 +666,8 @@ static void* _sched_waveform_thread(void* param)
|
||||||
}
|
}
|
||||||
hal_BufferRelease(&buf_desc);
|
hal_BufferRelease(&buf_desc);
|
||||||
|
|
||||||
|
// the concensus is it doesn't matter to do this -- Graham put this in to
|
||||||
|
// yield the processor
|
||||||
usleep(10);
|
usleep(10);
|
||||||
}
|
}
|
||||||
} while(1); // Seems infinite loop but will exit once there are no longer any buffers linked in _Waveformlist
|
} while(1); // Seems infinite loop but will exit once there are no longer any buffers linked in _Waveformlist
|
||||||
|
|
|
||||||
|
|
@ -124,9 +124,10 @@ void SmartSDR_API_Init(void)
|
||||||
pthread_create(&_console_thread_ID, NULL, &_console_thread, NULL);
|
pthread_create(&_console_thread_ID, NULL, &_console_thread, NULL);
|
||||||
|
|
||||||
// wait for the console to print out all it's stuff
|
// wait for the console to print out all it's stuff
|
||||||
sem_wait(&_startup_sem);
|
sem_wait(&_startup_sem);
|
||||||
#endif
|
// initialize the traffic cop
|
||||||
tc_Init();
|
tc_Init();
|
||||||
|
// initialize the discovery client
|
||||||
dc_Init();
|
dc_Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue