mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Speed improvements
This commit is contained in:
parent
5e00b2a7f8
commit
6bc6b1d202
18 changed files with 130 additions and 108 deletions
|
|
@ -30,7 +30,7 @@ static void HaltedCallback() {
|
|||
}
|
||||
}
|
||||
|
||||
static void ReadComplete(FPGA::SamplingResult result) {
|
||||
static void ReadComplete(const FPGA::SamplingResult &result) {
|
||||
bool needs_work = false;
|
||||
switch(activeMode) {
|
||||
case HW::Mode::VNA:
|
||||
|
|
@ -71,6 +71,16 @@ void HW::Work() {
|
|||
}
|
||||
|
||||
bool HW::Init() {
|
||||
#ifdef USE_DEBUG_PINS
|
||||
// initialize debug pins
|
||||
GPIO_InitTypeDef gpio;
|
||||
gpio.Pin = DEBUG1_PIN;
|
||||
gpio.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
gpio.Speed = GPIO_SPEED_HIGH;
|
||||
HAL_GPIO_Init(DEBUG1_GPIO, &gpio);
|
||||
gpio.Pin = DEBUG2_PIN;
|
||||
HAL_GPIO_Init(DEBUG2_GPIO, &gpio);
|
||||
#endif
|
||||
LOG_DEBUG("Initializing...");
|
||||
|
||||
activeMode = Mode::Idle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue