Skip to content

Commit

Permalink
allow external apps to use infrared settings
Browse files Browse the repository at this point in the history
by Willy-JL
  • Loading branch information
xMasterX committed Apr 4, 2024
1 parent ec4b8b8 commit 5ba6e32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 0 additions & 9 deletions applications/main/infrared/infrared_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@
#define INFRARED_TX_MIN_INTERVAL_MS (50U)
#define INFRARED_TASK_STACK_SIZE (2048UL)

#define INFRARED_SETTINGS_PATH EXT_PATH("infrared/.infrared.settings")
#define INFRARED_SETTINGS_VERSION (1)
#define INFRARED_SETTINGS_MAGIC (0x1F)

typedef struct {
FuriHalInfraredTxPin tx_pin;
bool otg_enabled;
} InfraredSettings;

static const NotificationSequence*
infrared_notification_sequences[InfraredNotificationMessageCount] = {
&sequence_success,
Expand Down
12 changes: 12 additions & 0 deletions applications/main/infrared/infrared_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@
* @brief InfraredApp opaque type declaration.
*/
typedef struct InfraredApp InfraredApp;

#include <storage/storage.h>
#include <furi_hal_infrared.h>

#define INFRARED_SETTINGS_PATH EXT_PATH("infrared/.infrared.settings")
#define INFRARED_SETTINGS_VERSION (1)
#define INFRARED_SETTINGS_MAGIC (0x1F)

typedef struct {
FuriHalInfraredTxPin tx_pin;
bool otg_enabled;
} InfraredSettings;

0 comments on commit 5ba6e32

Please sign in to comment.