1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
|
#[allow(dead_code)]
fn test_fn() {}
// /* USER CODE BEGIN Header */
// /**
// ******************************************************************************
// * @file linklayer_plat.c
// * @author MCD Application Team
// * @brief Source file for the linklayer plateform adaptation layer
// ******************************************************************************
// * @attention
// *
// * Copyright (c) 2024 STMicroelectronics.
// * All rights reserved.
// *
// * This software is licensed under terms that can be found in the LICENSE file
// * in the root directory of this software component.
// * If no LICENSE file comes with this software, it is provided AS-IS.
// *
// ******************************************************************************
// */
// /* USER CODE END Header */
//
// #include "stm32wbaxx_hal.h"
// #include "stm32wbaxx_hal_conf.h"
// #include "stm32wbaxx_ll_rcc.h"
//
// #include "app_common.h"
// #include "app_conf.h"
// #include "linklayer_plat.h"
// #include "scm.h"
// #include "log_module.h"
// #if (USE_TEMPERATURE_BASED_RADIO_CALIBRATION == 1)
// #include "adc_ctrl.h"
// #endif /* (USE_TEMPERATURE_BASED_RADIO_CALIBRATION == 1) */
//
// #if (CFG_LPM_LEVEL != 0)
// #include "stm32_lpm.h"
// #include "stm32_lpm_if.h"
// #endif /* (CFG_LPM_LEVEL != 0) */
//
// /* USER CODE BEGIN Includes */
//
// /* USER CODE END Includes */
//
// #define max(a,b) ((a) > (b) ? a : b)
//
// /* 2.4GHz RADIO ISR callbacks */
// void (*radio_callback)(void) = NULL;
// void (*low_isr_callback)(void) = NULL;
//
// /* RNG handle */
// extern RNG_HandleTypeDef hrng;
//
// #if (USE_TEMPERATURE_BASED_RADIO_CALIBRATION == 1)
// /* Link Layer temperature request from background */
// extern void ll_sys_bg_temperature_measurement(void);
// #endif /* (USE_TEMPERATURE_BASED_RADIO_CALIBRATION == 1) */
//
// /* Radio critical sections */
// static uint32_t primask_bit = 0;
// volatile int32_t prio_high_isr_counter = 0;
// volatile int32_t prio_low_isr_counter = 0;
// volatile int32_t prio_sys_isr_counter = 0;
// volatile int32_t irq_counter = 0;
// volatile uint32_t local_basepri_value = 0;
//
// /* Radio SW low ISR global variable */
// volatile uint8_t radio_sw_low_isr_is_running_high_prio = 0;
//
// /* Radio bus clock control variables */
// uint8_t AHB5_SwitchedOff = 0;
// uint32_t radio_sleep_timer_val = 0;
//
// /**
// * @brief Configure the necessary clock sources for the radio.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_ClockInit()
// {
// uint32_t linklayer_slp_clk_src = LL_RCC_RADIOSLEEPSOURCE_NONE;
//
// /* Get the Link Layer sleep timer clock source */
// linklayer_slp_clk_src = LL_RCC_RADIO_GetSleepTimerClockSource();
// if(linklayer_slp_clk_src == LL_RCC_RADIOSLEEPSOURCE_NONE)
// {
// /* If there is no clock source defined, should be selected before */
// assert_param(0);
// }
//
// /* Enable AHB5ENR peripheral clock (bus CLK) */
// __HAL_RCC_RADIO_CLK_ENABLE();
// }
//
// /**
// * @brief Link Layer active waiting loop.
// * @param delay: delay in us
// * @retval None
// */
// void LINKLAYER_PLAT_DelayUs(uint32_t delay)
// {
// static uint8_t lock = 0;
// uint32_t t0;
// uint32_t primask_bit;
//
// /* Enter critical section */
// primask_bit= __get_PRIMASK();
// __disable_irq();
//
// if (lock == 0U)
// {
// /* Initialize counter */
// /* Reset cycle counter to prevent overflow
// As a us counter, it is assumed than even with re-entrancy,
// overflow will never happen before re-initializing this counter */
// DWT->CYCCNT = 0U;
// /* Enable DWT by safety but should be useless (as already set) */
// SET_BIT(DCB->DEMCR, DCB_DEMCR_TRCENA_Msk);
// /* Enable counter */
// SET_BIT(DWT->CTRL, DWT_CTRL_CYCCNTENA_Msk);
// }
// /* Increment 're-entrance' counter */
// lock++;
// /* Get starting time stamp */
// t0 = DWT->CYCCNT;
// /* Exit critical section */
// __set_PRIMASK(primask_bit);
//
// /* Turn us into cycles */
// delay = delay * (SystemCoreClock / 1000000U);
// delay += t0;
//
// /* Busy waiting loop */
// while (DWT->CYCCNT < delay)
// {
// };
//
// /* Enter critical section */
// primask_bit= __get_PRIMASK();
// __disable_irq();
// if (lock == 1U)
// {
// /* Disable counter */
// CLEAR_BIT(DWT->CTRL, DWT_CTRL_CYCCNTENA_Msk);
// }
// /* Decrement 're-entrance' counter */
// lock--;
// /* Exit critical section */
// __set_PRIMASK(primask_bit);
//
// }
//
// /**
// * @brief Link Layer assertion API
// * @param condition: conditional statement to be checked.
// * @retval None
// */
// void LINKLAYER_PLAT_Assert(uint8_t condition)
// {
// assert_param(condition);
// }
//
// /**
// * @brief Enable/disable the Link Layer active clock (baseband clock).
// * @param enable: boolean value to enable (1) or disable (0) the clock.
// * @retval None
// */
// void LINKLAYER_PLAT_WaitHclkRdy(void)
// {
// /* Wait on radio bus clock readiness if it has been turned of */
// if (AHB5_SwitchedOff == 1)
// {
// AHB5_SwitchedOff = 0;
// while (radio_sleep_timer_val == ll_intf_cmn_get_slptmr_value());
// }
// }
//
// /**
// * @brief Notify the Link Layer platform layer the system will enter in WFI
// * and AHB5 clock may be turned of regarding the 2.4Ghz radio state.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_NotifyWFIEnter(void)
// {
// /* Check if Radio state will allow the AHB5 clock to be cut */
//
// /* AHB5 clock will be cut in the following cases:
// * - 2.4GHz radio is not in ACTIVE mode (in SLEEP or DEEPSLEEP mode).
// * - RADIOSMEN and STRADIOCLKON bits are at 0.
// */
// if((LL_PWR_GetRadioMode() != LL_PWR_RADIO_ACTIVE_MODE) ||
// ((__HAL_RCC_RADIO_IS_CLK_SLEEP_ENABLED() == 0) && (LL_RCC_RADIO_IsEnabledSleepTimerClock() == 0)))
// {
// AHB5_SwitchedOff = 1;
// }
// }
//
// /**
// * @brief Notify the Link Layer platform layer the system exited WFI and AHB5
// * clock may be resynchronized as is may have been turned of during
// * low power mode entry.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_NotifyWFIExit(void)
// {
// /* Check if AHB5 clock has been turned of and needs resynchronisation */
// if (AHB5_SwitchedOff)
// {
// /* Read sleep register as earlier as possible */
// radio_sleep_timer_val = ll_intf_cmn_get_slptmr_value();
// }
// }
//
// /**
// * @brief Active wait on bus clock readiness.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_AclkCtrl(uint8_t enable)
// {
// if(enable != 0u)
// {
// #if (CFG_SCM_SUPPORTED == 1)
// /* SCM HSE BEGIN */
// /* Polling on HSE32 activation */
// SCM_HSE_WaitUntilReady();
// /* Enable RADIO baseband clock (active CLK) */
// HAL_RCCEx_EnableRadioBBClock();
// /* SCM HSE END */
// #else
// /* Enable RADIO baseband clock (active CLK) */
// HAL_RCCEx_EnableRadioBBClock();
// /* Polling on HSE32 activation */
// while ( LL_RCC_HSE_IsReady() == 0);
// #endif /* CFG_SCM_SUPPORTED */
// }
// else
// {
// /* Disable RADIO baseband clock (active CLK) */
// HAL_RCCEx_DisableRadioBBClock();
// }
// }
//
// /**
// * @brief Link Layer RNG request.
// * @param ptr_rnd: pointer to the variable that hosts the number.
// * @param len: number of byte of anthropy to get.
// * @retval None
// */
// void LINKLAYER_PLAT_GetRNG(uint8_t *ptr_rnd, uint32_t len)
// {
// uint32_t nb_remaining_rng = len;
// uint32_t generated_rng;
//
// /* Get the requested RNGs (4 bytes by 4bytes) */
// while(nb_remaining_rng >= 4)
// {
// generated_rng = 0;
// HW_RNG_Get(1, &generated_rng);
// memcpy((ptr_rnd+(len-nb_remaining_rng)), &generated_rng, 4);
// nb_remaining_rng -=4;
// }
//
// /* Get the remaining number of RNGs */
// if(nb_remaining_rng>0){
// generated_rng = 0;
// HW_RNG_Get(1, &generated_rng);
// memcpy((ptr_rnd+(len-nb_remaining_rng)), &generated_rng, nb_remaining_rng);
// }
// }
//
// /**
// * @brief Initialize Link Layer radio high priority interrupt.
// * @param intr_cb: function pointer to assign for the radio high priority ISR routine.
// * @retval None
// */
// void LINKLAYER_PLAT_SetupRadioIT(void (*intr_cb)())
// {
// radio_callback = intr_cb;
// HAL_NVIC_SetPriority((IRQn_Type) RADIO_INTR_NUM, RADIO_INTR_PRIO_HIGH, 0);
// HAL_NVIC_EnableIRQ((IRQn_Type) RADIO_INTR_NUM);
// }
//
// /**
// * @brief Initialize Link Layer SW low priority interrupt.
// * @param intr_cb: function pointer to assign for the SW low priority ISR routine.
// * @retval None
// */
// void LINKLAYER_PLAT_SetupSwLowIT(void (*intr_cb)())
// {
// low_isr_callback = intr_cb;
//
// HAL_NVIC_SetPriority((IRQn_Type) RADIO_SW_LOW_INTR_NUM, RADIO_SW_LOW_INTR_PRIO, 0);
// HAL_NVIC_EnableIRQ((IRQn_Type) RADIO_SW_LOW_INTR_NUM);
// }
//
// /**
// * @brief Trigger the link layer SW low interrupt.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_TriggerSwLowIT(uint8_t priority)
// {
// uint8_t low_isr_priority = RADIO_INTR_PRIO_LOW;
//
// /* Check if a SW low interrupt as already been raised.
// * Nested call far radio low isr are not supported
// **/
//
// if(NVIC_GetActive(RADIO_SW_LOW_INTR_NUM) == 0)
// {
// /* No nested SW low ISR, default behavior */
//
// if(priority == 0)
// {
// low_isr_priority = RADIO_SW_LOW_INTR_PRIO;
// }
//
// HAL_NVIC_SetPriority((IRQn_Type) RADIO_SW_LOW_INTR_NUM, low_isr_priority, 0);
// }
// else
// {
// /* Nested call detected */
// /* No change for SW radio low interrupt priority for the moment */
//
// if(priority != 0)
// {
// /* At the end of current SW radio low ISR, this pending SW low interrupt
// * will run with RADIO_INTR_PRIO_LOW priority
// **/
// radio_sw_low_isr_is_running_high_prio = 1;
// }
// }
//
// HAL_NVIC_SetPendingIRQ((IRQn_Type) RADIO_SW_LOW_INTR_NUM);
// }
//
// /**
// * @brief Enable interrupts.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_EnableIRQ(void)
// {
// irq_counter = max(0,irq_counter-1);
//
// if(irq_counter == 0)
// {
// /* When irq_counter reaches 0, restore primask bit */
// __set_PRIMASK(primask_bit);
// }
// }
//
// /**
// * @brief Disable interrupts.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_DisableIRQ(void)
// {
// if(irq_counter == 0)
// {
// /* Save primask bit at first interrupt disablement */
// primask_bit= __get_PRIMASK();
// }
// __disable_irq();
// irq_counter ++;
// }
//
// /**
// * @brief Enable specific interrupt group.
// * @param isr_type: mask for interrupt group to enable.
// * This parameter can be one of the following:
// * @arg LL_HIGH_ISR_ONLY: enable link layer high priority ISR.
// * @arg LL_LOW_ISR_ONLY: enable link layer SW low priority ISR.
// * @arg SYS_LOW_ISR: mask interrupts for all the other system ISR with
// * lower priority that link layer SW low interrupt.
// * @retval None
// */
// void LINKLAYER_PLAT_EnableSpecificIRQ(uint8_t isr_type)
// {
// if( (isr_type & LL_HIGH_ISR_ONLY) != 0 )
// {
// prio_high_isr_counter--;
// if(prio_high_isr_counter == 0)
// {
// /* When specific counter for link layer high ISR reaches 0, interrupt is enabled */
// HAL_NVIC_EnableIRQ(RADIO_INTR_NUM);
// /* USER CODE BEGIN LINKLAYER_PLAT_EnableSpecificIRQ_1 */
//
// /* USER CODE END LINKLAYER_PLAT_EnableSpecificIRQ_1 */
// }
// }
//
// if( (isr_type & LL_LOW_ISR_ONLY) != 0 )
// {
// prio_low_isr_counter--;
// if(prio_low_isr_counter == 0)
// {
// /* When specific counter for link layer SW low ISR reaches 0, interrupt is enabled */
// HAL_NVIC_EnableIRQ(RADIO_SW_LOW_INTR_NUM);
// }
//
// }
//
// if( (isr_type & SYS_LOW_ISR) != 0 )
// {
// prio_sys_isr_counter--;
// if(prio_sys_isr_counter == 0)
// {
// /* Restore basepri value */
// __set_BASEPRI(local_basepri_value);
// }
// }
// }
//
// /**
// * @brief Disable specific interrupt group.
// * @param isr_type: mask for interrupt group to disable.
// * This parameter can be one of the following:
// * @arg LL_HIGH_ISR_ONLY: disable link layer high priority ISR.
// * @arg LL_LOW_ISR_ONLY: disable link layer SW low priority ISR.
// * @arg SYS_LOW_ISR: unmask interrupts for all the other system ISR with
// * lower priority that link layer SW low interrupt.
// * @retval None
// */
// void LINKLAYER_PLAT_DisableSpecificIRQ(uint8_t isr_type)
// {
// if( (isr_type & LL_HIGH_ISR_ONLY) != 0 )
// {
// prio_high_isr_counter++;
// if(prio_high_isr_counter == 1)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_DisableSpecificIRQ_1 */
//
// /* USER CODE END LINKLAYER_PLAT_DisableSpecificIRQ_1 */
// /* When specific counter for link layer high ISR value is 1, interrupt is disabled */
// HAL_NVIC_DisableIRQ(RADIO_INTR_NUM);
// }
// }
//
// if( (isr_type & LL_LOW_ISR_ONLY) != 0 )
// {
// prio_low_isr_counter++;
// if(prio_low_isr_counter == 1)
// {
// /* When specific counter for link layer SW low ISR value is 1, interrupt is disabled */
// HAL_NVIC_DisableIRQ(RADIO_SW_LOW_INTR_NUM);
// }
// }
//
// if( (isr_type & SYS_LOW_ISR) != 0 )
// {
// prio_sys_isr_counter++;
// if(prio_sys_isr_counter == 1)
// {
// /* Save basepri register value */
// local_basepri_value = __get_BASEPRI();
//
// /* Mask all other interrupts with lower priority that link layer SW low ISR */
// __set_BASEPRI_MAX(RADIO_INTR_PRIO_LOW<<4);
// }
// }
// }
//
// /**
// * @brief Enable link layer high priority ISR only.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_EnableRadioIT(void)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_EnableRadioIT_1 */
//
// /* USER CODE END LINKLAYER_PLAT_EnableRadioIT_1 */
//
// HAL_NVIC_EnableIRQ((IRQn_Type) RADIO_INTR_NUM);
//
// /* USER CODE BEGIN LINKLAYER_PLAT_EnableRadioIT_2 */
//
// /* USER CODE END LINKLAYER_PLAT_EnableRadioIT_2 */
// }
//
// /**
// * @brief Disable link layer high priority ISR only.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_DisableRadioIT(void)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_DisableRadioIT_1 */
//
// /* USER CODE END LINKLAYER_PLAT_DisableRadioIT_1 */
//
// HAL_NVIC_DisableIRQ((IRQn_Type) RADIO_INTR_NUM);
//
// /* USER CODE BEGIN LINKLAYER_PLAT_DisableRadioIT_2 */
//
// /* USER CODE END LINKLAYER_PLAT_DisableRadioIT_2 */
// }
//
// /**
// * @brief Link Layer notification for radio activity start.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_StartRadioEvt(void)
// {
// __HAL_RCC_RADIO_CLK_SLEEP_ENABLE();
// NVIC_SetPriority(RADIO_INTR_NUM, RADIO_INTR_PRIO_HIGH);
// #if (CFG_SCM_SUPPORTED == 1)
// scm_notifyradiostate(SCM_RADIO_ACTIVE);
// #endif /* CFG_SCM_SUPPORTED */
// }
//
// /**
// * @brief Link Layer notification for radio activity end.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_StopRadioEvt(void)
// {
// __HAL_RCC_RADIO_CLK_SLEEP_DISABLE();
// NVIC_SetPriority(RADIO_INTR_NUM, RADIO_INTR_PRIO_LOW);
// #if (CFG_SCM_SUPPORTED == 1)
// scm_notifyradiostate(SCM_RADIO_NOT_ACTIVE);
// #endif /* CFG_SCM_SUPPORTED */
// }
//
// /**
// * @brief Link Layer notification for RCO calibration start.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_RCOStartClbr(void)
// {
// #if (CFG_LPM_LEVEL != 0)
// PWR_DisableSleepMode();
// /* Disabling stop mode prevents also from entering in standby */
// UTIL_LPM_SetStopMode(1U << CFG_LPM_LL_HW_RCO_CLBR, UTIL_LPM_DISABLE);
// #endif /* (CFG_LPM_LEVEL != 0) */
// #if (CFG_SCM_SUPPORTED == 1)
// scm_setsystemclock(SCM_USER_LL_HW_RCO_CLBR, HSE_32MHZ);
// while (LL_PWR_IsActiveFlag_VOS() == 0);
// #endif /* (CFG_SCM_SUPPORTED == 1) */
// }
//
// /**
// * @brief Link Layer notification for RCO calibration end.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_RCOStopClbr(void)
// {
// #if (CFG_LPM_LEVEL != 0)
// PWR_EnableSleepMode();
// UTIL_LPM_SetStopMode(1U << CFG_LPM_LL_HW_RCO_CLBR, UTIL_LPM_ENABLE);
// #endif /* (CFG_LPM_LEVEL != 0) */
// #if (CFG_SCM_SUPPORTED == 1)
// scm_setsystemclock(SCM_USER_LL_HW_RCO_CLBR, HSE_16MHZ);
// #endif /* (CFG_SCM_SUPPORTED == 1) */
// }
//
// /**
// * @brief Link Layer requests temperature.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_RequestTemperature(void)
// {
// #if (USE_TEMPERATURE_BASED_RADIO_CALIBRATION == 1)
// ll_sys_bg_temperature_measurement();
// #endif /* USE_TEMPERATURE_BASED_RADIO_CALIBRATION */
// }
//
// /**
// * @brief PHY Start calibration.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_PhyStartClbr(void)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_PhyStartClbr_0 */
//
// /* USER CODE END LINKLAYER_PLAT_PhyStartClbr_0 */
//
// /* USER CODE BEGIN LINKLAYER_PLAT_PhyStartClbr_1 */
//
// /* USER CODE END LINKLAYER_PLAT_PhyStartClbr_1 */
// }
//
// /**
// * @brief PHY Stop calibration.
// * @param None
// * @retval None
// */
// void LINKLAYER_PLAT_PhyStopClbr(void)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_PhyStopClbr_0 */
//
// /* USER CODE END LINKLAYER_PLAT_PhyStopClbr_0 */
//
// /* USER CODE BEGIN LINKLAYER_PLAT_PhyStopClbr_1 */
//
// /* USER CODE END LINKLAYER_PLAT_PhyStopClbr_1 */
// }
//
// /**
// * @brief Notify the upper layer that new Link Layer timings have been applied.
// * @param evnt_timing[in]: Evnt_timing_t pointer to structure contains drift time , execution time and scheduling time
// * @retval None.
// */
// void LINKLAYER_PLAT_SCHLDR_TIMING_UPDATE_NOT(Evnt_timing_t * p_evnt_timing)
// {
// /* USER CODE BEGIN LINKLAYER_PLAT_SCHLDR_TIMING_UPDATE_NOT_0 */
//
// /* USER CODE END LINKLAYER_PLAT_SCHLDR_TIMING_UPDATE_NOT_0 */
// }
//
// /**
// * @brief Get the ST company ID.
// * @param None
// * @retval Company ID
// */
// uint32_t LINKLAYER_PLAT_GetSTCompanyID(void)
// {
// return LL_FLASH_GetSTCompanyID();
// }
//
// /**
// * @brief Get the Unique Device Number (UDN).
// * @param None
// * @retval UDN
// */
// uint32_t LINKLAYER_PLAT_GetUDN(void)
// {
// return LL_FLASH_GetUDN();
// }
//
// /* USER CODE BEGIN LINKLAYER_PLAT 0 */
//
// /* USER CODE END LINKLAYER_PLAT 0 */
|