You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
437 B

  1. #ifndef _IO_H_
  2. #define _IO_H_
  3. #define debug_led_port PB
  4. #define debug_led_pin PBT4
  5. #define uart0_tx_io PAT1
  6. #define uart0_rx_io PAT2
  7. #define uart1_tx_io PBT5
  8. #define uart1_rx_io PBT6
  9. #define beep_port PB
  10. #define beep_pin PBT0
  11. #define jerk_port PA //引脚是0直接在主函数判断该引脚的电平状态即可
  12. #define jerk_pin PAT0
  13. #define rs485_re_port PB
  14. #define rs485_re_pin PB3
  15. #endif