Guest User

Untitled

a guest
Apr 21st, 2018
78
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. #define STB_SELF_ID                     STB_SERVER_ID //change it to own id
  5.  
  6. #define USART_BAUDRATE 1200
  7. #define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1)
  8.  
  9.  
  10.  
  11. #define STB_NEXTCHAR_INTERVAL       500        ///<    MiliSec
  12. #define STB_TIMEOUT                     5000
  13.  
  14.  
  15. #define STB_ALIAS_SERVER        'P'
  16. #define STB_SERVER_ID                   'C'
  17.  
  18. #define STB_ALIAS_TOKENBOOTH        'T'
  19. #define STB_ALIAS_SERVICEBOOTH      'S'
  20.  
  21. #define STB_SERVER_PINGSERVICE          'p' /// ping the service booth
  22. #define STB_SERVER_NEWUSER      'n' /// send a user to service booth
  23. #define STB_SERVER_PINGTOKEN            'p' /// ping the token booth
  24.  
  25. #define STB_SERVICE_FREE        'i' /// service booth is free
  26. #define STB_SERVICE_BUSY            'U' /// service booth is busy
  27.  
  28. #define STB_TOKEN_NOUSER                'n' /// token booth has no new user
  29. #define STB_TOKEN_HASUSER               'u' /// token booth has new user
  30.  
  31.  
  32. #define NUM_SERVICE_BOOTH               5
  33. #define NUM_TOKEN_BOOTH                 1
  34.  
  35. #endif // CONFIG_H
Add Comment
Please, Sign In to add comment