File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ int fhss_reset_synch_monitor(fhss_synch_monitor_s *synch_monitor)
166
166
return -1 ;
167
167
}
168
168
169
- int fhss_update_txrx_slots (fhss_structure_t * fhss_structure )
169
+ static int fhss_update_txrx_slots (fhss_structure_t * fhss_structure )
170
170
{
171
171
uint8_t cur_superframe = fhss_structure -> current_superframe ;
172
172
uint8_t number_of_tx_slots = fhss_structure -> synch_configuration .fhss_number_of_tx_slots ;
@@ -474,7 +474,7 @@ static bool fhss_is_there_common_divisor(uint16_t i, uint8_t j)
474
474
}
475
475
476
476
477
- int fhss_generate_scramble_table (fhss_structure_t * fhss_structure )
477
+ static int fhss_generate_scramble_table (fhss_structure_t * fhss_structure )
478
478
{
479
479
uint8_t j = 2 ;
480
480
fhss_structure -> fhss_scramble_table = ns_dyn_mem_alloc (MAX_SCRAMBLE_TABLE_INDEXES );
Original file line number Diff line number Diff line change @@ -42,23 +42,12 @@ void fhss_update_channel_callback(fhss_structure_t *fhss_structure);
42
42
fhss_failed_tx_t * fhss_failed_handle_find (fhss_structure_t * fhss_structure , uint8_t handle );
43
43
int fhss_failed_handle_add (fhss_structure_t * fhss_structure , uint8_t handle );
44
44
int fhss_failed_handle_remove (fhss_structure_t * fhss_structure , uint8_t handle );
45
- int fhss_generate_scramble_table (fhss_structure_t * fhss_structure );
46
45
void fhss_failed_list_free (fhss_structure_t * fhss_structure );
47
46
int fhss_reset_synch_monitor (fhss_synch_monitor_s * synch_monitor );
48
47
int fhss_handle_state_set (fhss_structure_t * fhss_structure , fhss_states fhss_state , uint16_t pan_id );
49
48
#define MAX_FHSS_TIMER_DIVIDER 100
50
49
#define SYNCH_MONITOR_AVG_SAMPLES 5
51
50
52
- /**
53
- * Update slots
54
- *
55
- * Every superframe handler interrupt calls this function to update the TX/RX slot status.
56
- *
57
- * @param fhss_structure Pointer to FHSS structure
58
- * @return 0 for success, -1 for fail
59
- */
60
- int fhss_update_txrx_slots (fhss_structure_t * fhss_structure );
61
-
62
51
/**
63
52
* Calculate time in microseconds to start of next superframe.
64
53
*
Original file line number Diff line number Diff line change @@ -388,6 +388,5 @@ void fhss_superframe_handler(const fhss_api_t *fhss_api, uint16_t delay)
388
388
uint32_t fhss_get_remaining_time_to_next_superframe (const fhss_structure_t * fhss_structure )
389
389
{
390
390
const uint32_t slots = fhss_structure -> platform_functions .fhss_get_remaining_slots (fhss_superframe_handler , fhss_structure -> fhss_api );
391
- const uint32_t time = slots * fhss_structure -> platform_functions .fhss_resolution_divider ;
392
- return time ;
391
+ return (slots * fhss_structure -> platform_functions .fhss_resolution_divider );
393
392
}
You can’t perform that action at this time.
0 commit comments