/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_lp/ |
A D | rtl8721dlp_clk.c | 43 u32 Temp = 0; in SDM32K_Read() local 47 Temp &= (~BIT_LS_MASK_SDM_ADDR); in SDM32K_Read() 48 Temp |= Address; in SDM32K_Read() 54 return Temp; in SDM32K_Read() 59 u32 Temp = 0; in SDM32K_Write() local 64 Temp |= Address; in SDM32K_Write() 81 u32 Temp = 0; in SDM32K_Enable() local 120 u32 Temp = 0; in SDM32K_RTCCalEnable() local 460 u32 Temp; in NCO2M_Init() local 471 Temp |= clk_out; in NCO2M_Init() [all …]
|
A D | rtl8721dlp_app_start.c | 74 u32 Temp = 0; in app_load_patch_to_retention() local 83 Temp |= BIT_DSLP_RETENTION_RAM_PATCH; in app_load_patch_to_retention() 90 u32 Temp = 0; in app_retention_ram_patch() local 93 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_CLK_CTRL0); in app_retention_ram_patch() 95 Temp |= BIT_SHIFT_FLASH_CLK_XTAL; in app_retention_ram_patch() 96 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_CLK_CTRL0, Temp); in app_retention_ram_patch() 100 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_AON_PWR_CTRL); in app_retention_ram_patch() 101 if ((Temp & BIT_DSLP_SNOOZE_MODE_LSPAD_SHUTDOWN) == 0) { in app_retention_ram_patch() 102 Temp |= BIT_DSLP_SNOOZE_MODE_LSPAD_SHUTDOWN; in app_retention_ram_patch() 107 Temp &= ~BIT_LP_WEVT_AON_MSK; in app_retention_ram_patch() [all …]
|
A D | rtl8721dlp_km4.c | 190 u32 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_KM4_CTRL); in km4_status_on() local 192 if (Temp & BIT_LSYS_HPLAT_CKE){ in km4_status_on() 206 u32 Temp; in km4_boot_on() local 211 Temp = HAL_READ32(SYSTEM_CTRL_BASE, REG_LP_BOOT_CFG) | BIT_SOC_BOOT_PATCH_KM4_RUN; in km4_boot_on() 212 HAL_WRITE32(SYSTEM_CTRL_BASE, REG_LP_BOOT_CFG, Temp); in km4_boot_on() 245 u32 Temp = 0; in km4_power_wake() local 255 Temp = HAL_READ32(SYSTEM_CTRL_BASE, REG_LP_BOOT_CFG) | BIT_SOC_BOOT_PATCH_KM4_RUN; in km4_power_wake() 256 HAL_WRITE32(SYSTEM_CTRL_BASE, REG_LP_BOOT_CFG, Temp); in km4_power_wake()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_hp/ |
A D | rtl8721dhp_clk.c | 29 u32 Temp; in NCO2M_Init() local 36 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_UART_XTAL_DIV_CTRL); in NCO2M_Init() 38 Temp &= (~(BIT_LSYS_UART_XTAL_DIV_EN |BIT_LSYS_MASK_UART_XTAL_DIV_FREQ)); in NCO2M_Init() 40 Temp |= clk_out; in NCO2M_Init() 42 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_UART_XTAL_DIV_CTRL, Temp); in NCO2M_Init() 53 u32 Temp; in NCO2M_Cmd() local 55 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_UART_XTAL_DIV_CTRL); in NCO2M_Cmd() 59 Temp |= BIT_LSYS_UART_XTAL_DIV_EN; in NCO2M_Cmd() 62 Temp &= (~BIT_LSYS_UART_XTAL_DIV_EN); in NCO2M_Cmd() 65 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_UART_XTAL_DIV_CTRL, Temp); in NCO2M_Cmd()
|
A D | rtl8721dhp_sdio.c | 51 u16 Temp = 0; in SDIO_Init() local 80 Temp = HAL_SDIO_READ16(REG_SPDIO_CCPWM2); in SDIO_Init() 81 Temp |= CPWM2_INIC_FW_RDY_BIT; in SDIO_Init() 82 Temp ^= CPWM2_TOGGLE_BIT; in SDIO_Init() 83 HAL_SDIO_WRITE16(REG_SPDIO_CCPWM2, Temp); in SDIO_Init() 164 Temp ^= CPWM1_TOGGLE_BIT; in SDIO_CPWM1_Set() 165 Temp |= Val; in SDIO_CPWM1_Set() 167 HAL_SDIO_WRITE8(REG_SPDIO_CCPWM, Temp); in SDIO_CPWM1_Set() 181 Temp ^= CPWM2_TOGGLE_BIT; in SDIO_CPWM2_Set() 184 Temp |= Val; in SDIO_CPWM2_Set() [all …]
|
A D | rtl8721dhp_usi_uart.c | 605 u32 Temp; in USI_UARTClearRxFifo() local 617 if (Temp != 0) in USI_UARTClearRxFifo() 625 if (Temp != 0) in USI_UARTClearRxFifo() 905 u32 Temp; in USI_UARTTXDMAConfig() local 911 Temp = USIx->DMA_REQ_SIZE; in USI_UARTTXDMAConfig() 913 Temp |= (TxDmaBurstSize|(1<<8)); in USI_UARTTXDMAConfig() 915 USIx->DMA_REQ_SIZE = Temp; in USI_UARTTXDMAConfig() 928 u32 Temp; in USI_UARTRXDMAConfig() local 934 Temp = USIx->DMA_REQ_SIZE; in USI_UARTRXDMAConfig() 936 Temp |= ((RxDmaBurstSize<<16)|(1<<24)); in USI_UARTRXDMAConfig() [all …]
|
A D | rtl8721dhp_ssi.c | 225 u32 Temp; in SSI_SetRole() local 229 Temp = HAL_READ32(SYSTEM_CTRL_BASE, REG_HS_SPI_CTRL); in SSI_SetRole() 230 Temp &= ~BIT_HS_SPI0_ROLE_SELECT; in SSI_SetRole() 231 Temp |= (role << 3); in SSI_SetRole() 232 HAL_WRITE32(SYSTEM_CTRL_BASE, REG_HS_SPI_CTRL, Temp); in SSI_SetRole()
|
A D | rtl8721dhp_usi_ssi.c | 238 u32 Temp; in USI_SSI_SetRole() local 241 Temp = usi_dev->SPI_CTRL; in USI_SSI_SetRole() 242 Temp &= ~USI_SPI_MASTER_MODE; in USI_SSI_SetRole() 243 Temp |= (role << 4); in USI_SSI_SetRole() 247 usi_dev->SPI_CTRL = Temp; in USI_SSI_SetRole()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_common/ |
A D | rtl8721d_flash_ram.c | 468 u32 Temp = 0; in FLASH_ClockSwitch() local 482 Temp |= Source; in FLASH_ClockSwitch() 487 Temp = HAL_READ32(PERI_ON_BASE, REG_LP_FLASH_CTRL); in FLASH_ClockSwitch() 489 HAL_WRITE32(PERI_ON_BASE, REG_LP_FLASH_CTRL, Temp); in FLASH_ClockSwitch() 493 Temp &= ~BIT_EN_CK_400M; in FLASH_ClockSwitch() 497 Temp &= ~BIT_POW_CKGEN_400M; in FLASH_ClockSwitch() 506 Temp |= BIT_POW_CKGEN_400M; in FLASH_ClockSwitch() 510 Temp |= BIT_EN_CK_400M; in FLASH_ClockSwitch() 514 Temp = HAL_READ32(PERI_ON_BASE, REG_LP_FLASH_CTRL); in FLASH_ClockSwitch() 522 if ((Temp & BIT_FLASH_PS_DIV_RDY) && (Temp & BIT_FLASH_DIV_RDY)) in FLASH_ClockSwitch() [all …]
|
A D | rtl8721d_rtc.c | 245 u32 Temp = 0; in RTC_Init() local 261 Temp = (RTC_InitStruct->RTC_SynchPrediv) | (RTC_InitStruct->RTC_AsynchPrediv << 16); in RTC_Init() 262 RTC->PRER = Temp; in RTC_Init() 265 Temp = RTC->CR; in RTC_Init() 266 Temp &= ((u32)~(RTC_CR_FMT | RTC_DAYTHRES_MSK | RTC_CR_DOVTHIE)); in RTC_Init() 267 Temp |= ((u32)((RTC_InitStruct->RTC_HourFormat) | (RTC_InitStruct->RTC_DayThreshold<<23))); in RTC_Init() 270 Temp &= ~RTC_CR_BYPSHAD; in RTC_Init() 271 RTC->CR = Temp; in RTC_Init()
|
A D | rtl8721d_qdec.c | 443 u32 Temp = 0; in QDEC_SetVTmr() local 447 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_CLK_CTRL1); in QDEC_SetVTmr() 448 if (Temp &= BIT_LSYS_QDEC0_CKSL32K) { in QDEC_SetVTmr()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/ |
A D | pinmap.c | 19 u32 Temp = 0; in pin_function() local 28 Temp = PINMUX->PADCTR[pin_index]; in pin_function() 31 Temp &= ~PAD_BIT_MASK_FUNCTION_ID; in pin_function() 32 Temp |= (function & PAD_BIT_MASK_FUNCTION_ID); in pin_function() 33 Temp &= ~PAD_BIT_SHUT_DWON; /* close pad power down */ in pin_function() 36 PINMUX->PADCTR[pin_index] = Temp; in pin_function()
|
A D | serial_api.c | 1438 u32 Temp; in serial_rx_fifo_level() local 1442 Temp = UART_RX_FIFOTRIG_LEVEL_1BYTES; in serial_rx_fifo_level() 1445 Temp = UART_RX_FIFOTRIG_LEVEL_4BYTES; in serial_rx_fifo_level() 1448 Temp = UART_RX_FIFOTRIG_LEVEL_8BYTES; in serial_rx_fifo_level() 1451 Temp = UART_RX_FIFOTRIG_LEVEL_14BYTES; in serial_rx_fifo_level() 1459 UART_SetRxLevel(UARTx, Temp); in serial_rx_fifo_level() 1476 u32 Temp; in serial_set_flow_control() local 1491 Temp = HAL_READ32(SYSTEM_CTRL_BASE_HP, REG_SWD_PMUX_EN); in serial_set_flow_control() 1492 Temp &= (~BIT_LSYS_SWD_PMUX_EN); in serial_set_flow_control() 1493 HAL_WRITE32(SYSTEM_CTRL_BASE_HP, REG_SWD_PMUX_EN, Temp); in serial_set_flow_control() [all …]
|
A D | spdio_api.c | 433 u32 Temp = 0; in SPDIO_Device_Init() local 474 Temp = HAL_READ32(SYSTEM_CTRL_BASE, REG_HS_SDIO_CTRL); in SPDIO_Device_Init() 475 Temp |= BIT_HS_SDIOD_PIN_EN; in SPDIO_Device_Init() 476 HAL_WRITE32(SYSTEM_CTRL_BASE, REG_HS_SDIO_CTRL, Temp); in SPDIO_Device_Init() 478 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_EFUSE_CTRL1); in SPDIO_Device_Init() 479 Temp |= BIT_SYS_EF_ALDEN; in SPDIO_Device_Init() 480 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_EFUSE_CTRL1, Temp); in SPDIO_Device_Init()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/include/ |
A D | rtl8721d_pinmux.h | 296 u32 Temp = 0; in PAD_ResistorCtrl() local 299 Temp = PINMUX->PADCTR[PinName]; in PAD_ResistorCtrl() 302 Temp |= PAD_BIT_PULL_RESISTOR_SMALL; /* by default is small */ in PAD_ResistorCtrl() 306 Temp &= ~PAD_BIT_PULL_RESISTOR_SMALL; in PAD_ResistorCtrl() 310 PINMUX->PADCTR[PinName] = Temp; in PAD_ResistorCtrl() 320 u32 Temp = 0; in Pinmux_Swdoff() local 322 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_SWD_PMUX_EN); in Pinmux_Swdoff() 323 Temp &= (~BIT_LSYS_SWD_PMUX_EN); in Pinmux_Swdoff() 324 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_SWD_PMUX_EN, Temp); in Pinmux_Swdoff()
|
A D | rtl8721dlp_rcc.h | 153 u32 Temp = 0; in RCC_PeriphClockSource_SPIC() local 155 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_CLK_CTRL0); in RCC_PeriphClockSource_SPIC() 156 Temp &= ~ (BIT_MASK_FLASH_CLK_SEL << BIT_SHIFT_FLASH_CLK_SEL); in RCC_PeriphClockSource_SPIC() 157 Temp |= Source; in RCC_PeriphClockSource_SPIC() 158 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_CLK_CTRL0, Temp); in RCC_PeriphClockSource_SPIC()
|
A D | rtl8721d_gdma.h | 274 …u32 Temp; /*!< Specifies the reserved GDMA channel x register value field of a block des… member
|
/AliOS-Things-master/hardware/board/haaseduk1/board_test/ |
A D | sensors_test.c | 62 float Temp = 0.0, Humidity = 0.0; in humiture_test() local 73 cht8305_getTempHumidity(&Humidity, &Temp); in humiture_test() 74 LOGI("humiture_test", "Temp :%f Humidity : %f\n", Temp, Humidity); in humiture_test() 75 if ((Humidity > 300.0 || Humidity < -100.0) || (Temp > 200.0 || Temp < -50.0)) { in humiture_test() 84 si7006_getTempHumidity(&Humidity, &Temp); in humiture_test() 85 LOGI("humiture_test", "Temp :%f Humidity : %f\n", Temp, Humidity); in humiture_test() 86 if ((Humidity > 300.0 || Humidity < -100.0) || (Temp > 200.0 || Temp < -50.0)) { in humiture_test()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/spi/ |
A D | spi_flash.c | 337 u32 Temp = 0, Temp0 = 0, Temp1 = 0, Temp2 = 0; in SPI_FLASH_ReadID() local 357 Temp = (Temp0 << 16) | (Temp1 << 8) | Temp2; in SPI_FLASH_ReadID() 359 return Temp; in SPI_FLASH_ReadID() 370 u32 Temp = 0; in SPI_FLASH_ReadDeviceID() local 382 Temp = SPI_FLASH_SendByte(Dummy_Byte); in SPI_FLASH_ReadDeviceID() 387 return Temp; in SPI_FLASH_ReadDeviceID()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/app/monitor/ram/ |
A D | monitor_hp.c | 70 u32 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_BOOT_CFG); in cmd_reboot() local 71 Temp |= BIT_SOC_BOOT_PATCH_KM4_RUN; in cmd_reboot() 72 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_BOOT_CFG, Temp); in cmd_reboot() 78 Temp = HAL_READ32(SYSTEM_CTRL_BASE_LP, REG_LP_BOOT_CFG); in cmd_reboot() 79 Temp |= BIT_SOC_BOOT_WAKE_FROM_PS_HS; in cmd_reboot() 80 HAL_WRITE32(SYSTEM_CTRL_BASE_LP, REG_LP_BOOT_CFG, Temp); in cmd_reboot()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ |
A D | .gitignore | 3 Temp/
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_draw.h | 495 int DeltaX, DeltaY, Temp, XDir; \ 510 Temp = y1; y1 = y2; y2 = Temp; \ 511 Temp = x1; x1 = x2; x2 = Temp; \
|
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/ |
A D | h5.c | 634 RT_LIST_ENTRY *Iter = NULL, *Temp = NULL; in h5_remove_acked_pkt() local 663 LIST_FOR_EACH_SAFELY(Iter, Temp, Head) { in h5_remove_acked_pkt()
|