mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 18:19:08 -04:00
Plumb BasebandThread to accept direction argument.
Default is to receive, for compatibility with existing users.
This commit is contained in:
parent
96da55d83a
commit
2ec1bab5d5
2 changed files with 8 additions and 4 deletions
|
@ -44,9 +44,11 @@ Thread* BasebandThread::thread = nullptr;
|
|||
BasebandThread::BasebandThread(
|
||||
uint32_t sampling_rate,
|
||||
BasebandProcessor* const baseband_processor,
|
||||
const tprio_t priority
|
||||
const tprio_t priority,
|
||||
baseband::Direction direction
|
||||
) : baseband_processor { baseband_processor },
|
||||
sampling_rate { sampling_rate }
|
||||
sampling_rate { sampling_rate },
|
||||
_direction { direction }
|
||||
{
|
||||
thread = chThdCreateStatic(baseband_thread_wa, sizeof(baseband_thread_wa),
|
||||
priority, ThreadBase::fn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue