FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/abb/board/abb_inth.c @ 212:782c6ae77467
.../abb/board/abb_inth.c: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 22 Apr 2021 20:41:41 +0000 |
parents | 4e78acac3d88 |
children | 0947a816580c |
comparison
equal
deleted
inserted
replaced
211:96c7a4eed1df | 212:782c6ae77467 |
---|---|
11 /* Filename : abb_inth.c */ | 11 /* Filename : abb_inth.c */ |
12 /* */ | 12 /* */ |
13 /* Description : Functions to manage the ABB device interrupt. */ | 13 /* Description : Functions to manage the ABB device interrupt. */ |
14 /* The Serial Port Interface is used to connect the TI */ | 14 /* The Serial Port Interface is used to connect the TI */ |
15 /* Analog BaseBand (ABB). */ | 15 /* Analog BaseBand (ABB). */ |
16 /* It is assumed that the ABB is connected as the SPI */ | 16 /* It is assumed that the ABB is connected as the SPI */ |
17 /* device 0, and ABB interrupt is mapped as external IT. */ | 17 /* device 0, and ABB interrupt is mapped as external IT. */ |
18 /* */ | 18 /* */ |
19 /* Author : Pascal PUEL */ | 19 /* Author : Pascal PUEL */ |
20 /* */ | 20 /* */ |
21 /* Version number : 1.2 */ | 21 /* Version number : 1.2 */ |
22 /* */ | 22 /* */ |
40 #include "fc-target.h" | 40 #include "fc-target.h" |
41 | 41 |
42 | 42 |
43 #include "l1_macro.h" | 43 #include "l1_macro.h" |
44 #include "l1_confg.h" | 44 #include "l1_confg.h" |
45 #include <string.h> | 45 #include <string.h> |
46 #include "abb/abb_inth.h" | 46 #include "abb/abb_inth.h" |
47 #include "nucleus.h" | 47 #include "nucleus.h" |
48 | 48 |
49 #include "rv/rv_defined_swe.h" // for RVM_PWR_SWE | 49 #include "rv/rv_defined_swe.h" // for RVM_PWR_SWE |
50 | 50 |
65 | 65 |
66 #include "rvm/rvm_use_id_list.h" // for SPI_USE_ID | 66 #include "rvm/rvm_use_id_list.h" // for SPI_USE_ID |
67 #include "spi/spi_env.h" | 67 #include "spi/spi_env.h" |
68 #include "spi/spi_process.h" // for ABB_EXT_IRQ_EVT | 68 #include "spi/spi_process.h" // for ABB_EXT_IRQ_EVT |
69 #include "kpd/kpd_power_api.h" // for kpd_power_key_pressed() | 69 #include "kpd/kpd_power_api.h" // for kpd_power_key_pressed() |
70 #include "power/power.h" | 70 #include "power/power.h" |
71 | 71 |
72 #ifdef RVM_LCC_SWE | 72 #ifdef RVM_LCC_SWE |
73 #include "lcc/lcc_api.h" | 73 #include "lcc/lcc_api.h" |
74 #include "lcc/lcc_cfg_i.h" | 74 #include "lcc/lcc_cfg_i.h" |
75 #include "lcc/lcc.h" | 75 #include "lcc/lcc.h" |
155 } | 155 } |
156 } | 156 } |
157 #endif //WCP | 157 #endif //WCP |
158 } | 158 } |
159 else /* GSM OFF */ | 159 else /* GSM OFF */ |
160 { | 160 { |
161 rvf_send_trace("IQ EXT: Power On request",24, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); | 161 rvf_send_trace("IQ EXT: Power On request",24, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); |
162 | 162 |
163 Power_ON_Button(); | 163 Power_ON_Button(); |
164 } | 164 } |
165 } | 165 } |
169 rvf_send_trace("IQ EXT: Power Off remote request",32, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); | 169 rvf_send_trace("IQ EXT: Power Off remote request",32, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); |
170 | 170 |
171 /* 'Remote Power' from ON to OFF */ | 171 /* 'Remote Power' from ON to OFF */ |
172 Power_OFF_Remote(); | 172 Power_OFF_Remote(); |
173 } | 173 } |
174 | 174 |
175 else if (*read_value & ADCEND_IT_STS) | 175 else if (*read_value & ADCEND_IT_STS) |
176 { | 176 { |
177 rvf_send_trace("IQ EXT: ADC End",15, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); | 177 rvf_send_trace("IQ EXT: ADC End",15, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID); |
178 | 178 |
179 /* ADC end of conversion */ | 179 /* ADC end of conversion */ |