Commit 5c4bde3d authored by Bartosz Podrygajlo's avatar Bartosz Podrygajlo

Extract nr_l2_common library. This removes the two common L1 functions from...

Extract nr_l2_common library. This removes the two common L1 functions from nr_common.c in order to simpify testing L2 code.
parent b6979077
......@@ -10,3 +10,4 @@ if(ENABLE_WEBSRV)
endif()
add_subdirectory(T)
add_subdirectory(nr)
add_library(nr_l2_common nr_common.c)
target_include_directories(nr_l2_common PUBLIC .)
target_compile_definitions(nr_l2_common PRIVATE -DTEST_L2)
......@@ -934,6 +934,7 @@ void init_delay_table(uint16_t ofdm_symbol_size,
}
}
#ifndef TEST_L2
void freq2time(uint16_t ofdm_symbol_size,
int16_t *freq_signal,
int16_t *time_signal)
......@@ -965,6 +966,7 @@ void nr_est_delay(int ofdm_symbol_size, const c16_t *ls_est, c16_t *ch_estimates
delay->delay_max_val = max_val;
delay->est_delay = max_pos - sync_pos;
}
#endif
void nr_timer_start(NR_timer_t *timer)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment