diff options
Diffstat (limited to 'firmware/export/mc13783.h')
-rw-r--r-- | firmware/export/mc13783.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/export/mc13783.h b/firmware/export/mc13783.h index d427830786..83edd31904 100644 --- a/firmware/export/mc13783.h +++ b/firmware/export/mc13783.h | |||
@@ -1067,7 +1067,7 @@ enum mc13783_regs_enum | |||
1067 | #define MC13783_ICHRG_1064MA (0xc << 3) /* 967 1064 1170 */ | 1067 | #define MC13783_ICHRG_1064MA (0xc << 3) /* 967 1064 1170 */ |
1068 | #define MC13783_ICHRG_1152MA (0xd << 3) /* 1048 1152 1268 */ | 1068 | #define MC13783_ICHRG_1152MA (0xd << 3) /* 1048 1152 1268 */ |
1069 | #define MC13783_ICHRG_1596MA (0xe << 3) /* 1450 1596 1755 */ | 1069 | #define MC13783_ICHRG_1596MA (0xe << 3) /* 1450 1596 1755 */ |
1070 | #define MC13783_ICHRG_FULLY_ON (0xf << 3) /* Disallow HW FET turn on */ | 1070 | #define MC13783_ICHRG_FULLY_ON (0xf << 3) /* Disallow HW FET turn on */ |
1071 | #define MC13783_ICHRGTR (0x7 << 7) /* Min Nom Max */ | 1071 | #define MC13783_ICHRGTR (0x7 << 7) /* Min Nom Max */ |
1072 | #define MC13783_ICHRGTR_POS (7) | 1072 | #define MC13783_ICHRGTR_POS (7) |
1073 | #define MC13783_ICHRGTR_0MA (0x0 << 7) /* 0 0 0 */ | 1073 | #define MC13783_ICHRGTR_0MA (0x0 << 7) /* 0 0 0 */ |
@@ -1340,11 +1340,12 @@ struct mc13783_event | |||
1340 | { \ | 1340 | { \ |
1341 | static const struct mc13783_event __tbl[] = { | 1341 | static const struct mc13783_event __tbl[] = { |
1342 | 1342 | ||
1343 | #define MC13783_EVENT_VECTOR_CB(__name) void MC13783_EVENT_CB_##__name(void) | ||
1344 | |||
1343 | #define MC13783_EVENT_VECTOR(__name, __sense) \ | 1345 | #define MC13783_EVENT_VECTOR(__name, __sense) \ |
1344 | { .id = MC13783_INT_ID_##__name, \ | 1346 | { .id = MC13783_INT_ID_##__name, \ |
1345 | .sense = (__sense), \ | 1347 | .sense = (__sense), \ |
1346 | .callback = ({ void MC13783_EVENT_CB_##__name(void); \ | 1348 | .callback = (MC13783_EVENT_CB_##__name) }, |
1347 | MC13783_EVENT_CB_##__name; }) }, | ||
1348 | 1349 | ||
1349 | #define MC13783_EVENT_VECTOR_TBL_END() \ | 1350 | #define MC13783_EVENT_VECTOR_TBL_END() \ |
1350 | }; \ | 1351 | }; \ |