summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/gigabeats.h2
-rw-r--r--firmware/export/mc13783.h9
2 files changed, 7 insertions, 4 deletions
diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h
index 481a666b4b..685076bfa3 100644
--- a/firmware/export/config/gigabeats.h
+++ b/firmware/export/config/gigabeats.h
@@ -164,7 +164,7 @@
164#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) 164#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
165 165
166/* Define this if target has an additional number of threads specific to it */ 166/* Define this if target has an additional number of threads specific to it */
167#define TARGET_EXTRA_THREADS 2 167#define TARGET_EXTRA_THREADS 1
168 168
169/* Type of mobile power - check this out */ 169/* Type of mobile power - check this out */
170#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */ 170#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
diff --git a/firmware/export/mc13783.h b/firmware/export/mc13783.h
index 99fd004420..4324d06df5 100644
--- a/firmware/export/mc13783.h
+++ b/firmware/export/mc13783.h
@@ -1333,7 +1333,8 @@ enum mc13783_int_ids
1333 1333
1334struct mc13783_event 1334struct mc13783_event
1335{ 1335{
1336 enum mc13783_int_ids int_id; 1336 enum mc13783_int_ids int_id : 8;
1337 uint32_t sense : 24;
1337 void (*callback)(void); 1338 void (*callback)(void);
1338}; 1339};
1339 1340
@@ -1343,7 +1344,9 @@ struct mc13783_event_list
1343 const struct mc13783_event *events; 1344 const struct mc13783_event *events;
1344}; 1345};
1345 1346
1346bool mc13783_enable_event(enum mc13783_event_ids event); 1347void mc13783_enable_event(enum mc13783_event_ids id, bool enable);
1347void mc13783_disable_event(enum mc13783_event_ids event); 1348
1349/* Read the sense bit if one exists - valid only within event handlers */
1350uint32_t mc13783_event_sense(enum mc13783_event_ids id);
1348 1351
1349#endif /* _MC13783_H_ */ 1352#endif /* _MC13783_H_ */