You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h 518B

1234567891011121314151617181920212223242526
  1. //
  2. // Created by robin on 5/6/16.
  3. //
  4. #ifndef DIGICODE_HOST_CONFIG_H
  5. #define DIGICODE_HOST_CONFIG_H
  6. #define SERIAL_BAUDRATE 9600
  7. #define SERIAL_PACKET_TYPE unsigned char
  8. #define SERIAL_PACKET_LENGTH_TYPE unsigned char
  9. #define SERIAL_PACKET_TYPE_INT unsigned char
  10. #define ERROR_NONE 0
  11. #define ERROR_HOST_PROTOCOL 1
  12. #define ERROR_HOST_TIMEOUT 2
  13. #define PACKET_DEBUG 1
  14. #define PACKET_SELF_TEST 2
  15. #define PACKET_LOGIN 3
  16. #define LOGIN_OK 0
  17. #define LOGIN_FAILED 1
  18. #define LOGIN_ERROR 2
  19. #endif //DIGICODE_HOST_CONFIG_H