Z-STACK按键讲解.docVIP

  • 49
  • 0
  • 约2.14万字
  • 约 41页
  • 2017-01-23 发布于香港
  • 举报
Z-STACK按键讲解

Z-STACK按键的使用总结 #define HAL_KEY_SW_6_ENABLE // SW_6的IO端口 #define HAL_KEY_SW_6_PORT P0 //SW6接到IO端口的位数 P0.1 #define HAL_KEY_SW_6_BIT HAL_KEY_BIT1 // SW_6的IO端口选择 #define HAL_KEY_SW_6_SEL P0SEL // SW_6的IO端口方向 #define HAL_KEY_SW_6_DIR P0DIR // SW_6的IO端口中断使能 #define HAL_KEY_SW_6_IEN IEN1 // SW_6的IO端口中断使能的掩码 #define HAL_KEY_SW_6_IENBIT HAL_KEY_BIT5 // SW_6的IO端口中断的边沿选择 #define HAL_KEY_SW_6_EDGE HAL_KEY_RISING_EDGE // SW_6的IO端口边沿掩码 #define HAL_KEY_SW_6_EDGEBIT HAL_KEY_BIT0 // SW_6的IO端口总中断 #define HAL_KEY_SW_6_ICTL PICTL // SW_6的IO端口总中断掩码 #define HAL_KEY_SW_6_ICTLBIT HAL_KEY_BIT3 // SW_6的IO端口中断标志位 #defin

文档评论(0)

1亿VIP精品文档

相关文档