diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-gigabeat-s.h | 1 | ||||
-rw-r--r-- | firmware/export/config.h | 9 | ||||
-rw-r--r-- | firmware/export/mc13783.h | 27 |
3 files changed, 35 insertions, 2 deletions
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h index a0c05dad45..cafb202ebe 100644 --- a/firmware/export/config-gigabeat-s.h +++ b/firmware/export/config-gigabeat-s.h | |||
@@ -97,6 +97,7 @@ | |||
97 | /* Define the bitmask of modules used */ | 97 | /* Define the bitmask of modules used */ |
98 | #define SPI_MODULE_MASK (USE_CSPI2_MODULE) | 98 | #define SPI_MODULE_MASK (USE_CSPI2_MODULE) |
99 | #define I2C_MODULE_MASK (USE_I2C1_MODULE) | 99 | #define I2C_MODULE_MASK (USE_I2C1_MODULE) |
100 | #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) | ||
100 | 101 | ||
101 | /* Define this if target has an additional number of threads specific to it */ | 102 | /* Define this if target has an additional number of threads specific to it */ |
102 | #define TARGET_EXTRA_THREADS 1 | 103 | #define TARGET_EXTRA_THREADS 1 |
diff --git a/firmware/export/config.h b/firmware/export/config.h index c200355872..c7e204c5df 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -341,7 +341,14 @@ | |||
341 | #endif | 341 | #endif |
342 | 342 | ||
343 | #if (CONFIG_CODEC == SWCODEC) | 343 | #if (CONFIG_CODEC == SWCODEC) |
344 | #ifndef BOOTLOADER | 344 | #ifdef BOOTLOADER |
345 | |||
346 | #if CONFIG_CPU == IMX31L | ||
347 | /* Priority in bootloader is wanted */ | ||
348 | #define HAVE_PRIORITY_SCHEDULING | ||
349 | #endif | ||
350 | |||
351 | #else /* !BOOTLOADER */ | ||
345 | 352 | ||
346 | #define HAVE_EXTENDED_MESSAGING_AND_NAME | 353 | #define HAVE_EXTENDED_MESSAGING_AND_NAME |
347 | 354 | ||
diff --git a/firmware/export/mc13783.h b/firmware/export/mc13783.h index 6ed1cb46be..1f6fee8c44 100644 --- a/firmware/export/mc13783.h +++ b/firmware/export/mc13783.h | |||
@@ -1270,6 +1270,9 @@ enum mc13783_regs_enum | |||
1270 | #define MC13783_TC3PERIODr(x) (((x) & MC13783_TC3PERIOD) >> 21) | 1270 | #define MC13783_TC3PERIODr(x) (((x) & MC13783_TC3PERIOD) >> 21) |
1271 | #define MC13783_TC3TRIODE (0x1 << 23) | 1271 | #define MC13783_TC3TRIODE (0x1 << 23) |
1272 | 1272 | ||
1273 | /* For event enum values which are target-defined */ | ||
1274 | #include "mc13783-target.h" | ||
1275 | |||
1273 | void mc13783_init(void); | 1276 | void mc13783_init(void); |
1274 | void mc13783_close(void); | 1277 | void mc13783_close(void); |
1275 | uint32_t mc13783_set(unsigned address, uint32_t bits); | 1278 | uint32_t mc13783_set(unsigned address, uint32_t bits); |
@@ -1281,6 +1284,28 @@ int mc13783_write_regset(const unsigned char *regs, const uint32_t *data, int co | |||
1281 | uint32_t mc13783_read(unsigned address); | 1284 | uint32_t mc13783_read(unsigned address); |
1282 | int mc13783_read_multiple(unsigned start, uint32_t *buffer, int count); | 1285 | int mc13783_read_multiple(unsigned start, uint32_t *buffer, int count); |
1283 | int mc13783_read_regset(const unsigned char *regs, uint32_t *buffer, int count); | 1286 | int mc13783_read_regset(const unsigned char *regs, uint32_t *buffer, int count); |
1284 | void mc13783_alarm_start(void); | 1287 | |
1288 | /* Statically-registered event enable/disable */ | ||
1289 | enum mc13783_event_sets | ||
1290 | { | ||
1291 | MC13783_EVENT_SET0 = 0, | ||
1292 | MC13783_EVENT_SET1 = 1, | ||
1293 | }; | ||
1294 | |||
1295 | struct mc13783_event | ||
1296 | { | ||
1297 | enum mc13783_event_sets set : 8; | ||
1298 | uint32_t mask : 24; | ||
1299 | void (*callback)(void); | ||
1300 | }; | ||
1301 | |||
1302 | struct mc13783_event_list | ||
1303 | { | ||
1304 | unsigned count; | ||
1305 | const struct mc13783_event *events; | ||
1306 | }; | ||
1307 | |||
1308 | bool mc13783_enable_event(enum mc13783_event_ids event); | ||
1309 | void mc13783_disable_event(enum mc13783_event_ids event); | ||
1285 | 1310 | ||
1286 | #endif /* _MC13783_H_ */ | 1311 | #endif /* _MC13783_H_ */ |