|
41 | 41 |
|
42 | 42 | #else |
43 | 43 | #include "scm.h" |
44 | | -#endif |
| 44 | +#endif /* __ZEPHYR__ */ |
| 45 | + |
| 46 | +#ifndef __ZEPHYR__ |
45 | 47 | #define max(a,b) ((a) > (b) ? a : b) |
46 | 48 |
|
47 | 49 | /* 2.4GHz RADIO ISR callbacks */ |
48 | 50 | typedef void (*radio_isr_cb_t) (void); |
49 | 51 |
|
50 | | - |
51 | | - |
52 | 52 | /* Radio critical sections */ |
53 | 53 | static uint32_t primask_bit = 0; |
54 | 54 | volatile int32_t irq_counter; |
| 55 | +#endif /* __ZEPHYR__ */ |
55 | 56 |
|
56 | 57 | /* Radio bus clock control variables */ |
57 | 58 | uint8_t AHB5_SwitchedOff; |
@@ -103,7 +104,7 @@ void LINKLAYER_PLAT_Assert(uint8_t condition) |
103 | 104 | { |
104 | 105 | assert_param(condition); |
105 | 106 | } |
106 | | -#endif |
| 107 | +#endif /* __ZEPHYR__ */ |
107 | 108 |
|
108 | 109 | /** |
109 | 110 | * @brief Enable/disable the Link Layer active clock (baseband clock). |
@@ -269,7 +270,6 @@ void LINKLAYER_PLAT_TriggerSwLowIT(uint8_t priority) |
269 | 270 |
|
270 | 271 | HAL_NVIC_SetPendingIRQ((IRQn_Type) RADIO_SW_LOW_INTR_NUM); |
271 | 272 | } |
272 | | -#endif |
273 | 273 |
|
274 | 274 | /** |
275 | 275 | * @brief Enable interrupts. |
@@ -303,7 +303,6 @@ void LINKLAYER_PLAT_DisableIRQ(void) |
303 | 303 | irq_counter ++; |
304 | 304 | } |
305 | 305 |
|
306 | | -#ifndef __ZEPHYR__ |
307 | 306 | /** |
308 | 307 | * @brief Enable specific interrupt group. |
309 | 308 | * @param isr_type: mask for interrupt group to enable. |
@@ -399,7 +398,6 @@ void LINKLAYER_PLAT_DisableSpecificIRQ(uint8_t isr_type) |
399 | 398 | } |
400 | 399 | } |
401 | 400 | } |
402 | | -#endif |
403 | 401 |
|
404 | 402 | /** |
405 | 403 | * @brief Enable link layer high priority ISR only. |
@@ -437,7 +435,6 @@ void LINKLAYER_PLAT_DisableRadioIT(void) |
437 | 435 | /* USER CODE END LINKLAYER_PLAT_DisableRadioIT_2 */ |
438 | 436 | } |
439 | 437 |
|
440 | | -#ifndef __ZEPHYR__ |
441 | 438 | /** |
442 | 439 | * @brief Link Layer notification for radio activity start. |
443 | 440 | * @param None |
@@ -577,7 +574,7 @@ uint32_t LINKLAYER_PLAT_GetUDN(void) |
577 | 574 | { |
578 | 575 | return LL_FLASH_GetUDN(); |
579 | 576 | } |
580 | | -#endif |
| 577 | +#endif /* __ZEPHYR__ */ |
581 | 578 | /* USER CODE BEGIN LINKLAYER_PLAT 0 */ |
582 | 579 |
|
583 | 580 | /* USER CODE END LINKLAYER_PLAT 0 */ |
0 commit comments