/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/ |
D | stm32l4xx_hal_dsi.c | 309 hdsi->Instance->WRPCR &= ~(DSI_WRPCR_PLL_NDIV | DSI_WRPCR_PLL_IDF | DSI_WRPCR_PLL_ODF); in HAL_DSI_Init() 310 …hdsi->Instance->WRPCR |= (((PLLInit->PLLNDIV)<<2U) | ((PLLInit->PLLIDF)<<11U) | ((PLLInit->PLLODF)… in HAL_DSI_Init() 331 hdsi->Instance->PCTLR |= (DSI_PCTLR_CKE | DSI_PCTLR_DEN); in HAL_DSI_Init() 334 hdsi->Instance->CLCR &= ~(DSI_CLCR_DPCC | DSI_CLCR_ACR); in HAL_DSI_Init() 335 hdsi->Instance->CLCR |= (DSI_CLCR_DPCC | hdsi->Init.AutomaticClockLaneControl); in HAL_DSI_Init() 338 hdsi->Instance->PCONFR &= ~DSI_PCONFR_NL; in HAL_DSI_Init() 339 hdsi->Instance->PCONFR |= hdsi->Init.NumberOfLanes; in HAL_DSI_Init() 344 hdsi->Instance->CCR &= ~DSI_CCR_TXECKDIV; in HAL_DSI_Init() 345 hdsi->Instance->CCR |= hdsi->Init.TXEscapeCkdiv; in HAL_DSI_Init() 354 hdsi->Instance->WPCR[0U] &= ~DSI_WPCR0_UIX4; in HAL_DSI_Init() [all …]
|
D | stm32l4xx_hal_adc_ex.c | 151 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_Start() 173 MODIFY_REG(hadc->Instance->CR, ADC_CR_ADCALDIF, SingleDiff); in HAL_ADCEx_Calibration_Start() 176 SET_BIT(hadc->Instance->CR, ADC_CR_ADCAL); in HAL_ADCEx_Calibration_Start() 179 while(LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) in HAL_ADCEx_Calibration_Start() 227 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_GetValue() 231 return LL_ADC_GetCalibrationFactor(hadc->Instance, SingleDiff); in HAL_ADCEx_Calibration_GetValue() 251 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_SetValue() 260 tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); in HAL_ADCEx_Calibration_SetValue() 261 tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); in HAL_ADCEx_Calibration_SetValue() 263 if ( (LL_ADC_IsEnabled(hadc->Instance) != 0UL) in HAL_ADCEx_Calibration_SetValue() [all …]
|
D | stm32l4xx_hal_adc.c | 434 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init() 501 if(LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL) in HAL_ADC_Init() 504 LL_ADC_DisableDeepPowerDown(hadc->Instance); in HAL_ADC_Init() 511 if(LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) in HAL_ADC_Init() 514 LL_ADC_EnableInternalRegulator(hadc->Instance); in HAL_ADC_Init() 529 if(LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) in HAL_ADC_Init() 544 tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance); in HAL_ADC_Init() 560 if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) in HAL_ADC_Init() 562 if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) in HAL_ADC_Init() 581 LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler); in HAL_ADC_Init() [all …]
|
D | stm32l4xx_hal_cryp_ex.c | 326 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_IT() 328 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_IT() 330 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_IT() 332 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_IT() 552 …MODIFY_REG(hcryp->Instance->CR, AES_CR_GCMPH|AES_CR_DATATYPE, CRYP_HEADER_PHASE|hcryp->Init.DataTy… in HAL_CRYPEx_AES_Auth() 557 MODIFY_REG(hcryp->Instance->CR, AES_CR_GCMPH, CRYP_HEADER_PHASE); in HAL_CRYPEx_AES_Auth() 575 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_Auth() 577 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_Auth() 579 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_Auth() 581 hcryp->Instance->DINR = *(uint32_t*)(inputaddr); in HAL_CRYPEx_AES_Auth() [all …]
|
D | stm32l4xx_hal_tim_ex.c | 159 assert_param(IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(htim->Instance)); in HAL_TIMEx_HallSensor_Init() 192 TIM_Base_SetConfig(htim->Instance, &htim->Init); in HAL_TIMEx_HallSensor_Init() 195 TIM_TI1_SetConfig(htim->Instance, sConfig->IC1Polarity, TIM_ICSELECTION_TRC, sConfig->IC1Filter); in HAL_TIMEx_HallSensor_Init() 198 htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC; in HAL_TIMEx_HallSensor_Init() 200 htim->Instance->CCMR1 |= sConfig->IC1Prescaler; in HAL_TIMEx_HallSensor_Init() 203 htim->Instance->CR2 |= TIM_CR2_TI1S; in HAL_TIMEx_HallSensor_Init() 206 htim->Instance->SMCR &= ~TIM_SMCR_TS; in HAL_TIMEx_HallSensor_Init() 207 htim->Instance->SMCR |= TIM_TS_TI1F_ED; in HAL_TIMEx_HallSensor_Init() 210 htim->Instance->SMCR &= ~TIM_SMCR_SMS; in HAL_TIMEx_HallSensor_Init() 211 htim->Instance->SMCR |= TIM_SLAVEMODE_RESET; in HAL_TIMEx_HallSensor_Init() [all …]
|
D | stm32l4xx_hal_dfsdm.c | 321 static uint32_t DFSDM_GetChannelFromInstance(const DFSDM_Channel_TypeDef *Instance); 369 assert_param(IS_DFSDM_CHANNEL_ALL_INSTANCE(hdfsdm_channel->Instance)); in HAL_DFSDM_ChannelInit() 382 if (a_dfsdm1ChannelHandle[DFSDM_GetChannelFromInstance(hdfsdm_channel->Instance)] != NULL) in HAL_DFSDM_ChannelInit() 429 hdfsdm_channel->Instance->CHCFGR1 &= ~(DFSDM_CHCFGR1_DATPACK | DFSDM_CHCFGR1_DATMPX | in HAL_DFSDM_ChannelInit() 431 hdfsdm_channel->Instance->CHCFGR1 |= (hdfsdm_channel->Init.Input.Multiplexer | in HAL_DFSDM_ChannelInit() 436 hdfsdm_channel->Instance->CHCFGR1 &= ~(DFSDM_CHCFGR1_SITP | DFSDM_CHCFGR1_SPICKSEL); in HAL_DFSDM_ChannelInit() 437 hdfsdm_channel->Instance->CHCFGR1 |= (hdfsdm_channel->Init.SerialInterface.Type | in HAL_DFSDM_ChannelInit() 441 hdfsdm_channel->Instance->CHAWSCDR &= ~(DFSDM_CHAWSCDR_AWFORD | DFSDM_CHAWSCDR_AWFOSR); in HAL_DFSDM_ChannelInit() 442 hdfsdm_channel->Instance->CHAWSCDR |= (hdfsdm_channel->Init.Awd.FilterOrder | in HAL_DFSDM_ChannelInit() 446 hdfsdm_channel->Instance->CHCFGR2 &= ~(DFSDM_CHCFGR2_OFFSET | DFSDM_CHCFGR2_DTRBS); in HAL_DFSDM_ChannelInit() [all …]
|
D | stm32l4xx_hal_tim.c | 271 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Init() 301 TIM_Base_SetConfig(htim->Instance, &htim->Init); in HAL_TIM_Base_Init() 317 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_DeInit() 384 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start() 410 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop() 433 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_IT() 456 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_IT() 477 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_DMA() 506 …if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->AR… in HAL_TIM_Base_Start_DMA() 532 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_DMA() [all …]
|
D | stm32l4xx_hal_usart_ex.c | 196 assert_param(IS_UART_SPI_SLAVE_INSTANCE(husart->Instance)); in HAL_USARTEx_EnableSlaveMode() 204 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_EnableSlaveMode() 212 CLEAR_BIT(husart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); in HAL_USARTEx_EnableSlaveMode() 213 CLEAR_BIT(husart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); in HAL_USARTEx_EnableSlaveMode() 216 SET_BIT(husart->Instance->CR2, USART_CR2_SLVEN); in HAL_USARTEx_EnableSlaveMode() 219 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_EnableSlaveMode() 244 assert_param(IS_UART_SPI_SLAVE_INSTANCE(husart->Instance)); in HAL_USARTEx_DisableSlaveMode() 252 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_DisableSlaveMode() 258 CLEAR_BIT(husart->Instance->CR2, USART_CR2_SLVEN); in HAL_USARTEx_DisableSlaveMode() 261 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_DisableSlaveMode() [all …]
|
D | stm32l4xx_hal_opamp_ex.c | 138 assert_param(IS_OPAMP_ALL_INSTANCE(hopamp1->Instance)); in HAL_OPAMPEx_SelfCalibrateAll() 139 assert_param(IS_OPAMP_ALL_INSTANCE(hopamp2->Instance)); in HAL_OPAMPEx_SelfCalibrateAll() 147 opampmode1 = READ_BIT(hopamp1->Instance->CSR,OPAMP_CSR_OPAMODE); in HAL_OPAMPEx_SelfCalibrateAll() 148 opampmode2 = READ_BIT(hopamp2->Instance->CSR,OPAMP_CSR_OPAMODE); in HAL_OPAMPEx_SelfCalibrateAll() 151 MODIFY_REG(hopamp1->Instance->CSR, OPAMP_CSR_OPAMODE, OPAMP_STANDALONE_MODE); in HAL_OPAMPEx_SelfCalibrateAll() 152 MODIFY_REG(hopamp2->Instance->CSR, OPAMP_CSR_OPAMODE, OPAMP_STANDALONE_MODE); in HAL_OPAMPEx_SelfCalibrateAll() 155 SET_BIT(hopamp1->Instance->CSR, OPAMP_CSR_USERTRIM); in HAL_OPAMPEx_SelfCalibrateAll() 156 SET_BIT(hopamp2->Instance->CSR, OPAMP_CSR_USERTRIM); in HAL_OPAMPEx_SelfCalibrateAll() 178 SET_BIT (hopamp1->Instance->CSR, OPAMP_CSR_CALON); in HAL_OPAMPEx_SelfCalibrateAll() 179 SET_BIT (hopamp2->Instance->CSR, OPAMP_CSR_CALON); in HAL_OPAMPEx_SelfCalibrateAll() [all …]
|
D | stm32l4xx_hal_smartcard.c | 353 assert_param(IS_SMARTCARD_INSTANCE(hsmartcard->Instance)); in HAL_SMARTCARD_Init() 379 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 384 CLEAR_BIT(hsmartcard->Instance->CR2, USART_CR2_LINEN); in HAL_SMARTCARD_Init() 385 CLEAR_BIT(hsmartcard->Instance->CR3, (USART_CR3_HDSEL | USART_CR3_IREN)); in HAL_SMARTCARD_Init() 388 SET_BIT(hsmartcard->Instance->CR3, USART_CR3_SCEN); in HAL_SMARTCARD_Init() 405 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 426 assert_param(IS_SMARTCARD_INSTANCE(hsmartcard->Instance)); in HAL_SMARTCARD_DeInit() 431 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_DeInit() 433 WRITE_REG(hsmartcard->Instance->CR1, 0x0U); in HAL_SMARTCARD_DeInit() 434 WRITE_REG(hsmartcard->Instance->CR2, 0x0U); in HAL_SMARTCARD_DeInit() [all …]
|
D | stm32l4xx_hal_uart.c | 338 assert_param(IS_UART_HWFLOW_INSTANCE(huart->Instance)); in HAL_UART_Init() 343 assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance))); in HAL_UART_Init() 386 CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); in HAL_UART_Init() 387 CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); in HAL_UART_Init() 411 assert_param(IS_UART_HALFDUPLEX_INSTANCE(huart->Instance)); in HAL_HalfDuplex_Init() 453 CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); in HAL_HalfDuplex_Init() 454 CLEAR_BIT(huart->Instance->CR3, (USART_CR3_IREN | USART_CR3_SCEN)); in HAL_HalfDuplex_Init() 457 SET_BIT(huart->Instance->CR3, USART_CR3_HDSEL); in HAL_HalfDuplex_Init() 486 assert_param(IS_UART_LIN_INSTANCE(huart->Instance)); in HAL_LIN_Init() 541 CLEAR_BIT(huart->Instance->CR2, USART_CR2_CLKEN); in HAL_LIN_Init() [all …]
|
D | stm32l4xx_hal_dma2d.c | 262 assert_param(IS_DMA2D_ALL_INSTANCE(hdma2d->Instance)); in HAL_DMA2D_Init() 304 …MODIFY_REG(hdma2d->Instance->CR, DMA2D_CR_MODE | DMA2D_CR_LOM, hdma2d->Init.Mode | hdma2d->Init.Li… in HAL_DMA2D_Init() 306 MODIFY_REG(hdma2d->Instance->CR, DMA2D_CR_MODE, hdma2d->Init.Mode); in HAL_DMA2D_Init() 311 …MODIFY_REG(hdma2d->Instance->OPFCCR, DMA2D_OPFCCR_CM | DMA2D_OPFCCR_SB, hdma2d->Init.ColorMode | h… in HAL_DMA2D_Init() 313 MODIFY_REG(hdma2d->Instance->OPFCCR, DMA2D_OPFCCR_CM, hdma2d->Init.ColorMode); in HAL_DMA2D_Init() 317 MODIFY_REG(hdma2d->Instance->OOR, DMA2D_OOR_LO, hdma2d->Init.OutputOffset); in HAL_DMA2D_Init() 319 …MODIFY_REG(hdma2d->Instance->OPFCCR,(DMA2D_OPFCCR_AI|DMA2D_OPFCCR_RBS), ((hdma2d->Init.AlphaInvert… in HAL_DMA2D_Init() 353 if ((hdma2d->Instance->CR & DMA2D_CR_START) == DMA2D_CR_START) in HAL_DMA2D_DeInit() 364 if ((hdma2d->Instance->BGPFCCR & DMA2D_BGPFCCR_START) == DMA2D_BGPFCCR_START) in HAL_DMA2D_DeInit() 375 if ((hdma2d->Instance->FGPFCCR & DMA2D_FGPFCCR_START) == DMA2D_FGPFCCR_START) in HAL_DMA2D_DeInit() [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/ |
D | stm32l1xx_hal_dma.h | 130 …DMA_Channel_TypeDef *Instance; /*!< Register base address … member 328 #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= DMA_CCR_EN) 335 #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~DMA_CCR_EN) 350 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ 351 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel1))? DMA_FLAG_TC1 :\ 352 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ 353 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel2))? DMA_FLAG_TC2 :\ 354 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ 355 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel3))? DMA_FLAG_TC3 :\ 356 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TC4 :\ [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/ |
D | stm32l0xx_hal_pcd.c | 142 assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); in HAL_PCD_Init() 181 hpcd->Instance->CNTR = USB_CNTR_FRES; in HAL_PCD_Init() 184 hpcd->Instance->CNTR = 0U; in HAL_PCD_Init() 187 hpcd->Instance->ISTR = 0U; in HAL_PCD_Init() 190 hpcd->Instance->BTABLE = BTABLE_ADDRESS; in HAL_PCD_Init() 197 hpcd->Instance->CNTR = wInterrupt_Mask; in HAL_PCD_Init() 299 hpcd->Instance->BCDR |= USB_BCDR_DPPU; in HAL_PCD_Start() 314 hpcd->Instance->CNTR = USB_CNTR_FRES; in HAL_PCD_Stop() 317 hpcd->Instance->ISTR = 0U; in HAL_PCD_Stop() 320 hpcd->Instance->CNTR = (USB_CNTR_FRES | USB_CNTR_PDWN); in HAL_PCD_Stop() [all …]
|
D | stm32l0xx_hal_tim.c | 216 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Init() 235 TIM_Base_SetConfig(htim->Instance, &htim->Init); in HAL_TIM_Base_Init() 251 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_DeInit() 308 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start() 331 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop() 354 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_IT() 374 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_IT() 395 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_DMA() 419 …HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->ARR, L… in HAL_TIM_Base_Start_DMA() 439 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_DMA() [all …]
|
D | stm32l0xx_hal_smartcard.c | 260 assert_param(IS_SMARTCARD_INSTANCE(hsmartcard->Instance)); in HAL_SMARTCARD_Init() 274 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 279 CLEAR_BIT(hsmartcard->Instance->CR2, USART_CR2_LINEN); in HAL_SMARTCARD_Init() 280 CLEAR_BIT(hsmartcard->Instance->CR3, (USART_CR3_HDSEL | USART_CR3_IREN)); in HAL_SMARTCARD_Init() 283 SET_BIT(hsmartcard->Instance->CR3, USART_CR3_SCEN); in HAL_SMARTCARD_Init() 297 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 318 assert_param(IS_SMARTCARD_INSTANCE(hsmartcard->Instance)); in HAL_SMARTCARD_DeInit() 323 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_DeInit() 325 WRITE_REG(hsmartcard->Instance->CR1, 0x0); in HAL_SMARTCARD_DeInit() 326 WRITE_REG(hsmartcard->Instance->CR2, 0x0); in HAL_SMARTCARD_DeInit() [all …]
|
D | stm32l0xx_hal_uart.c | 236 assert_param(IS_UART_HWFLOW_INSTANCE(huart->Instance)); in HAL_UART_Init() 241 assert_param(IS_UART_INSTANCE(huart->Instance)); in HAL_UART_Init() 272 CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); in HAL_UART_Init() 273 CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); in HAL_UART_Init() 297 assert_param(IS_UART_HALFDUPLEX_INSTANCE(huart->Instance)); in HAL_HalfDuplex_Init() 327 CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); in HAL_HalfDuplex_Init() 328 CLEAR_BIT(huart->Instance->CR3, (USART_CR3_IREN | USART_CR3_SCEN)); in HAL_HalfDuplex_Init() 331 SET_BIT(huart->Instance->CR3, USART_CR3_HDSEL); in HAL_HalfDuplex_Init() 360 assert_param(IS_UART_LIN_INSTANCE(huart->Instance)); in HAL_LIN_Init() 403 CLEAR_BIT(huart->Instance->CR2, USART_CR2_CLKEN); in HAL_LIN_Init() [all …]
|
D | stm32l0xx_hal_irda.c | 264 assert_param(IS_IRDA_INSTANCE(hirda->Instance)); in HAL_IRDA_Init() 289 CLEAR_BIT(hirda->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN | USART_CR2_STOP)); in HAL_IRDA_Init() 290 CLEAR_BIT(hirda->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL)); in HAL_IRDA_Init() 293 hirda->Instance->CR3 |= USART_CR3_IREN; in HAL_IRDA_Init() 317 assert_param(IS_IRDA_INSTANCE(hirda->Instance)); in HAL_IRDA_DeInit() 512 hirda->Instance->TDR = (*tmp & (uint16_t)0x01FFU); in HAL_IRDA_Transmit() 517 hirda->Instance->TDR = (*pData++ & (uint8_t)0xFFU); in HAL_IRDA_Transmit() 607 *tmp = (uint16_t)(hirda->Instance->RDR & uhMask); in HAL_IRDA_Receive() 612 *pData++ = (uint8_t)(hirda->Instance->RDR & (uint8_t)uhMask); in HAL_IRDA_Receive() 677 SET_BIT(hirda->Instance->CR1, USART_CR1_TXEIE); in HAL_IRDA_Transmit_IT() [all …]
|
D | stm32l0xx_hal_usart.c | 210 assert_param(IS_USART_INSTANCE(husart->Instance)); in HAL_USART_Init() 235 husart->Instance->CR2 &= ~USART_CR2_LINEN; in HAL_USART_Init() 236 husart->Instance->CR3 &= ~(USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN); in HAL_USART_Init() 259 assert_param(IS_USART_INSTANCE(husart->Instance)); in HAL_USART_DeInit() 263 husart->Instance->CR1 = 0x0U; in HAL_USART_DeInit() 264 husart->Instance->CR2 = 0x0U; in HAL_USART_DeInit() 265 husart->Instance->CR3 = 0x0U; in HAL_USART_DeInit() 446 husart->Instance->TDR = (*tmp & (uint16_t)0x01FFU); in HAL_USART_Transmit() 451 husart->Instance->TDR = (*pTxData++ & (uint8_t)0xFFU); in HAL_USART_Transmit() 540 husart->Instance->TDR = (USART_DUMMY_DATA & (uint16_t)0x0FFU); in HAL_USART_Receive() [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/ |
D | stm32l1xx_hal_pcd.c | 149 assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); in HAL_PCD_Init() 188 hpcd->Instance->CNTR = USB_CNTR_FRES; in HAL_PCD_Init() 191 hpcd->Instance->CNTR = 0; in HAL_PCD_Init() 194 hpcd->Instance->ISTR = 0; in HAL_PCD_Init() 197 hpcd->Instance->BTABLE = BTABLE_ADDRESS; in HAL_PCD_Init() 204 hpcd->Instance->CNTR = wInterrupt_Mask; in HAL_PCD_Init() 309 hpcd->Instance->CNTR = USB_CNTR_FRES; in HAL_PCD_Stop() 312 hpcd->Instance->ISTR = 0; in HAL_PCD_Stop() 315 hpcd->Instance->CNTR = (USB_CNTR_FRES | USB_CNTR_PDWN); in HAL_PCD_Stop() 345 while (((wIstr = hpcd->Instance->ISTR) & USB_ISTR_CTR) != 0) in PCD_EP_ISR_Handler() [all …]
|
D | stm32l1xx_hal_tim.c | 216 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Init() 233 TIM_Base_SetConfig(htim->Instance, &htim->Init); in HAL_TIM_Base_Init() 249 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_DeInit() 307 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start() 330 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop() 353 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_IT() 373 assert_param(IS_TIM_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_IT() 394 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Start_DMA() 423 …HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_UPDATE], (uint32_t)pData, (uint32_t)&htim->Instance->ARR, L… in HAL_TIM_Base_Start_DMA() 443 assert_param(IS_TIM_DMA_INSTANCE(htim->Instance)); in HAL_TIM_Base_Stop_DMA() [all …]
|
D | stm32l1xx_hal_i2c.c | 377 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); in HAL_I2C_Init() 415 MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); in HAL_I2C_Init() 419 …MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)… in HAL_I2C_Init() 423 …MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->… in HAL_I2C_Init() 427 …MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | … in HAL_I2C_Init() 431 …MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_… in HAL_I2C_Init() 435 …MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | … in HAL_I2C_Init() 463 assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); in HAL_I2C_DeInit() 614 if((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) in HAL_I2C_Master_Transmit() 621 CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); in HAL_I2C_Master_Transmit() [all …]
|
D | stm32l1xx_hal_adc_ex.c | 133 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_InjectedStart() 177 HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) ) in HAL_ADCEx_InjectedStart() 180 SET_BIT(hadc->Instance->CR2, ADC_CR2_JSWSTART); in HAL_ADCEx_InjectedStart() 205 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_InjectedStop() 217 HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_JAUTO) ) in HAL_ADCEx_InjectedStop() 266 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_InjectedPollForConversion() 292 if (((hadc->Instance->JSQR & ADC_JSQR_JL) == RESET) || in HAL_ADCEx_InjectedPollForConversion() 296 while(HAL_IS_BIT_CLR(hadc->Instance->SR, ADC_FLAG_JEOC)) in HAL_ADCEx_InjectedPollForConversion() 362 (HAL_IS_BIT_CLR(hadc->Instance->JSQR, ADC_JSQR_JL) || in HAL_ADCEx_InjectedPollForConversion() 363 HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) && in HAL_ADCEx_InjectedPollForConversion() [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_dma.h | 131 …DMA_Channel_TypeDef *Instance; /*!< Register b… member 473 #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= DMA_CCR_EN) 480 #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~DMA_CCR_EN) 492 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ 493 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel1))? DMA_FLAG_TC1 :\ 494 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ 495 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel2))? DMA_FLAG_TC2 :\ 496 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ 497 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA2_Channel3))? DMA_FLAG_TC3 :\ 498 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TC4 :\ [all …]
|
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ |
D | stm32l0xx_hal_dma.h | 136 …DMA_Channel_TypeDef *Instance; /*!< Register … member 444 #define __HAL_DMA_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR |= DMA_CCR_EN) 451 #define __HAL_DMA_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CCR &= ~DMA_CCR_EN) 464 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ 465 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ 466 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ 467 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel4))? DMA_FLAG_TC4 :\ 471 (((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel1))? DMA_FLAG_TC1 :\ 472 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel2))? DMA_FLAG_TC2 :\ 473 ((uint32_t)((__HANDLE__)->Instance) == ((uint32_t)DMA1_Channel3))? DMA_FLAG_TC3 :\ [all …]
|