config.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. // #define TOTP_OBSOLETE_CRYPTO_V1_COMPATIBILITY_ENABLED
  11. // Enables\disables backward compatibility with crypto algorithms v2
  12. #ifndef TOTP_NO_OBSOLETE_CRYPTO_V2_COMPATIBILITY
  13. #define TOTP_OBSOLETE_CRYPTO_V2_COMPATIBILITY_ENABLED
  14. #endif
  15. // Enables\disables "Add new token" UI
  16. // If disabled it will print a link to wiki page
  17. #ifndef TOTP_UI_NO_ADD_NEW_TOKEN
  18. #define TOTP_UI_ADD_NEW_TOKEN_ENABLED
  19. #endif
  20. // List of compatible firmwares
  21. #define TOTP_FIRMWARE_OFFICIAL_STABLE (1)
  22. #define TOTP_FIRMWARE_OFFICIAL_DEV (2)
  23. #define TOTP_FIRMWARE_XTREME_UL (3)
  24. // End of list
  25. // Checking FlipC.org definitions (https://github.com/playmean/fap-list/issues/9)
  26. #if defined(TARGET_FIRMWARE_OFFICIAL)
  27. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  28. #elif defined(TARGET_FIRMWARE_UNLEASHED)
  29. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  30. #elif defined(TARGET_FIRMWARE_XTREME)
  31. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  32. #endif
  33. // End of FlipC.org definition checks
  34. // If target firmware is not yet set, default it to OFW because there is no chance to force Flipper Devices to update their build pipelines :angry:.
  35. // I'm still using Xtreme firmware, it is still the best one and I highly recommend it to everybody.
  36. #ifndef TOTP_TARGET_FIRMWARE
  37. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  38. #endif