config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Application automatic lock timeout if user IDLE. (ticks)
  2. #ifndef TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC
  3. #define TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC (60)
  4. #endif
  5. // Enables\disables Bluetooth token input automation
  6. #ifndef TOTP_NO_BADBT_AUTOMATION
  7. #define TOTP_BADBT_AUTOMATION_ENABLED
  8. #endif
  9. // Enables\disables backward compatibility with crypto algorithms v1
  10. #ifndef TOTP_NO_OBSOLETE_CRYPTO_V1_COMPATIBILITY
  11. #define TOTP_OBSOLETE_CRYPTO_V1_COMPATIBILITY_ENABLED
  12. #endif
  13. // Enables\disables backward compatibility with crypto algorithms v2
  14. #ifndef TOTP_NO_OBSOLETE_CRYPTO_V2_COMPATIBILITY
  15. #define TOTP_OBSOLETE_CRYPTO_V2_COMPATIBILITY_ENABLED
  16. #endif
  17. // Enables\disables userfriendly TOTP CLI help text
  18. // If disabled, it will print a link to a wiki page
  19. #ifndef TOTP_CLI_NO_RICH_HELP
  20. #define TOTP_CLI_RICH_HELP_ENABLED
  21. #endif
  22. // Enables\disables "Add new token" UI
  23. // If disabled it will print a link to wiki page
  24. #ifndef TOTP_UI_NO_ADD_NEW_TOKEN
  25. #define TOTP_UI_ADD_NEW_TOKEN_ENABLED
  26. #endif
  27. // List of compatible firmwares
  28. #define TOTP_FIRMWARE_OFFICIAL_STABLE (1)
  29. #define TOTP_FIRMWARE_OFFICIAL_DEV (2)
  30. #define TOTP_FIRMWARE_XTREME_UL (3)
  31. // End of list
  32. // Target firmware
  33. #ifndef TOTP_TARGET_FIRMWARE
  34. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  35. #endif