config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // Checking FlipC.org definitions (https://github.com/playmean/fap-list/issues/9)
  33. #if defined(TARGET_FIRMWARE_OFFICIAL)
  34. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  35. #elif defined(TARGET_FIRMWARE_UNLEASHED)
  36. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  37. #elif defined(TARGET_FIRMWARE_XTREME)
  38. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_XTREME_UL
  39. #endif
  40. // End of FlipC.org definition checks
  41. // 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:.
  42. // I'm still using Xtreme firmware, it is still the best one and I highly recommend it to everybody.
  43. #ifndef TOTP_TARGET_FIRMWARE
  44. #define TOTP_TARGET_FIRMWARE TOTP_FIRMWARE_OFFICIAL_STABLE
  45. #endif