Functions | |
void | HAL_PIN_Select (int pad, int func, int hcpu) |
Select pin function only. More... | |
int | HAL_PIN_Set (int pad, pin_function func, int flags, int hcpu) |
Set pin function. More... | |
int | HAL_PIN_Set_Analog (int pad, int hcpu) |
Set pin for analog function, fix for ROM patch, avoid pin_const update. More... | |
int | HAL_PIN_Update (int pad, uint32_t flags, uint32_t mask, int hcpu) |
Update pin flags. More... | |
int | HAL_PIN_Get (int pad, pin_function *p_func, PIN_ModeTypeDef *p_mode, int hcpu) |
Get pin function. More... | |
int | HAL_PIN_Set_DS0 (int pad, int hcpu, uint8_t set) |
Set pin DS0. More... | |
int | HAL_PIN_Set_DS1 (int pad, int hcpu, uint8_t set) |
Set pin DS1. More... | |
int | HAL_PIN_SetMode (int pad, int hcpu, PIN_ModeTypeDef mode) |
void | HAL_PIN_Set_Dual_flash1 (void) |
Set pinmux of dual mode of flash1. | |
void | HAL_PIN_Set_Single_flash2 (void) |
Set pinmux of single mode of flash2. | |
void | HAL_PIN_Set_Dual_flash2 (void) |
Set pinmux of dual mode of flash2. | |
void | HAL_PIN_Set_Dual_flash1_default (void) |
Reset dual mode of flash1 to default configuration. | |
void | HAL_PIN_Set_Single_flash2_default (void) |
Reset single mode of flash2 to default configuration. | |
void | HAL_PIN_Set_Dual_flash2_default (void) |
Reset dual mode of flash2 to default configuration. | |
void | HAL_PIN_SetFlash3 (void) |
Set pinmux for flash3. | |
void | HAL_PIN_SetFlash4 (void) |
Set pinmux for flash4. | |
void | HAL_PIN_SetFlash1_WithMode (int mode) |
Set pinmux for mpi1 with input mode. | |
void | HAL_PIN_SetFlash2_WithMode (int mode) |
Set pinmux for mpi2 with input mode, for 58x, only HPSRAM and OPSRAM support. | |
int HAL_PIN_Get | ( | int | pad, |
pin_function * | p_func, | ||
PIN_ModeTypeDef * | p_mode, | ||
int | hcpu | ||
) |
Get pin function.
pad | physical pin, refer pin_pad_hcpu and pin_pad_lcpu |
p_func | Pointer of variable to save pin function. |
p_mode | Pointer of varibale to save flag of the pin mode, see PIN_ModeTypeDef |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
-1 | if invalid, else function idx(>= 0) |
void HAL_PIN_Select | ( | int | pad, |
int | func, | ||
int | hcpu | ||
) |
Select pin function only.
pad | physical pin |
func | Pin function. |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
int HAL_PIN_Set | ( | int | pad, |
pin_function | func, | ||
int | flags, | ||
int | hcpu | ||
) |
Set pin function.
pad | physical pin, pin_pad_hcpu or pin_pad_lcpu |
func | Pin function. |
flags | flag of the pin (pullup/pulldown), PIN pull flag |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
-1 | if invalid, otherwise 0 |
int HAL_PIN_Set_Analog | ( | int | pad, |
int | hcpu | ||
) |
Set pin for analog function, fix for ROM patch, avoid pin_const update.
pad | physical pin |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
-1 | if invalid, otherwise 0 |
int HAL_PIN_Set_DS0 | ( | int | pad, |
int | hcpu, | ||
uint8_t | set | ||
) |
Set pin DS0.
pad | physical pin, pin_pad_hcpu or pin_pad_lcpu |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
set | 1: select, 0: deselect |
-1 | if invalid, otherwise 0 |
int HAL_PIN_Set_DS1 | ( | int | pad, |
int | hcpu, | ||
uint8_t | set | ||
) |
Set pin DS1.
pad | physical pin, refer pin_pad_hcpu and pin_pad_lcpu |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
set | 1: select, 0: deselect |
-1 | if invalid, otherwise 0 |
int HAL_PIN_Update | ( | int | pad, |
uint32_t | flags, | ||
uint32_t | mask, | ||
int | hcpu | ||
) |
Update pin flags.
pad | physical pin |
flags | Flags for the pin to update |
mask | Mask of the flags |
hcpu | 1: pin for hcpu; 0: pin for lcpu |
-1 | if invalid, otherwise 0 |