Guest User

Untitled

a guest
Apr 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.05 KB | None | 0 0
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3.  
  4.  
  5. #define USART_BAUDRATE 1200
  6.  
  7. #define STB_SELF_ID                     STB_SERVER_ID //change it to own id
  8.  
  9. #define STB_NEXTCHAR_INTERVAL           500        ///<    MiliSec
  10. #define STB_TIMEOUT                     5000
  11.  
  12.  
  13. #define STB_ALIAS_SERVER                'P'
  14. #define STB_SERVER_ID                   'C'
  15.  
  16. #define STB_ALIAS_TOKENBOOTH            'T'
  17. #define STB_ALIAS_SERVICEBOOTH          'S'
  18.  
  19. #define STB_SERVER_PINGSERVICE          'p' /// ping the service booth
  20. #define STB_SERVER_NEWUSER              'n' /// send a user to service booth
  21. #define STB_SERVER_PINGTOKEN            'p' /// ping the token booth
  22.  
  23. #define STB_SERVICE_FREE                'i' /// service booth is free
  24. #define STB_SERVICE_BUSY                'U' /// service booth is busy
  25.  
  26. #define STB_TOKEN_NOUSER                'n' /// token booth has no new user
  27. #define STB_TOKEN_HASUSER               'u' /// token booth has new user
  28.  
  29.  
  30. #define NUM_SERVICE_BOOTH               5
  31. #define NUM_TOKEN_BOOTH                 1
  32.  
  33. #endif // CONFIG_H
Add Comment
Please, Sign In to add comment