irq模块参数trig_type中断类型建议改成枚举值
Change-Id: I6ce8c0632c4816790adc799b4bd4b010104e123d
diff --git a/mbtk/include/lynq/lynq-irq.h b/mbtk/include/lynq/lynq-irq.h
index abdb30b..4ee2f8d 100755
--- a/mbtk/include/lynq/lynq-irq.h
+++ b/mbtk/include/lynq/lynq-irq.h
@@ -144,13 +144,22 @@
*/
int sc_irq_get_wake(unsigned int line, int *en);
+typedef enum
+{
+ Rising_edge_trigger = 0,//:上升沿触发
+ Falling_edge_trigger = 1,//:下降沿触发
+ High_level_trigger = 2,//:高电平触发
+ Low_level_trigger = 3,//:低电平触发
+
+}trig_type_e;
-int line_gpio[15]={-1,48,49,50,51,52,53,54,119,128,129,-1,131,-1,125};//this is the line match gpio
+//int line_gpio[15]={-1,48,49,50,51,52,53,54,119,128,129,-1,131,-1,125};//this is the line match gpio
+int line_gpio[4]={117, 118, 119 ,120};//this is the line match gpio
typedef void (*irq_handler)(void);
-int lynq_irq_install(int line, irq_handler irq_handler, int trig_type);
+int lynq_irq_install(int line, irq_handler irq_handler, trig_type_e trig_type);
int lynq_irq_uninstall(int line);
diff --git a/mbtk/liblynq_lib/src/lynq_irq.c b/mbtk/liblynq_lib/src/lynq_irq.c
index d7c0744..94efdc6 100755
--- a/mbtk/liblynq_lib/src/lynq_irq.c
+++ b/mbtk/liblynq_lib/src/lynq_irq.c
@@ -308,7 +308,7 @@
* @warning:NA
******************************************/
-int lynq_irq_install(int line, irq_handler irq_test_handler, int trig_type)
+int lynq_irq_install(int line, irq_handler irq_test_handler, trig_type_e trig_type)
{
int ret;
if(trig_type < 0)