Azure Sphere MT3620 M4 API Reference Manual
|
This section provides Fixed APIs(defined as Common Interface) to fully control the MediaTek EINT HW. More...
This section provides Fixed APIs(defined as Common Interface) to fully control the MediaTek EINT HW.
Functions | |
int | mtk_mhal_eint_enable_debounce (eint_number eint_num, void __iomem *eint_base) |
This function is used to enable EINT debounce. More... | |
int | mtk_mhal_eint_disable_debounce (eint_number eint_num, void __iomem *eint_base) |
This function is used to disable EINT debounce. More... | |
int | mtk_mhal_eint_set_polarity (eint_number eint_num, u32 pol, void __iomem *eint_base) |
This function is used to set EINT polarity. More... | |
int | mtk_mhal_eint_set_dual (eint_number eint_num, u32 dual, void __iomem *eint_base) |
This function is used to set EINT dual-edge. More... | |
int | mtk_mhal_eint_set_debounce (eint_number eint_num, u32 debounce_time, void __iomem *eint_base) |
This function is used to set EINT debounce time. More... | |
int mtk_mhal_eint_enable_debounce | ( | eint_number | eint_num, |
void __iomem * | eint_base | ||
) |
This function is used to enable EINT debounce.
Usage: OS-HAL driver should call it in EINT register function to enable debounce.
[in] | eint_num | : eint_num is the EINT number, the value is HAL_EINT_NUMBER_0 ~ HAL_EINT_NUMBER_MAX-1. |
[in] | eint_base | : EINT base address used to operate hardware register. |
int mtk_mhal_eint_disable_debounce | ( | eint_number | eint_num, |
void __iomem * | eint_base | ||
) |
This function is used to disable EINT debounce.
Usage: OS-HAL driver should call it in EINT unregister function to disable debounce.
[in] | eint_num | : eint_num is the EINT number, the value is HAL_EINT_NUMBER_0 ~ HAL_EINT_NUMBER_MAX-1. |
[in] | eint_base | : EINT base address used to operate hardware register. |
int mtk_mhal_eint_set_polarity | ( | eint_number | eint_num, |
u32 | pol, | ||
void __iomem * | eint_base | ||
) |
This function is used to set EINT polarity.
Usage: OS-HAL driver should call it in EINT register or set trigger type function
[in] | eint_num | : eint_num is the EINT number, the value is HAL_EINT_NUMBER_0 ~ HAL_EINT_NUMBER_MAX-1. |
[in] | eint_base | : EINT base address used to operate hardware register. |
[in] | pol | : Polarity type |
int mtk_mhal_eint_set_dual | ( | eint_number | eint_num, |
u32 | dual, | ||
void __iomem * | eint_base | ||
) |
This function is used to set EINT dual-edge.
Usage: OS-HAL driver should call it in EINT register function to set EINT dual-edge.
[in] | eint_num | : eint_num is the EINT number, the value is HAL_EINT_NUMBER_0 ~ HAL_EINT_NUMBER_MAX-1. |
[in] | eint_base | : EINT base address used to operate hardware register. |
[in] | dual | : Dual =1 :dual-edge detect function enable. Dual =0 :dual-edge detect function disable. |
int mtk_mhal_eint_set_debounce | ( | eint_number | eint_num, |
u32 | debounce_time, | ||
void __iomem * | eint_base | ||
) |
This function is used to set EINT debounce time.
Usage: OS-HAL driver should call it in EINT register function to set EINT debounce time
[in] | eint_num | : eint_num is the EINT number, the value is HAL_EINT_NUMBER_0 ~ HAL_EINT_NUMBER_MAX-1. |
[in] | eint_base | : EINT base address used to operate hardware register. |
[in] | debounce_time | : EINT trigger's debounce time(unit: ms). Value range is 1, 2, 4, 8, 16, 32, 64, 128. |