bexus_modes.h 794 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef bexus_modes_h
  2. #define bexus_modes_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /**----------------Includes-----------------------------*/
  7. #include <stdbool.h>
  8. //#include "cmsis_os.h"
  9. #include "main.h"
  10. /**-----------------------------------------------------*/
  11. #define MODE_SINGLE 1
  12. #define MODE_NORMAL 2
  13. #define MODE_DEBUG 3
  14. /**----------------variables---------------------------*/
  15. extern short Debug;
  16. extern short isMaster;
  17. extern short mode_select;
  18. extern short heartbeat;
  19. extern short new_data_received;
  20. extern uint32_t timer_normal_mode[2];
  21. /**-----------------------------------------------------*/
  22. /**------------------functions--------------------------*/
  23. void Mode_Select(void);
  24. /**-----------------------------------------------------*/
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif