config.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // List of compatible firmwares
  2. #define TOTP_FIRMWARE_OFFICIAL_STABLE (1)
  3. #define TOTP_FIRMWARE_OFFICIAL_DEV (2)
  4. #define TOTP_FIRMWARE_XTREME_UL (3)
  5. // End of list
  6. #if __has_include("ufbt_def.h")
  7. #include "ufbt_def.h"
  8. #endif
  9. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  10. // Application automatic lock timeout if user IDLE. (ticks)
  11. #ifndef TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC
  12. #define TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC (60)
  13. #endif
  14. // Enables\disables Bluetooth token input automation
  15. #ifndef TOTP_NO_BADBT_AUTOMATION
  16. #define TOTP_BADBT_AUTOMATION_ENABLED
  17. #endif
  18. // Enables\disables backward compatibility with crypto algorithms v1
  19. // #define TOTP_OBSOLETE_CRYPTO_V1_COMPATIBILITY_ENABLED
  20. // Enables\disables backward compatibility with crypto algorithms v2
  21. #ifndef TOTP_NO_OBSOLETE_CRYPTO_V2_COMPATIBILITY
  22. #define TOTP_OBSOLETE_CRYPTO_V2_COMPATIBILITY_ENABLED
  23. #endif
  24. // Enables\disables "Add new token" UI
  25. // If disabled it will print a link to wiki page
  26. #ifndef TOTP_UI_NO_ADD_NEW_TOKEN
  27. #define TOTP_UI_ADD_NEW_TOKEN_ENABLED
  28. #endif