mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-18 04:18:55 +00:00
V1.0.6
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022, Artinchip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -221,6 +221,15 @@ int hal_gpio_group_get_irq_en(unsigned int group, unsigned int *pen)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hal_gpio_group_set_irq_en(unsigned int group, unsigned int en)
|
||||
{
|
||||
CHECK_PARAM(group < GPIO_GROUP_MAX && group >= 0, -EINVAL);
|
||||
|
||||
writel(en, gen_reg(group, GEN_TRQ_EN_REG));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int hal_gpio_group_get_irq_stat(unsigned int group, unsigned int *pstat)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user