bexus_modes.c 531 B

12345678910111213141516171819202122
  1. #include "bexus_modes.h"
  2. /**----------------variables---------------------------*/
  3. short Debug=0;
  4. short isMaster=1;
  5. short mode_select=0;
  6. short heartbeat=0;
  7. short new_data_received;
  8. uint32_t timer_normal_mode[2]={0,0};
  9. /**-----------------------------------------------------*/
  10. /**------------------functions--------------------------*/ //TBR
  11. void Mode_Select(void){
  12. if(heartbeat == 1){
  13. mode_select = MODE_NORMAL;
  14. }
  15. else{
  16. mode_select = MODE_SINGLE;
  17. }
  18. }
  19. /**-----------------------------------------------------*/