STM32 矩阵键盘扫描
define PAi_1 PAin(1)
#define PAi_2 PAin(2)
#define PAi_3 PAin(3)
#define PAi_4 PAin(4)
#define PAi_5 PAin(5)
#define PAi_6 PAin(6)
#define PAi_7 PAin(7)
#define PAi_8 PAin(8)
#define PAi_9 PAin(9)
#define PAi_10 PAin(10)
#define PAi_11 PAin(11)
#define PAi_12 PAin(12)
#define PAi_13 PAin(13)
#define PAi_14 PAin(14)
#define PAi_15 PAin(15)
//---------------------------------//
#define PBi_0 PBin(0)
#define PBi_1 PBin(1)
#define PBi_2 PBin(2)
#define PBi_3 PBin(3)
#define PBi_4 PBin(4)
#define PBi_5 PBin(5)
#define PBi_6 PBin(6)
#define PBi_7 PBin(7)
#define PBi_8 PBin(8)
#define PBi_9 PBin(9)
#define PBi_10 PBin(10)
#define PBi_11 PBin(11)
#define PBi_12 PBin(12)
#define PBi_13 PBin(13)
#define PBi_14 PBin(14)
#define PBi_15 PBin(15)
//---------------------------------//
#define PCi_0 PCin(0)
#define PCi_1 PCin(1)
#define PCi_2 PCin(2)
#define PCi_3 PCin(3)
#define PCi_4 PCin(4)
#define PCi_5 PCin(5)
#define PCi_6 PCin(6)
#define PCi_7 PCin(7)
#define PCi_8 PCin(8)
#define PCi_9 PCin(9)
#define PCi_10 PCin(10)
#define PCi_11 PCin(11)
#define PCi_12 PCin(12)
#define PCi_13 PCin(13)
#define PCi_14 PCin(14)
#define PCi_15 PCin(15)
//-------------------------------------//
#define PDi_0 PDin(0)
#define PDi_1 PDin(1)
#define PDi_2 PDin(2)
#define PDi_3 PDin(3)
#define PDi_4 PDin(4)
#define PDi_5 PDin(5)
#define PDi_6 PDin(6)
#define PDi_7 PDin(7)
#define PDi_8 PDin(8)
#define PDi_9 PDin(9)
#define PDi_10 PDin(10)
#define PDi_11 PDin(11)
#define PDi_12 PDin(12)
#define PDi_13 PDin(13)
#define PDi_14 PDin(14)
#define PDi_15 PDin(15)
//-------------------------------------//
#define PEi_0 PEin(0)
#define PEi_1 PEin(1)
#define PEi_2 PEin(2)
#define PEi_3 PEin(3)
#define PEi_4 PEin(4)
#define PEi_5 PEin(5)
#define PEi_6 PEin(6)
#define PEi_7 PEin(7)
#define PEi_8 PEin(8)
#define PEi_9 PEin(9)
#define PEi_10 PEin(10)
#define PEi_11 PEin(11)
#define PEi_12 PEin(12)
#define PEi_13 PEin(13)
#define PEi_14 PEin(14)
#define PEi_15 PEin(15)
//---------------------------------//
#define PFi_0 PFin(0)
#define PFi_1 PFin(1)
#define PFi_2 PFin(2)
#define PFi_3 PFin(3)
#define PFi_4 PFin(4)
#define PFi_5 PFin(5)
#define PFi_6 PFin(6)
#define PFi_7 PFin(7)
#define PFi_8 PFin(8)
#define PFi_9 PFin(9)
#define PFi_10 PFin(10)
#define PFi_11 PFin(11)
#define PFi_12 PFin(12)
#define PFi_13 PFin(13)
#define PFi_14 PFin(14)
#define PFi_15 PFin(15)
//---------------------------------//
#define PGi_0 PGin(0)
#define PGi_1 PGin(1)
#define PGi_2 PGin(2)
#define PGi_3 PGin(3)
#define PGi_4 PGin(4)
#define PGi_5 PGin(5)
#define PGi_6 PGin(6)
#define PGi_7 PGin(7)
#define PGi_8 PGin(8)
#define PGi_9 PGin(9)
#define PGi_10 PGin(10)
#define PGi_11 PGin(11)
#define PGi_12 PGin(12)
#define PGi_13 PGin(13)
#define PGi_14 PGin(14)
#define PGi_15 PGin(15)
//---------------------------------//
///////////////////////////////////////////////////////////////////
//Ex_NVIC_Config专用定义
#define GPIO_A 0
#define GPIO_B 1
#define GPIO_C 2
#define GPIO_D 3
#define GPIO_E 4
#define GPIO_F 5
#define GPIO_G 6
#define FTIR 1 //下降沿触发
#define RTIR 2 //上升沿触发
#endif
- Linux常见紧急情况处理方法(07-23)
- 基于嵌入式 Linux的键盘驱动设计(12-01)
- 基于ARM7 PWM定时器的图像传感器时序信号设计(08-28)
- 采用DSP56F826芯片的二维条码扫描器系统介绍(08-28)
- 基于FPGA的键盘扫描模块的设计(06-06)
- 基于FPGA的电子摄像系统的稳像设计(06-05)