/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_adc_ex.h | 562 #define ADC_OFR_CHANNEL(__CHANNEL__) ((__CHANNEL__) << ADC_OFR1_OFFSET1_CH_Pos) argument 569 #define ADC_DIFSEL_CHANNEL(__CHANNEL__) (1UL << (__CHANNEL__)) argument 741 #define IS_ADC_CHANNEL(__HANDLE__, __CHANNEL__) ((((__HANDLE__)->Instance) == ADC1) && \ argument 742 … (((__CHANNEL__) == ADC_CHANNEL_1) || \ 743 … ((__CHANNEL__) == ADC_CHANNEL_2) || \ 744 … ((__CHANNEL__) == ADC_CHANNEL_3) || \ 745 … ((__CHANNEL__) == ADC_CHANNEL_4) || \ 746 … ((__CHANNEL__) == ADC_CHANNEL_5) || \ 747 … ((__CHANNEL__) == ADC_CHANNEL_6) || \ 748 … ((__CHANNEL__) == ADC_CHANNEL_7) || \ [all …]
|
D | stm32l4xx_hal_tim.h | 1401 #define __HAL_TIM_SET_ICPRESCALER(__HANDLE__, __CHANNEL__, __ICPSC__) \ argument 1403 TIM_RESET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__)); \ 1404 TIM_SET_ICPRESCALERVALUE((__HANDLE__), (__CHANNEL__), (__ICPSC__)); \ 1422 #define __HAL_TIM_GET_ICPRESCALER(__HANDLE__, __CHANNEL__) \ argument 1423 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC1PSC) :\ 1424 ((__CHANNEL__) == TIM_CHANNEL_2) ? (((__HANDLE__)->Instance->CCMR1 & TIM_CCMR1_IC2PSC) >> 8U) :\ 1425 ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 & TIM_CCMR2_IC3PSC) :\ 1442 #define __HAL_TIM_SET_COMPARE(__HANDLE__, __CHANNEL__, __COMPARE__) \ argument 1443 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCR1 = (__COMPARE__)) :\ 1444 ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCR2 = (__COMPARE__)) :\ [all …]
|
D | stm32l4xx_hal_adc.h | 995 #define IS_ADC_REGULAR_RANK(__CHANNEL__) (((__CHANNEL__) == ADC_REGULAR_RANK_1 ) || \ argument 996 ((__CHANNEL__) == ADC_REGULAR_RANK_2 ) || \ 997 ((__CHANNEL__) == ADC_REGULAR_RANK_3 ) || \ 998 ((__CHANNEL__) == ADC_REGULAR_RANK_4 ) || \ 999 ((__CHANNEL__) == ADC_REGULAR_RANK_5 ) || \ 1000 ((__CHANNEL__) == ADC_REGULAR_RANK_6 ) || \ 1001 ((__CHANNEL__) == ADC_REGULAR_RANK_7 ) || \ 1002 ((__CHANNEL__) == ADC_REGULAR_RANK_8 ) || \ 1003 ((__CHANNEL__) == ADC_REGULAR_RANK_9 ) || \ 1004 ((__CHANNEL__) == ADC_REGULAR_RANK_10) || \ [all …]
|
D | stm32l4xx_ll_dma.h | 501 #define __LL_DMA_GET_CHANNEL_INSTANCE(__DMA_INSTANCE__, __CHANNEL__) \ argument 502 ((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 503 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 504 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 505 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 506 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 507 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 508 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 509 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 510 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… [all …]
|
D | stm32l4xx_ll_adc.h | 1477 #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ argument 1478 ((((__CHANNEL__) & ADC_CHANNEL_ID_BITFIELD_MASK) == 0UL) \ 1480 ((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS \ 1484 POSITION_VAL((__CHANNEL__)) \ 1610 #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ argument 1611 (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0UL) 1685 #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ argument 1686 ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) 1723 #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ argument 1726 ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) || \ [all …]
|
D | stm32l4xx_ll_tim.h | 224 #define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \ argument 225 (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\ 226 ((__CHANNEL__) == LL_TIM_CHANNEL_CH1N) ? 1U :\ 227 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\ 228 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2N) ? 3U :\ 229 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U :\ 230 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3N) ? 5U :\ 231 ((__CHANNEL__) == LL_TIM_CHANNEL_CH4) ? 6U :\ 232 ((__CHANNEL__) == LL_TIM_CHANNEL_CH5) ? 7U : 8U)
|
D | stm32l4xx_ll_dac.h | 498 #define __LL_DAC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ argument 499 ((__CHANNEL__) & DAC_SWTR_CHX_MASK)
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ |
D | stm32l0xx_hal_tim_ex.h | 191 #define IS_CHANNEL_AVAILABLE(__INSTANCE__, __CHANNEL__) \ argument 192 ((((__INSTANCE__) == TIM2) && (((__CHANNEL__) == TIM_CHANNEL_1) || \ 193 ((__CHANNEL__) == TIM_CHANNEL_2) || \ 194 ((__CHANNEL__) == TIM_CHANNEL_3) || \ 195 ((__CHANNEL__) == TIM_CHANNEL_4))) || \ 196 (((__INSTANCE__) == TIM3) && (((__CHANNEL__) == TIM_CHANNEL_1) || \ 197 ((__CHANNEL__) == TIM_CHANNEL_2) || \ 198 ((__CHANNEL__) == TIM_CHANNEL_3) || \ 199 ((__CHANNEL__) == TIM_CHANNEL_4))) || \ 200 (((__INSTANCE__) == TIM21) && (((__CHANNEL__) == TIM_CHANNEL_1) || \ [all …]
|
D | stm32l0xx_ll_adc.h | 864 #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) … argument 865 …((((__CHANNEL__) & ADC_CHANNEL_ID_BITFIELD_MASK) == 0U) … 867 …((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS … 871 …(((__CHANNEL__) & ADC_CHSELR_CHSEL0) == ADC_CHSELR_CHSEL0) ? (0U) : … 873 …(((__CHANNEL__) & ADC_CHSELR_CHSEL1) == ADC_CHSELR_CHSEL1) ? (1U) : … 875 …(((__CHANNEL__) & ADC_CHSELR_CHSEL2) == ADC_CHSELR_CHSEL2) ? (2U) : … 877 …(((__CHANNEL__) & ADC_CHSELR_CHSEL3) == ADC_CHSELR_CHSEL3) ? (3U) : … 879 …(((__CHANNEL__) & ADC_CHSELR_CHSEL4) == ADC_CHSELR_CHSEL4) ? (4U) : … 881 … (((__CHANNEL__) & ADC_CHSELR_CHSEL5) == ADC_CHSELR_CHSEL5) ? (5U) : \ 883 … (((__CHANNEL__) & ADC_CHSELR_CHSEL6) == ADC_CHSELR_CHSEL6) ? (6U) : \ [all …]
|
D | stm32l0xx_hal_tim.h | 489 #define IS_TIM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ argument 490 ((__CHANNEL__) == TIM_CHANNEL_2) || \ 491 ((__CHANNEL__) == TIM_CHANNEL_3) || \ 492 ((__CHANNEL__) == TIM_CHANNEL_4) || \ 493 ((__CHANNEL__) == TIM_CHANNEL_ALL)) 495 #define IS_TIM_OPM_CHANNELS(__CHANNEL__) (((__CHANNEL__) == TIM_CHANNEL_1) || \ argument 496 ((__CHANNEL__) == TIM_CHANNEL_2)) 1038 #define TIM_SET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__, __ICPSC__) \ argument 1039 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= (__ICPSC__)) :\ 1040 ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= ((__ICPSC__) << 8U)) :\ [all …]
|
D | stm32l0xx_ll_dma.h | 468 #define __LL_DMA_GET_CHANNEL_INSTANCE(__DMA_INSTANCE__, __CHANNEL__) \ argument 469 ((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 470 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 471 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 472 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 473 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 474 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 477 #define __LL_DMA_GET_CHANNEL_INSTANCE(__DMA_INSTANCE__, __CHANNEL__) \ argument 478 ((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 479 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… [all …]
|
D | stm32l0xx_ll_dac.h | 417 #define __LL_DAC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ argument 418 ((__CHANNEL__) & DAC_SWTR_CHX_MASK)
|
D | stm32l0xx_ll_tim.h | 146 #define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \ argument 147 (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\ 148 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\ 149 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U : 6U)
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/ |
D | stm32l1xx_hal_tim.h | 985 #define TIM_SET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__, __ICPSC__) \ argument 986 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 |= (__ICPSC__)) :\ 987 ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 |= ((__ICPSC__) << 8)) :\ 988 ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 |= (__ICPSC__)) :\ 996 #define TIM_RESET_ICPRESCALERVALUE(__HANDLE__, __CHANNEL__) \ argument 997 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC) :\ 998 ((__CHANNEL__) == TIM_CHANNEL_2) ? ((__HANDLE__)->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC) :\ 999 ((__CHANNEL__) == TIM_CHANNEL_3) ? ((__HANDLE__)->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC) :\ 1009 #define TIM_SET_CAPTUREPOLARITY(__HANDLE__, __CHANNEL__, __POLARITY__) \ argument 1010 (((__CHANNEL__) == TIM_CHANNEL_1) ? ((__HANDLE__)->Instance->CCER |= (__POLARITY__)) :\ [all …]
|
D | stm32l1xx_ll_dma.h | 436 #define __LL_DMA_GET_CHANNEL_INSTANCE(__DMA_INSTANCE__, __CHANNEL__) \ argument 437 ((((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 438 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 439 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 440 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 441 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 442 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 443 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 444 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA2)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… 445 …(((uint32_t)(__DMA_INSTANCE__) == ((uint32_t)DMA1)) && ((uint32_t)(__CHANNEL__) == ((uint32_t)LL_D… [all …]
|
D | stm32l1xx_hal_adc_ex.h | 259 #define __HAL_ADC_CHANNEL_SPEED_FAST(__CHANNEL__) \ argument 260 ( ( ((__CHANNEL__) == ADC_CHANNEL_3) \ 264 ( ( ((__CHANNEL__) == ADC_CHANNEL_8) \ 268 ( ( ((__CHANNEL__) == ADC_CHANNEL_13) \ 277 #define __HAL_ADC_CHANNEL_SPEED_SLOW(__CHANNEL__) \ argument 278 ( ( ((__CHANNEL__) == ADC_CHANNEL_3) \ 282 ( ( ((__CHANNEL__) == ADC_CHANNEL_8) \ 286 ( ( ((__CHANNEL__) == ADC_CHANNEL_13) \ 482 #define ADC_SMPR0_CHANNEL_SET(__HANDLE__, _SAMPLETIME_, __CHANNEL__) \ argument 484 ADC_SMPR0(ADC_SMPR0_SMP30, (__CHANNEL__)), \ [all …]
|
D | stm32l1xx_ll_adc.h | 1290 #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ argument 1291 (((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 1463 #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ argument 1464 (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0U) 1545 #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ argument 1546 ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) 1579 #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ argument 1581 ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) || \ 1582 ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR) || \ 1583 ((__CHANNEL__) == LL_ADC_CHANNEL_VCOMP) || \ [all …]
|
D | stm32l1xx_ll_dac.h | 399 #define __LL_DAC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ argument 400 ((__CHANNEL__) & DAC_SWTR_CHX_MASK)
|
D | stm32l1xx_ll_tim.h | 142 #define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \ argument 143 (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\ 144 ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\ 145 ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U : 6U)
|