Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 25) sorted by relevance

/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_gpio.c192 uint32_t temp; in HAL_GPIO_Init() local
217 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
218 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
219 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
220 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
224 temp = GPIOx->MODER; in HAL_GPIO_Init()
225 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
226 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
227 GPIOx->MODER = temp; in HAL_GPIO_Init()
236 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
[all …]
Dstm32l4xx_hal_sai.c1032 uint32_t temp; in HAL_SAI_Transmit() local
1071 temp = (uint32_t)(*hsai->pBuffPtr); in HAL_SAI_Transmit()
1073 temp |= ((uint32_t)(*hsai->pBuffPtr) << 8); in HAL_SAI_Transmit()
1075 hsai->Instance->DR = temp; in HAL_SAI_Transmit()
1079 temp = (uint32_t)(*hsai->pBuffPtr); in HAL_SAI_Transmit()
1081 temp |= ((uint32_t)(*hsai->pBuffPtr) << 8); in HAL_SAI_Transmit()
1083 temp |= ((uint32_t)(*hsai->pBuffPtr) << 16); in HAL_SAI_Transmit()
1085 temp |= ((uint32_t)(*hsai->pBuffPtr) << 24); in HAL_SAI_Transmit()
1087 hsai->Instance->DR = temp; in HAL_SAI_Transmit()
1145 uint32_t temp; in HAL_SAI_Receive() local
[all …]
Dstm32l4xx_hal_crc.c306 uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */ in HAL_CRC_Accumulate() local
319 temp = hcrc->Instance->DR; in HAL_CRC_Accumulate()
323 temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength); in HAL_CRC_Accumulate()
327temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012… in HAL_CRC_Accumulate()
337 return temp; in HAL_CRC_Accumulate()
358 uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */ in HAL_CRC_Calculate() local
375 temp = hcrc->Instance->DR; in HAL_CRC_Calculate()
380 temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength); in HAL_CRC_Calculate()
385temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012… in HAL_CRC_Calculate()
396 return temp; in HAL_CRC_Calculate()
Dstm32l4xx_hal_dcmi.c1269 uint32_t temp; in DCMI_DMAXferCplt() local
1286 temp = (uint32_t) (tmpBuffer_Orig); in DCMI_DMAXferCplt()
1287 temp += hdcmi->HalfCopyLength; in DCMI_DMAXferCplt()
1288 tmpBuffer_Orig = (uint32_t *) temp; in DCMI_DMAXferCplt()
1458 uint32_t temp = InputSize; in DCMI_TransferSize() local
1471 if (temp < PrimeArray[j]) in DCMI_TransferSize()
1475 while ((temp % PrimeArray[j]) == 0U) in DCMI_TransferSize()
1478 temp /= PrimeArray[j]; in DCMI_TransferSize()
Dstm32l4xx_hal_uart_ex.c185 uint32_t temp = 0x0U; in HAL_RS485Ex_Init() local
248 temp = (AssertionTime << UART_CR1_DEAT_ADDRESS_LSB_POS); in HAL_RS485Ex_Init()
249 temp |= (DeassertionTime << UART_CR1_DEDT_ADDRESS_LSB_POS); in HAL_RS485Ex_Init()
250 MODIFY_REG(huart->Instance->CR1, (USART_CR1_DEDT | USART_CR1_DEAT), temp); in HAL_RS485Ex_Init()
Dstm32l4xx_hal_pcd.c1040 uint32_t fifoemptymsk, temp; in HAL_PCD_IRQHandler() local
1392 temp = USBx->GRXSTSP; in HAL_PCD_IRQHandler()
1394 ep = &hpcd->OUT_ep[temp & USB_OTG_GRXSTSP_EPNUM]; in HAL_PCD_IRQHandler()
1396 if (((temp & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_DATA_UPDT) in HAL_PCD_IRQHandler()
1398 if ((temp & USB_OTG_GRXSTSP_BCNT) != 0U) in HAL_PCD_IRQHandler()
1400 (void)USB_ReadPacket(USBx, ep->xfer_buff, (uint16_t)((temp & USB_OTG_GRXSTSP_BCNT) >> 4)); in HAL_PCD_IRQHandler()
1401 ep->xfer_buff += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
1402 ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
1405 else if (((temp & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_SETUP_UPDT) in HAL_PCD_IRQHandler()
1408 ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
[all …]
Dstm32l4xx_hal_dma.c687 uint32_t temp; in HAL_DMA_PollForTransfer() local
709 temp = DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1cU); in HAL_DMA_PollForTransfer()
714 temp = DMA_FLAG_HT1 << (hdma->ChannelIndex & 0x1cU); in HAL_DMA_PollForTransfer()
720 while(0U == (hdma->DmaBaseAddress->ISR & temp)) in HAL_DMA_PollForTransfer()
Dstm32l4xx_hal_hcd.c1493 uint32_t temp; in HCD_RXQLVL_IRQHandler() local
1497 temp = hhcd->Instance->GRXSTSP; in HCD_RXQLVL_IRQHandler()
1498 ch_num = temp & USB_OTG_GRXSTSP_EPNUM; in HCD_RXQLVL_IRQHandler()
1499 pktsts = (temp & USB_OTG_GRXSTSP_PKTSTS) >> 17; in HCD_RXQLVL_IRQHandler()
1500 pktcnt = (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HCD_RXQLVL_IRQHandler()
Dstm32l4xx_ll_usb.c2465 uint32_t i, temp; in USB_ReadPMA() local
2473 temp = *pdwVal; in USB_ReadPMA()
2475 *pBuf = (uint8_t)((temp >> 0) & 0xFFU); in USB_ReadPMA()
2477 *pBuf = (uint8_t)((temp >> 8) & 0xFFU); in USB_ReadPMA()
2488 temp = *pdwVal; in USB_ReadPMA()
2490 *pBuf = (uint8_t)((temp >> 0) & 0xFFU); in USB_ReadPMA()
Dstm32l4xx_hal_rtc.c1963 uint8_t temp = Value; in RTC_ByteToBcd2() local
1965 while(temp >= 10U) in RTC_ByteToBcd2()
1968 temp -= 10U; in RTC_ByteToBcd2()
1971 return ((uint8_t)(bcdhigh << 4U) | temp); in RTC_ByteToBcd2()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/
Dstm32l1xx_hal_gpio.c198 uint32_t temp = 0x00; in HAL_GPIO_Init() local
224 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
225 CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4)) ; in HAL_GPIO_Init()
226 … SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4)); in HAL_GPIO_Init()
227 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
231 temp = GPIOx->MODER; in HAL_GPIO_Init()
232 CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2)); in HAL_GPIO_Init()
233 SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2)); in HAL_GPIO_Init()
234 GPIOx->MODER = temp; in HAL_GPIO_Init()
243 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
[all …]
Dstm32l1xx_hal_dma.c511 uint32_t temp; in HAL_DMA_PollForTransfer() local
533 temp = DMA_FLAG_TC1 << hdma->ChannelIndex; in HAL_DMA_PollForTransfer()
538 temp = DMA_FLAG_HT1 << hdma->ChannelIndex; in HAL_DMA_PollForTransfer()
544 while(RESET == (hdma->DmaBaseAddress->ISR & temp)) in HAL_DMA_PollForTransfer()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/
Dstm32l0xx_hal_gpio.c187 uint32_t temp = 0x00U; in HAL_GPIO_Init() local
209 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
210 temp &= ~((uint32_t)0xFU << ((uint32_t)(position & (uint32_t)0x07U) * 4U)) ; in HAL_GPIO_Init()
211temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07U) * 4U)) ; in HAL_GPIO_Init()
212 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
222 temp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
223 temp &= ~(GPIO_OSPEEDER_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
225 GPIOx->OSPEEDR = temp; in HAL_GPIO_Init()
228 temp= GPIOx->OTYPER; in HAL_GPIO_Init()
[all …]
Dstm32l0xx_hal_crc.c320 uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */ in HAL_CRC_Accumulate() local
336 temp = hcrc->Instance->DR; in HAL_CRC_Accumulate()
340 temp = CRC_Handle_8(hcrc, (uint8_t*)pBuffer, BufferLength); in HAL_CRC_Accumulate()
344 temp = CRC_Handle_16(hcrc, (uint16_t*)pBuffer, BufferLength); in HAL_CRC_Accumulate()
357 return temp; in HAL_CRC_Accumulate()
379 uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */ in HAL_CRC_Calculate() local
399 temp = hcrc->Instance->DR; in HAL_CRC_Calculate()
404 temp = CRC_Handle_8(hcrc, (uint8_t*)pBuffer, BufferLength); in HAL_CRC_Calculate()
409 temp = CRC_Handle_16(hcrc, (uint16_t*)pBuffer, BufferLength); in HAL_CRC_Calculate()
422 return temp; in HAL_CRC_Calculate()
Dstm32l0xx_hal_uart_ex.c166 uint32_t temp = 0x0U; in HAL_RS485Ex_Init() local
215 temp = (AssertionTime << UART_CR1_DEAT_ADDRESS_LSB_POS); in HAL_RS485Ex_Init()
216 temp |= (DeassertionTime << UART_CR1_DEDT_ADDRESS_LSB_POS); in HAL_RS485Ex_Init()
217 MODIFY_REG(huart->Instance->CR1, (USART_CR1_DEDT|USART_CR1_DEAT), temp); in HAL_RS485Ex_Init()
Dstm32l0xx_hal_dma.c534 uint32_t temp; in HAL_DMA_PollForTransfer() local
541 temp = __HAL_DMA_GET_TC_FLAG_INDEX(hdma); in HAL_DMA_PollForTransfer()
546 temp = __HAL_DMA_GET_HT_FLAG_INDEX(hdma); in HAL_DMA_PollForTransfer()
552 while(__HAL_DMA_GET_FLAG(hdma, temp) == RESET) in HAL_DMA_PollForTransfer()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/
Dstm32l1xx_ll_rtc.h1152 register uint32_t temp = 0U; in LL_RTC_TIME_GetHour() local
1154 temp = READ_BIT(RTCx->TR, (RTC_TR_HT | RTC_TR_HU)); in LL_RTC_TIME_GetHour()
1155 …return (uint32_t)((((temp & RTC_TR_HT) >> RTC_TR_HT_Pos) << 4U) | ((temp & RTC_TR_HU) >> RTC_TR_HU… in LL_RTC_TIME_GetHour()
1190 register uint32_t temp = 0U; in LL_RTC_TIME_GetMinute() local
1192 temp = READ_BIT(RTCx->TR, (RTC_TR_MNT | RTC_TR_MNU)); in LL_RTC_TIME_GetMinute()
1193 …return (uint32_t)((((temp & RTC_TR_MNT) >> RTC_TR_MNT_Pos) << 4U) | ((temp & RTC_TR_MNU) >> RTC_TR… in LL_RTC_TIME_GetMinute()
1228 register uint32_t temp = 0U; in LL_RTC_TIME_GetSecond() local
1230 temp = READ_BIT(RTCx->TR, (RTC_TR_ST | RTC_TR_SU)); in LL_RTC_TIME_GetSecond()
1231 …return (uint32_t)((((temp & RTC_TR_ST) >> RTC_TR_ST_Pos) << 4U) | ((temp & RTC_TR_SU) >> RTC_TR_SU… in LL_RTC_TIME_GetSecond()
1257 register uint32_t temp = 0U; in LL_RTC_TIME_Config() local
[all …]
Dstm32l1xx_ll_gpio.h726 __IO uint32_t temp; in LL_GPIO_LockPin() local
730 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
731 (void) temp; in LL_GPIO_LockPin()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/
Dstm32l0xx_ll_rtc.h1163 register uint32_t temp = 0U; in LL_RTC_TIME_GetHour() local
1165 temp = READ_BIT(RTCx->TR, (RTC_TR_HT | RTC_TR_HU)); in LL_RTC_TIME_GetHour()
1166 …return (uint32_t)((((temp & RTC_TR_HT) >> RTC_POSITION_TR_HT) << 4U) | ((temp & RTC_TR_HU) >> RTC_… in LL_RTC_TIME_GetHour()
1201 register uint32_t temp = 0U; in LL_RTC_TIME_GetMinute() local
1203 temp = READ_BIT(RTCx->TR, (RTC_TR_MNT | RTC_TR_MNU)); in LL_RTC_TIME_GetMinute()
1204 …return (uint32_t)((((temp & RTC_TR_MNT) >> RTC_POSITION_TR_MT) << 4U) | ((temp & RTC_TR_MNU) >> RT… in LL_RTC_TIME_GetMinute()
1239 register uint32_t temp = 0U; in LL_RTC_TIME_GetSecond() local
1241 temp = READ_BIT(RTCx->TR, (RTC_TR_ST | RTC_TR_SU)); in LL_RTC_TIME_GetSecond()
1242 …return (uint32_t)((((temp & RTC_TR_ST) >> RTC_POSITION_TR_ST) << 4U) | ((temp & RTC_TR_SU) >> RTC_… in LL_RTC_TIME_GetSecond()
1268 register uint32_t temp = 0U; in LL_RTC_TIME_Config() local
[all …]
Dstm32l0xx_ll_gpio.h687 __IO uint32_t temp; in LL_GPIO_LockPin() local
691 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
692 (void) temp; in LL_GPIO_LockPin()
/loramac-node-3.4.0/src/system/
Dgps.c115 long double temp; in GpsConvertPositionIntoBinary() local
119 temp = Latitude * MaxNorthPosition; in GpsConvertPositionIntoBinary()
120 LatitudeBinary = temp / 90; in GpsConvertPositionIntoBinary()
124 temp = Latitude * MaxSouthPosition; in GpsConvertPositionIntoBinary()
125 LatitudeBinary = temp / 90; in GpsConvertPositionIntoBinary()
130 temp = Longitude * MaxEastPosition; in GpsConvertPositionIntoBinary()
131 LongitudeBinary = temp / 180; in GpsConvertPositionIntoBinary()
135 temp = Longitude * MaxWestPosition; in GpsConvertPositionIntoBinary()
136 LongitudeBinary = temp / 180; in GpsConvertPositionIntoBinary()
/loramac-node-3.4.0/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_ll_rtc.h1526 register uint32_t temp = 0U; in LL_RTC_TIME_Config() local
1528temp = Format12_24 … in LL_RTC_TIME_Config()
1532 …->TR, (RTC_TR_PM | RTC_TR_HT | RTC_TR_HU | RTC_TR_MNT | RTC_TR_MNU | RTC_TR_ST | RTC_TR_SU), temp); in LL_RTC_TIME_Config()
1554 register uint32_t temp = 0U; in LL_RTC_TIME_Get() local
1556temp = READ_BIT(RTCx->TR, (RTC_TR_HT | RTC_TR_HU | RTC_TR_MNT | RTC_TR_MNU | RTC_TR_ST | RTC_TR_SU… in LL_RTC_TIME_Get()
1557 …return (uint32_t)((((((temp & RTC_TR_HT) >> RTC_TR_HT_Pos) << 4U) | ((temp & RTC_TR_HU) >> RTC_TR_… in LL_RTC_TIME_Get()
1558 …(((((temp & RTC_TR_MNT) >> RTC_TR_MNT_Pos) << 4U) | ((temp & RTC_TR_MNU) >> RTC_TR_MNU_Pos)) << RT… in LL_RTC_TIME_Get()
1559 … ((((temp & RTC_TR_ST) >> RTC_TR_ST_Pos) << 4U) | ((temp & RTC_TR_SU) >> RTC_TR_SU_Pos))); in LL_RTC_TIME_Get()
1856 register uint32_t temp = 0U; in LL_RTC_DATE_Config() local
1858 temp = (WeekDay << RTC_DR_WDU_Pos) | \ in LL_RTC_DATE_Config()
[all …]
Dstm32l4xx_ll_pwr.h1263 register uint32_t temp = (uint32_t)(GPIO) + 4U; in LL_PWR_EnableGPIOPullDown() local
1264 SET_BIT(*((uint32_t *)(temp)), GPIONumber); in LL_PWR_EnableGPIOPullDown()
1311 register uint32_t temp = (uint32_t)(GPIO) + 4U; in LL_PWR_DisableGPIOPullDown() local
1312 CLEAR_BIT(*((uint32_t *)(temp)), GPIONumber); in LL_PWR_DisableGPIOPullDown()
1359 register uint32_t temp = (uint32_t)(GPIO) + 4U; in LL_PWR_IsEnabledGPIOPullDown() local
1360 return ((READ_BIT(*((uint32_t *)(temp)), GPIONumber) == (GPIONumber)) ? 1UL : 0UL); in LL_PWR_IsEnabledGPIOPullDown()
Dstm32l4xx_ll_gpio.h800 __IO uint32_t temp; in LL_GPIO_LockPin() local
804 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
805 (void) temp; in LL_GPIO_LockPin()
/loramac-node-3.4.0/src/peripherals/atecc608a-tnglora-se/
Datecc608a-tnglora-se.c129 uint8_t temp = 0; in convert_ascii_devEUI() local
132 temp = ( devEUI_ascii[pos] - '0' ) << 4; in convert_ascii_devEUI()
136 temp = ( ( devEUI_ascii[pos] - 'A' ) + 10 ) << 4; in convert_ascii_devEUI()
144 temp |= devEUI_ascii[pos + 1] - '0'; in convert_ascii_devEUI()
148 temp |= ( devEUI_ascii[pos + 1] - 'A' ) + 10; in convert_ascii_devEUI()
154 devEUI[pos / 2] = temp; in convert_ascii_devEUI()