#ifndef button_h#define button_h#include 'MCIMX6Y2.h'#include 'fsl_iomuxc.h'#include 'pad_config.h'#include 'system_MCIMX6Y2.h'/*按键2 GPIO端口、引脚号及IOMUXC复用宏定义*/#define button2_GPIO GPIO5#define ...
/*添加中断服务函数到 '中断向量表'*/SystemInstallIrqHandler(GPIO5_Combined_0_15_IRQn, (system_irq_handler_t)EXAMPLE_GPIO_IRQHandler, NULL); void ...