config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef TOTP_TARGET_FIRMWARE
  10. #if defined(TARGET_FIRMWARE_OFFICIAL) || defined(FW_ORIGIN_Official)
  11. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  12. #elif defined(TARGET_FIRMWARE_UNLEASHED) || defined(FW_ORIGIN_Unleashed)
  13. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  14. #elif defined(TARGET_FIRMWARE_XTREME) || defined(FW_ORIGIN_Xtreme)
  15. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  16. #else
  17. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  18. #endif
  19. #endif
  20. // Application automatic lock timeout if user IDLE. (ticks)
  21. #ifndef TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC
  22. #define TOTP_AUTO_LOCK_IDLE_TIMEOUT_SEC (60)
  23. #endif
  24. // Enables\disables Bluetooth token input automation
  25. #ifndef TOTP_NO_BADBT_AUTOMATION
  26. #define TOTP_BADBT_AUTOMATION_ENABLED
  27. #endif
  28. // Enables\disables backward compatibility with crypto algorithms v1
  29. // #define TOTP_OBSOLETE_CRYPTO_V1_COMPATIBILITY_ENABLED
  30. // Enables\disables backward compatibility with crypto algorithms v2
  31. #ifndef TOTP_NO_OBSOLETE_CRYPTO_V2_COMPATIBILITY
  32. #define TOTP_OBSOLETE_CRYPTO_V2_COMPATIBILITY_ENABLED
  33. #endif
  34. // Enables\disables "Add new token" UI
  35. // If disabled it will print a link to wiki page
  36. #ifndef TOTP_UI_NO_ADD_NEW_TOKEN
  37. #define TOTP_UI_ADD_NEW_TOKEN_ENABLED
  38. #endif