FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/abb/board/abb_inth.c @ 446:bed6d393f3e0
C1xx targets: sensible handling of Compal's power key wiring
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 28 Jan 2018 19:26:10 +0000 |
parents | 651778900ec1 |
children | 92dbfa906f66 |
comparison
equal
deleted
inserted
replaced
445:399f3a5a5450 | 446:bed6d393f3e0 |
---|---|
35 | 35 |
36 #include "l1sw.cfg" | 36 #include "l1sw.cfg" |
37 #include "chipset.cfg" | 37 #include "chipset.cfg" |
38 #include "swconfig.cfg" | 38 #include "swconfig.cfg" |
39 #include "sys.cfg" | 39 #include "sys.cfg" |
40 #include "fc-target.cfg" | |
40 | 41 |
41 | 42 |
42 #include "l1_macro.h" | 43 #include "l1_macro.h" |
43 #include "l1_confg.h" | 44 #include "l1_confg.h" |
44 #include <string.h> | 45 #include <string.h> |
126 #endif | 127 #endif |
127 | 128 |
128 if (status_value == PWR_OFF_KEY_PRESSED) | 129 if (status_value == PWR_OFF_KEY_PRESSED) |
129 { | 130 { |
130 /* Inform keypad that key ON/OFF has been pressed */ | 131 /* Inform keypad that key ON/OFF has been pressed */ |
132 #ifndef CONFIG_TARGET_COMPAL | |
131 kpd_power_key_pressed(); | 133 kpd_power_key_pressed(); |
134 #endif | |
132 | 135 |
133 loop_count = 0; | 136 loop_count = 0; |
134 /* Wait loop for Power-OFF */ | 137 /* Wait loop for Power-OFF */ |
135 while ((loop_count < OFF_LOOP_COUNT) && | 138 while ((loop_count < OFF_LOOP_COUNT) && |
136 (status_value == PWR_OFF_KEY_PRESSED)) | 139 (status_value == PWR_OFF_KEY_PRESSED)) |