This commit is contained in:
刘可亮
2024-09-03 11:16:08 +08:00
parent cf270df8d6
commit 803cac77d5
2931 changed files with 614364 additions and 31222 deletions

View File

@@ -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)
{