misc.h 386 B

1234567891011121314151617181920212223242526
  1. #ifndef __MISC_H
  2. #define __MISC_H
  3. #include "at32f403a_407.h"
  4. #define MB_RX_ENABLE gpio_bits_reset(GPIOD, GPIO_PINS_10)
  5. #define MB_TX_ENABLE gpio_bits_set(GPIOD, GPIO_PINS_10)
  6. //
  7. void modbus_tim_init(void);
  8. //
  9. void modbus_init(void);
  10. //
  11. void test_modbus_port_init(void);
  12. //
  13. void mb_tim_test(void);
  14. //
  15. void mb_test_gpio_init(void);
  16. #endif // __MISC_H