Skip to content

Commit 3351fdc

Browse files
committed
firmware: move narrowband_filter_set to rf_path.h|c
1 parent 0dca1e5 commit 3351fdc

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

firmware/common/hackrf_core.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,3 @@ void trigger_enable(const bool enable)
458458
fpga_set_trigger_enable(&fpga, enable);
459459
#endif
460460
}
461-
462-
#ifdef PRALINE
463-
void narrowband_filter_set(const uint8_t value)
464-
{
465-
gpio_write(platform_gpio()->aa_en, value & 1);
466-
}
467-
#endif

firmware/common/hackrf_core.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ void pin_setup(void);
7676

7777
void trigger_enable(const bool enable);
7878

79-
#ifdef PRALINE
80-
void narrowband_filter_set(const uint8_t value);
81-
#endif
82-
8379
#ifdef __cplusplus
8480
}
8581
#endif

firmware/common/rf_path.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,3 +603,10 @@ void rf_path_set_antenna(rf_path_t* const rf_path, const uint_fast8_t enable)
603603

604604
hackrf_ui()->set_antenna_bias(enable);
605605
}
606+
607+
#ifdef PRALINE
608+
void narrowband_filter_set(const uint8_t value)
609+
{
610+
gpio_write(platform_gpio()->aa_en, value & 1);
611+
}
612+
#endif

firmware/common/rf_path.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,7 @@ void rf_path_set_filter(rf_path_t* const rf_path, const rf_path_filter_t filter)
9595

9696
void rf_path_set_lna(rf_path_t* const rf_path, const uint_fast8_t enable);
9797
void rf_path_set_antenna(rf_path_t* const rf_path, const uint_fast8_t enable);
98+
99+
#ifdef PRALINE
100+
void narrowband_filter_set(const uint8_t value);
101+
#endif

0 commit comments

Comments
 (0)