misc.h 318 B

1234567891011121314151617181920
  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. #endif // __MISC_H