Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CONFIG_H
- #define CONFIG_H
- #define STB_SELF_ID STB_SERVER_ID //change it to own id
- #define USART_BAUDRATE 1200
- #define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1)
- #define STB_NEXTCHAR_INTERVAL 500 ///< MiliSec
- #define STB_TIMEOUT 5000
- #define STB_ALIAS_SERVER 'P'
- #define STB_SERVER_ID 'C'
- #define STB_ALIAS_TOKENBOOTH 'T'
- #define STB_ALIAS_SERVICEBOOTH 'S'
- #define STB_SERVER_PINGSERVICE 'p' /// ping the service booth
- #define STB_SERVER_NEWUSER 'n' /// send a user to service booth
- #define STB_SERVER_PINGTOKEN 'p' /// ping the token booth
- #define STB_SERVICE_FREE 'i' /// service booth is free
- #define STB_SERVICE_BUSY 'U' /// service booth is busy
- #define STB_TOKEN_NOUSER 'n' /// token booth has no new user
- #define STB_TOKEN_HASUSER 'u' /// token booth has new user
- #define NUM_SERVICE_BOOTH 5
- #define NUM_TOKEN_BOOTH 1
- #endif // CONFIG_H
Add Comment
Please, Sign In to add comment