|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
宏定义 | |
| #define | hal_gpio_set_bit(x, y, z) (((uint32_t)(x) & ~bit(y)) | (((uint32_t)(z) & 1U) << (uint32_t)(y))) |
| #define | hal_gpio_toggle_bit(x, y) (((x) & ~bit(y)) | ((~(x)) & bit(y))) |
| #define | hal_gpio_read_bit(x, y) (((uint32_t)(x) >> (uint32_t)(y)) & 1U) |
函数 | |
| void | hal_gpio_v150_intr_rebase (uint32_t channel, uint32_t group) |
| Init all GPIO interrupt relative regs. Disable, mask and clean all interruption status. | |
变量 | |
| uintptr_t | g_gpios_regs [GPIO_CHANNEL_MAX_NUM] |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2023. All rights reserved.
Description: Provides V150 gpio register operation api
History:
2022-07-27, Create file.
| #define hal_gpio_read_bit | ( | x, | |
| y | |||
| ) | (((uint32_t)(x) >> (uint32_t)(y)) & 1U) |
Read bit y in x
| #define hal_gpio_set_bit | ( | x, | |
| y, | |||
| z | |||
| ) | (((uint32_t)(x) & ~bit(y)) | (((uint32_t)(z) & 1U) << (uint32_t)(y))) |
sets the bit y in x to the value z
| void hal_gpio_v150_intr_rebase | ( | uint32_t | channel, |
| uint32_t | group | ||
| ) |
Init all GPIO interrupt relative regs. Disable, mask and clean all interruption status.
| [in] | channel | The channel id of gpio. |
| [in] | group | The group id of gpio. |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2023. All rights reserved.
Description: Provides V150 gpio register operation api
History:
2022-11-27, Create file.
|
extern |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides HAL gpio
History:
2022-07-26, Create file.