config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "Add new token" UI
  18. // If disabled it will print a link to wiki page
  19. #ifndef TOTP_UI_NO_ADD_NEW_TOKEN
  20. #define TOTP_UI_ADD_NEW_TOKEN_ENABLED
  21. #endif
  22. // List of compatible firmwares
  23. #define TOTP_FIRMWARE_OFFICIAL_STABLE (1)
  24. #define TOTP_FIRMWARE_OFFICIAL_DEV (2)
  25. #define TOTP_FIRMWARE_XTREME_UL (3)
  26. // End of list
  27. // Checking FlipC.org definitions (https://github.com/playmean/fap-list/issues/9)
  28. #if defined(TARGET_FIRMWARE_OFFICIAL)
  29. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  30. #elif defined(TARGET_FIRMWARE_UNLEASHED)
  31. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  32. #elif defined(TARGET_FIRMWARE_XTREME)
  33. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  34. #endif
  35. // End of FlipC.org definition checks
  36. // 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:.
  37. // I'm still using Xtreme firmware, it is still the best one and I highly recommend it to everybody.
  38. #ifndef TOTP_TARGET_FIRMWARE
  39. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  40. #endif