/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ |
D | stm32l0xx_ll_i2c.h | 409 SET_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Enable() 423 CLEAR_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Disable() 434 return (READ_BIT(I2Cx->CR1, I2C_CR1_PE) == (I2C_CR1_PE)); in LL_I2C_IsEnabled() 454 …MODIFY_REG(I2Cx->CR1, I2C_CR1_ANFOFF | I2C_CR1_DNF, AnalogFilter | (DigitalFilter << I2C_CR1_DNF_P… in LL_I2C_ConfigFilters() 470 MODIFY_REG(I2Cx->CR1, I2C_CR1_DNF, DigitalFilter << I2C_CR1_DNF_Pos); in LL_I2C_SetDigitalFilter() 481 return (uint32_t)(READ_BIT(I2Cx->CR1, I2C_CR1_DNF) >> I2C_CR1_DNF_Pos); in LL_I2C_GetDigitalFilter() 493 CLEAR_BIT(I2Cx->CR1, I2C_CR1_ANFOFF); in LL_I2C_EnableAnalogFilter() 505 SET_BIT(I2Cx->CR1, I2C_CR1_ANFOFF); in LL_I2C_DisableAnalogFilter() 516 return (READ_BIT(I2Cx->CR1, I2C_CR1_ANFOFF) != (I2C_CR1_ANFOFF)); in LL_I2C_IsEnabledAnalogFilter() 527 SET_BIT(I2Cx->CR1, I2C_CR1_TXDMAEN); in LL_I2C_EnableDMAReq_TX() [all …]
|
D | stm32l0xx_ll_lpuart.h | 413 SET_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Enable() 432 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Disable() 443 return (READ_BIT(LPUARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)); in LL_LPUART_IsEnabled() 456 SET_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_EnableInStopMode() 468 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_DisableInStopMode() 480 return (READ_BIT(LPUARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)); in LL_LPUART_IsEnabledInStopMode() 491 SET_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_EnableDirectionRx() 502 CLEAR_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_DisableDirectionRx() 513 SET_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_EnableDirectionTx() 524 CLEAR_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_DisableDirectionTx() [all …]
|
D | stm32l0xx_ll_usart.h | 557 SET_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Enable() 571 CLEAR_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Disable() 582 return (READ_BIT(USARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)); in LL_USART_IsEnabled() 597 SET_BIT(USARTx->CR1, USART_CR1_UESM); in LL_USART_EnableInStopMode() 611 CLEAR_BIT(USARTx->CR1, USART_CR1_UESM); in LL_USART_DisableInStopMode() 624 return (READ_BIT(USARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)); in LL_USART_IsEnabledInStopMode() 635 SET_BIT(USARTx->CR1, USART_CR1_RE); in LL_USART_EnableDirectionRx() 646 CLEAR_BIT(USARTx->CR1, USART_CR1_RE); in LL_USART_DisableDirectionRx() 657 SET_BIT(USARTx->CR1, USART_CR1_TE); in LL_USART_EnableDirectionTx() 668 CLEAR_BIT(USARTx->CR1, USART_CR1_TE); in LL_USART_DisableDirectionTx() [all …]
|
D | stm32l0xx_ll_spi.h | 317 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable() 329 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable() 340 return (READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)); in LL_SPI_IsEnabled() 356 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode() 370 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode() 414 MODIFY_REG(SPIx->CR1, SPI_CR1_CPHA, ClockPhase); in LL_SPI_SetClockPhase() 427 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPHA)); in LL_SPI_GetClockPhase() 443 MODIFY_REG(SPIx->CR1, SPI_CR1_CPOL, ClockPolarity); in LL_SPI_SetClockPolarity() 456 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPOL)); in LL_SPI_GetClockPolarity() 477 MODIFY_REG(SPIx->CR1, SPI_CR1_BR, BaudRate); in LL_SPI_SetBaudRatePrescaler() [all …]
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_ll_i2c.h | 409 SET_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Enable() 423 CLEAR_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Disable() 434 return ((READ_BIT(I2Cx->CR1, I2C_CR1_PE) == (I2C_CR1_PE)) ? 1UL : 0UL); in LL_I2C_IsEnabled() 454 …MODIFY_REG(I2Cx->CR1, I2C_CR1_ANFOFF | I2C_CR1_DNF, AnalogFilter | (DigitalFilter << I2C_CR1_DNF_P… in LL_I2C_ConfigFilters() 470 MODIFY_REG(I2Cx->CR1, I2C_CR1_DNF, DigitalFilter << I2C_CR1_DNF_Pos); in LL_I2C_SetDigitalFilter() 481 return (uint32_t)(READ_BIT(I2Cx->CR1, I2C_CR1_DNF) >> I2C_CR1_DNF_Pos); in LL_I2C_GetDigitalFilter() 493 CLEAR_BIT(I2Cx->CR1, I2C_CR1_ANFOFF); in LL_I2C_EnableAnalogFilter() 505 SET_BIT(I2Cx->CR1, I2C_CR1_ANFOFF); in LL_I2C_DisableAnalogFilter() 516 return ((READ_BIT(I2Cx->CR1, I2C_CR1_ANFOFF) != (I2C_CR1_ANFOFF)) ? 1UL : 0UL); in LL_I2C_IsEnabledAnalogFilter() 527 SET_BIT(I2Cx->CR1, I2C_CR1_TXDMAEN); in LL_I2C_EnableDMAReq_TX() [all …]
|
D | stm32l4xx_ll_lpuart.h | 526 SET_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Enable() 545 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Disable() 556 return (READ_BIT(LPUARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)); in LL_LPUART_IsEnabled() 568 SET_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); in LL_LPUART_EnableFIFO() 579 CLEAR_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); in LL_LPUART_DisableFIFO() 590 return (READ_BIT(LPUARTx->CR1, USART_CR1_FIFOEN) == (USART_CR1_FIFOEN)); in LL_LPUART_IsEnabledFIFO() 700 SET_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_EnableInStopMode() 712 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_DisableInStopMode() 724 return (READ_BIT(LPUARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)); in LL_LPUART_IsEnabledInStopMode() 772 SET_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_EnableDirectionRx() [all …]
|
D | stm32l4xx_ll_spi.h | 377 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable() 389 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable() 400 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled() 416 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode() 430 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode() 474 MODIFY_REG(SPIx->CR1, SPI_CR1_CPHA, ClockPhase); in LL_SPI_SetClockPhase() 487 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPHA)); in LL_SPI_GetClockPhase() 503 MODIFY_REG(SPIx->CR1, SPI_CR1_CPOL, ClockPolarity); in LL_SPI_SetClockPolarity() 516 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPOL)); in LL_SPI_GetClockPolarity() 537 MODIFY_REG(SPIx->CR1, SPI_CR1_BR, BaudRate); in LL_SPI_SetBaudRatePrescaler() [all …]
|
D | stm32l4xx_ll_usart.h | 697 SET_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Enable() 711 CLEAR_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Disable() 722 return ((READ_BIT(USARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)) ? 1UL : 0UL); in LL_USART_IsEnabled() 736 SET_BIT(USARTx->CR1, USART_CR1_FIFOEN); in LL_USART_EnableFIFO() 749 CLEAR_BIT(USARTx->CR1, USART_CR1_FIFOEN); in LL_USART_DisableFIFO() 762 return ((READ_BIT(USARTx->CR1, USART_CR1_FIFOEN) == (USART_CR1_FIFOEN)) ? 1UL : 0UL); in LL_USART_IsEnabledFIFO() 884 SET_BIT(USARTx->CR1, USART_CR1_UESM); in LL_USART_EnableInStopMode() 898 CLEAR_BIT(USARTx->CR1, USART_CR1_UESM); in LL_USART_DisableInStopMode() 911 return ((READ_BIT(USARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)) ? 1UL : 0UL); in LL_USART_IsEnabledInStopMode() 959 SET_BIT(USARTx->CR1, USART_CR1_RE); in LL_USART_EnableDirectionRx() [all …]
|
D | stm32l4xx_ll_pwr.h | 294 SET_BIT(PWR->CR1, PWR_CR1_LPR); in LL_PWR_EnableLowPowerRunMode() 304 CLEAR_BIT(PWR->CR1, PWR_CR1_LPR); in LL_PWR_DisableLowPowerRunMode() 334 return ((READ_BIT(PWR->CR1, PWR_CR1_LPR) == (PWR_CR1_LPR)) ? 1UL : 0UL); in LL_PWR_IsEnabledLowPowerRunMode() 348 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling); in LL_PWR_SetRegulVoltageScaling() 360 return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_VOS)); in LL_PWR_GetRegulVoltageScaling() 402 SET_BIT(PWR->CR1, PWR_CR1_DBP); in LL_PWR_EnableBkUpAccess() 412 CLEAR_BIT(PWR->CR1, PWR_CR1_DBP); in LL_PWR_DisableBkUpAccess() 422 return ((READ_BIT(PWR->CR1, PWR_CR1_DBP) == (PWR_CR1_DBP)) ? 1UL : 0UL); in LL_PWR_IsEnabledBkUpAccess() 438 MODIFY_REG(PWR->CR1, PWR_CR1_LPMS, LowPowerMode); in LL_PWR_SetPowerMode() 453 return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_LPMS)); in LL_PWR_GetPowerMode() [all …]
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/ |
D | stm32l1xx_hal_i2c.c | 427 …MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | … in HAL_I2C_Init() 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() 661 SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); in HAL_I2C_Master_Transmit() 689 SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); in HAL_I2C_Master_Transmit() 700 SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); in HAL_I2C_Master_Transmit() 746 if((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) in HAL_I2C_Master_Receive() 753 CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); in HAL_I2C_Master_Receive() 788 SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); in HAL_I2C_Master_Receive() 793 CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); in HAL_I2C_Master_Receive() [all …]
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/ |
D | stm32l4xx_hal_usart_ex.c | 204 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_EnableSlaveMode() 219 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_EnableSlaveMode() 252 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_DisableSlaveMode() 261 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_DisableSlaveMode() 301 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_ConfigNSS() 310 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_ConfigNSS() 340 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_EnableFifoMode() 350 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_EnableFifoMode() 381 tmpcr1 = READ_REG(husart->Instance->CR1); in HAL_USARTEx_DisableFifoMode() 391 WRITE_REG(husart->Instance->CR1, tmpcr1); in HAL_USARTEx_DisableFifoMode() [all …]
|
D | stm32l4xx_hal_smartcard.c | 379 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 405 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 431 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_DeInit() 433 WRITE_REG(hsmartcard->Instance->CR1, 0x0U); in HAL_SMARTCARD_DeInit() 853 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 856 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_RE); in HAL_SMARTCARD_Transmit() 858 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_TE); in HAL_SMARTCARD_Transmit() 861 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 885 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 886 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_RE); in HAL_SMARTCARD_Transmit() [all …]
|
D | stm32l4xx_hal_pwr_ex.c | 134 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_GetVoltageRange() 148 return (PWR->CR1 & PWR_CR1_VOS); in HAL_PWREx_GetVoltageRange() 190 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 196 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 219 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) == PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() 225 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 248 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE2); in HAL_PWREx_ControlVoltageScaling() 258 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE1) in HAL_PWREx_ControlVoltageScaling() 261 MODIFY_REG(PWR->CR1, PWR_CR1_VOS, PWR_REGULATOR_VOLTAGE_SCALE1); in HAL_PWREx_ControlVoltageScaling() 277 if (READ_BIT(PWR->CR1, PWR_CR1_VOS) != PWR_REGULATOR_VOLTAGE_SCALE2) in HAL_PWREx_ControlVoltageScaling() [all …]
|
D | stm32l4xx_hal_uart_ex.c | 250 MODIFY_REG(huart->Instance->CR1, (USART_CR1_DEDT | USART_CR1_DEAT), temp); in HAL_RS485Ex_Init() 521 SET_BIT(huart->Instance->CR1, USART_CR1_UESM); in HAL_UARTEx_EnableStopMode() 540 CLEAR_BIT(huart->Instance->CR1, USART_CR1_UESM); in HAL_UARTEx_DisableStopMode() 567 tmpcr1 = READ_REG(huart->Instance->CR1); in HAL_UARTEx_EnableFifoMode() 577 WRITE_REG(huart->Instance->CR1, tmpcr1); in HAL_UARTEx_EnableFifoMode() 608 tmpcr1 = READ_REG(huart->Instance->CR1); in HAL_UARTEx_DisableFifoMode() 618 WRITE_REG(huart->Instance->CR1, tmpcr1); in HAL_UARTEx_DisableFifoMode() 655 tmpcr1 = READ_REG(huart->Instance->CR1); in HAL_UARTEx_SetTxFifoThreshold() 667 WRITE_REG(huart->Instance->CR1, tmpcr1); in HAL_UARTEx_SetTxFifoThreshold() 704 tmpcr1 = READ_REG(huart->Instance->CR1); in HAL_UARTEx_SetRxFifoThreshold() [all …]
|
D | stm32l4xx_hal_i2c_ex.c | 130 hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); in HAL_I2CEx_ConfigAnalogFilter() 133 hi2c->Instance->CR1 |= AnalogFilter; in HAL_I2CEx_ConfigAnalogFilter() 176 tmpreg = hi2c->Instance->CR1; in HAL_I2CEx_ConfigDigitalFilter() 185 hi2c->Instance->CR1 = tmpreg; in HAL_I2CEx_ConfigDigitalFilter() 224 hi2c->Instance->CR1 |= I2C_CR1_WUPEN; in HAL_I2CEx_EnableWakeUp() 263 hi2c->Instance->CR1 &= ~(I2C_CR1_WUPEN); in HAL_I2CEx_DisableWakeUp()
|
D | stm32l4xx_hal_smartcard_ex.c | 297 tmpcr1 = READ_REG(hsmartcard->Instance->CR1); in HAL_SMARTCARDEx_EnableFifoMode() 307 WRITE_REG(hsmartcard->Instance->CR1, tmpcr1); in HAL_SMARTCARDEx_EnableFifoMode() 338 tmpcr1 = READ_REG(hsmartcard->Instance->CR1); in HAL_SMARTCARDEx_DisableFifoMode() 348 WRITE_REG(hsmartcard->Instance->CR1, tmpcr1); in HAL_SMARTCARDEx_DisableFifoMode() 385 tmpcr1 = READ_REG(hsmartcard->Instance->CR1); in HAL_SMARTCARDEx_SetTxFifoThreshold() 397 MODIFY_REG(hsmartcard->Instance->CR1, USART_CR1_UE, tmpcr1); in HAL_SMARTCARDEx_SetTxFifoThreshold() 434 tmpcr1 = READ_REG(hsmartcard->Instance->CR1); in HAL_SMARTCARDEx_SetRxFifoThreshold() 446 MODIFY_REG(hsmartcard->Instance->CR1, USART_CR1_UE, tmpcr1); in HAL_SMARTCARDEx_SetRxFifoThreshold()
|
D | stm32l4xx_hal_uart.c | 637 MODIFY_REG(huart->Instance->CR1, USART_CR1_WAKE, WakeUpMethod); in HAL_MultiProcessor_Init() 668 huart->Instance->CR1 = 0x0U; in HAL_UART_DeInit() 1294 SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE); in HAL_UART_Transmit_IT() 1296 SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE); in HAL_UART_Transmit_IT() 1360 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_Receive_IT() 1381 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE); in HAL_UART_Receive_IT() 1383 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE); in HAL_UART_Receive_IT() 1502 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_Receive_DMA() 1539 CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_DMAPause() 1573 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_DMAResume() [all …]
|
D | stm32l4xx_hal_irda.c | 1015 SET_BIT(hirda->Instance->CR1, USART_CR1_TXEIE_TXFNFIE); in HAL_IRDA_Transmit_IT() 1017 SET_BIT(hirda->Instance->CR1, USART_CR1_TXEIE); in HAL_IRDA_Transmit_IT() 1065 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE); in HAL_IRDA_Receive_IT() 1067 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE); in HAL_IRDA_Receive_IT() 1204 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_Receive_DMA() 1260 CLEAR_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_DMAPause() 1296 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_DMAResume() 1402 …CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_TXEIE_TXFNF… in HAL_IRDA_Abort() 1404 …CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_T… in HAL_IRDA_Abort() 1498 CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE | USART_CR1_TCIE)); in HAL_IRDA_AbortTransmit() [all …]
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/ |
D | stm32l1xx_ll_i2c.h | 367 SET_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Enable() 378 CLEAR_BIT(I2Cx->CR1, I2C_CR1_PE); in LL_I2C_Disable() 389 return (READ_BIT(I2Cx->CR1, I2C_CR1_PE) == (I2C_CR1_PE)); in LL_I2C_IsEnabled() 479 CLEAR_BIT(I2Cx->CR1, I2C_CR1_NOSTRETCH); in LL_I2C_EnableClockStretching() 491 SET_BIT(I2Cx->CR1, I2C_CR1_NOSTRETCH); in LL_I2C_DisableClockStretching() 502 return (READ_BIT(I2Cx->CR1, I2C_CR1_NOSTRETCH) != (I2C_CR1_NOSTRETCH)); in LL_I2C_IsEnabledClockStretching() 514 SET_BIT(I2Cx->CR1, I2C_CR1_ENGC); in LL_I2C_EnableGeneralCall() 526 CLEAR_BIT(I2Cx->CR1, I2C_CR1_ENGC); in LL_I2C_DisableGeneralCall() 537 return (READ_BIT(I2Cx->CR1, I2C_CR1_ENGC) == (I2C_CR1_ENGC)); in LL_I2C_IsEnabledGeneralCall() 796 MODIFY_REG(I2Cx->CR1, I2C_CR1_SMBUS | I2C_CR1_SMBTYPE | I2C_CR1_ENARP, PeripheralMode); in LL_I2C_SetMode() [all …]
|
D | stm32l1xx_ll_usart.h | 417 SET_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Enable() 431 CLEAR_BIT(USARTx->CR1, USART_CR1_UE); in LL_USART_Disable() 442 return (READ_BIT(USARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)); in LL_USART_IsEnabled() 453 SET_BIT(USARTx->CR1, USART_CR1_RE); in LL_USART_EnableDirectionRx() 464 CLEAR_BIT(USARTx->CR1, USART_CR1_RE); in LL_USART_DisableDirectionRx() 475 SET_BIT(USARTx->CR1, USART_CR1_TE); in LL_USART_EnableDirectionTx() 486 CLEAR_BIT(USARTx->CR1, USART_CR1_TE); in LL_USART_DisableDirectionTx() 504 MODIFY_REG(USARTx->CR1, USART_CR1_RE | USART_CR1_TE, TransferDirection); in LL_USART_SetTransferDirection() 520 return (uint32_t)(READ_BIT(USARTx->CR1, USART_CR1_RE | USART_CR1_TE)); in LL_USART_GetTransferDirection() 539 MODIFY_REG(USARTx->CR1, USART_CR1_PS | USART_CR1_PCE, Parity); in LL_USART_SetParity() [all …]
|
D | stm32l1xx_ll_spi.h | 318 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable() 330 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable() 341 return (READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)); in LL_SPI_IsEnabled() 357 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode() 371 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode() 417 MODIFY_REG(SPIx->CR1, SPI_CR1_CPHA, ClockPhase); in LL_SPI_SetClockPhase() 430 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPHA)); in LL_SPI_GetClockPhase() 446 MODIFY_REG(SPIx->CR1, SPI_CR1_CPOL, ClockPolarity); in LL_SPI_SetClockPolarity() 459 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_CPOL)); in LL_SPI_GetClockPolarity() 480 MODIFY_REG(SPIx->CR1, SPI_CR1_BR, BaudRate); in LL_SPI_SetBaudRatePrescaler() [all …]
|
/loramac-node-2.7.6/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/ |
D | stm32l0xx_hal_smartcard.c | 274 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 297 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Init() 323 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_DeInit() 325 WRITE_REG(hsmartcard->Instance->CR1, 0x0); in HAL_SMARTCARD_DeInit() 488 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 491 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_RE); in HAL_SMARTCARD_Transmit() 493 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_TE); in HAL_SMARTCARD_Transmit() 496 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 518 CLEAR_BIT(hsmartcard->Instance->CR1, USART_CR1_UE); in HAL_SMARTCARD_Transmit() 519 SET_BIT(hsmartcard->Instance->CR1, USART_CR1_RE); in HAL_SMARTCARD_Transmit() [all …]
|
D | stm32l0xx_hal_i2c_ex.c | 130 hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); in HAL_I2CEx_ConfigAnalogFilter() 133 hi2c->Instance->CR1 |= AnalogFilter; in HAL_I2CEx_ConfigAnalogFilter() 176 tmpreg = hi2c->Instance->CR1; in HAL_I2CEx_ConfigDigitalFilter() 185 hi2c->Instance->CR1 = tmpreg; in HAL_I2CEx_ConfigDigitalFilter() 224 hi2c->Instance->CR1 |= I2C_CR1_WUPEN; in HAL_I2CEx_EnableWakeUp() 263 hi2c->Instance->CR1 &= ~(I2C_CR1_WUPEN); in HAL_I2CEx_DisableWakeUp()
|
D | stm32l0xx_hal_uart.c | 487 MODIFY_REG(huart->Instance->CR1, USART_CR1_WAKE, WakeUpMethod); in HAL_MultiProcessor_Init() 518 huart->Instance->CR1 = 0x0U; in HAL_UART_DeInit() 863 SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE); in HAL_UART_Transmit_IT() 925 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE); in HAL_UART_Receive_IT() 1071 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_Receive_DMA() 1108 CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_DMAPause() 1142 SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); in HAL_UART_DMAResume() 1217 …CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_T… in HAL_UART_Abort() 1284 CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); in HAL_UART_AbortTransmit() 1326 CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); in HAL_UART_AbortReceive() [all …]
|
D | stm32l0xx_hal_irda.c | 677 SET_BIT(hirda->Instance->CR1, USART_CR1_TXEIE); in HAL_IRDA_Transmit_IT() 738 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE| USART_CR1_RXNEIE); in HAL_IRDA_Receive_IT() 890 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_Receive_DMA() 929 CLEAR_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_DMAPause() 964 SET_BIT(hirda->Instance->CR1, USART_CR1_PEIE); in HAL_IRDA_DMAResume() 1041 …CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_T… in HAL_IRDA_Abort() 1109 CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); in HAL_IRDA_AbortTransmit() 1152 CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); in HAL_IRDA_AbortReceive() 1203 …CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE | USART_CR1_T… in HAL_IRDA_Abort_IT() 1327 CLEAR_BIT(hirda->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); in HAL_IRDA_AbortTransmit_IT() [all …]
|