Revision 3106e8cc modules/PowerManagement_1-2/module.c
modules/PowerManagement_1-2/module.c | ||
---|---|---|
124 | 124 |
* @brief SWITCH_STATUS input signal GPIO. |
125 | 125 |
*/ |
126 | 126 |
static apalGpio_t _gpioSwitchStatus = { |
127 |
/* port */ GPIOA, |
|
128 |
/* pad */ GPIOA_SWITCH_STATUS_N, |
|
127 |
/* line */ LINE_SWITCH_STATUS_N, |
|
129 | 128 |
}; |
130 | 129 |
ROMCONST apalControlGpio_t moduleGpioSwitchStatus = { |
131 | 130 |
/* GPIO */ &_gpioSwitchStatus, |
... | ... | |
140 | 139 |
* @brief SYS_REG_EN output signal GPIO. |
141 | 140 |
*/ |
142 | 141 |
static apalGpio_t _gpioSysRegEn = { |
143 |
/* port */ GPIOA, |
|
144 |
/* pad */ GPIOA_SYS_REG_EN, |
|
142 |
/* line */ LINE_SYS_REG_EN, |
|
145 | 143 |
}; |
146 | 144 |
ROMCONST apalControlGpio_t moduleGpioSysRegEn = { |
147 | 145 |
/* GPIO */ &_gpioSysRegEn, |
... | ... | |
156 | 154 |
* @brief IR_INT1 input signal GPIO. |
157 | 155 |
*/ |
158 | 156 |
static apalGpio_t _gpioIrInt1 = { |
159 |
/* port */ GPIOB, |
|
160 |
/* pad */ GPIOB_IR_INT1_N, |
|
157 |
/* line */ LINE_IR_INT1_N, |
|
161 | 158 |
}; |
162 | 159 |
ROMCONST apalControlGpio_t moduleGpioIrInt1 = { |
163 | 160 |
/* GPIO */ &_gpioIrInt1, |
... | ... | |
183 | 180 |
* @brief POWER_EN output signal GPIO. |
184 | 181 |
*/ |
185 | 182 |
static apalGpio_t _gpioPowerEn = { |
186 |
/* port */ GPIOB, |
|
187 |
/* pad */ GPIOB_POWER_EN, |
|
183 |
/* line */ LINE_POWER_EN, |
|
188 | 184 |
}; |
189 | 185 |
ROMCONST apalControlGpio_t moduleGpioPowerEn = { |
190 | 186 |
/* GPIO */ &_gpioPowerEn, |
... | ... | |
199 | 195 |
* @brief SYS_UART_DN bidirectional signal GPIO. |
200 | 196 |
*/ |
201 | 197 |
static apalGpio_t _gpioSysUartDn = { |
202 |
/* port */ GPIOB, |
|
203 |
/* pad */ GPIOB_SYS_UART_DN, |
|
198 |
/* line */ LINE_SYS_UART_DN, |
|
204 | 199 |
}; |
205 | 200 |
ROMCONST apalControlGpio_t moduleGpioSysUartDn = { |
206 | 201 |
/* GPIO */ &_gpioSysUartDn, |
... | ... | |
215 | 210 |
* @brief CHARGE_STAT2A input signal GPIO. |
216 | 211 |
*/ |
217 | 212 |
static apalGpio_t _gpioChargeStat2A = { |
218 |
/* port */ GPIOB, |
|
219 |
/* pad */ GPIOB_CHARGE_STAT2A, |
|
213 |
/* line */ LINE_CHARGE_STAT2A, |
|
220 | 214 |
}; |
221 | 215 |
ROMCONST apalControlGpio_t moduleGpioChargeStat2A = { |
222 | 216 |
/* GPIO */ &_gpioChargeStat2A, |
... | ... | |
231 | 225 |
* @brief GAUGE_BATLOW2 input signal GPIO. |
232 | 226 |
*/ |
233 | 227 |
static apalGpio_t _gpioGaugeBatLow2 = { |
234 |
/* port */ GPIOB, |
|
235 |
/* pad */ GPIOB_GAUGE_BATLOW2, |
|
228 |
/* line */ LINE_GAUGE_BATLOW2, |
|
236 | 229 |
}; |
237 | 230 |
ROMCONST apalControlGpio_t moduleGpioGaugeBatLow2 = { |
238 | 231 |
/* GPIO */ &_gpioGaugeBatLow2, |
... | ... | |
247 | 240 |
* @brief GAUGE_BATGD2 input signal GPIO. |
248 | 241 |
*/ |
249 | 242 |
static apalGpio_t _gpioGaugeBatGd2 = { |
250 |
/* port */ GPIOB, |
|
251 |
/* pad */ GPIOB_GAUGE_BATGD2_N, |
|
243 |
/* line */ LINE_GAUGE_BATGD2_N, |
|
252 | 244 |
}; |
253 | 245 |
ROMCONST apalControlGpio_t moduleGpioGaugeBatGd2 = { |
254 | 246 |
/* GPIO */ &_gpioGaugeBatGd2, |
... | ... | |
263 | 255 |
* @brief LED output signal GPIO. |
264 | 256 |
*/ |
265 | 257 |
static apalGpio_t _gpioLed = { |
266 |
/* port */ GPIOB, |
|
267 |
/* pad */ GPIOB_LED, |
|
258 |
/* line */ LINE_LED, |
|
268 | 259 |
}; |
269 | 260 |
ROMCONST apalControlGpio_t moduleGpioLed = { |
270 | 261 |
/* GPIO */ &_gpioLed, |
... | ... | |
279 | 270 |
* @brief SYS_UART_UP bidirectional signal GPIO. |
280 | 271 |
*/ |
281 | 272 |
static apalGpio_t _gpioSysUartUp = { |
282 |
/* port */ GPIOB, |
|
283 |
/* pad */ GPIOB_SYS_UART_UP, |
|
273 |
/* line */ LINE_SYS_UART_UP, |
|
284 | 274 |
}; |
285 | 275 |
ROMCONST apalControlGpio_t moduleGpioSysUartUp = { |
286 | 276 |
/* GPIO */ &_gpioSysUartUp, |
... | ... | |
295 | 285 |
* @brief CHARGE_STAT1A input signal GPIO. |
296 | 286 |
*/ |
297 | 287 |
static apalGpio_t _gpioChargeStat1A = { |
298 |
/* port */ GPIOC, |
|
299 |
/* pad */ GPIOC_CHARGE_STAT1A, |
|
288 |
/* line */ LINE_CHARGE_STAT1A, |
|
300 | 289 |
}; |
301 | 290 |
ROMCONST apalControlGpio_t moduleGpioChargeStat1A = { |
302 | 291 |
/* GPIO */ &_gpioChargeStat1A, |
... | ... | |
311 | 300 |
* @brief GAUGE_BATLOW1 input signal GPIO. |
312 | 301 |
*/ |
313 | 302 |
static apalGpio_t _gpioGaugeBatLow1 = { |
314 |
/* port */ GPIOC, |
|
315 |
/* pad */ GPIOC_GAUGE_BATLOW1, |
|
303 |
/* line */ LINE_GAUGE_BATLOW1, |
|
316 | 304 |
}; |
317 | 305 |
ROMCONST apalControlGpio_t moduleGpioGaugeBatLow1 = { |
318 | 306 |
/* GPIO */ &_gpioGaugeBatLow1, |
... | ... | |
327 | 315 |
* @brief GAUGE_BATGD1 input signal GPIO. |
328 | 316 |
*/ |
329 | 317 |
static apalGpio_t _gpioGaugeBatGd1 = { |
330 |
/* port */ GPIOC, |
|
331 |
/* pad */ GPIOC_GAUGE_BATGD1_N, |
|
318 |
/* line */ LINE_GAUGE_BATGD1_N, |
|
332 | 319 |
}; |
333 | 320 |
ROMCONST apalControlGpio_t moduleGpioGaugeBatGd1 = { |
334 | 321 |
/* GPIO */ &_gpioGaugeBatGd1, |
... | ... | |
343 | 330 |
* @brief CHARG_EN1 output signal GPIO. |
344 | 331 |
*/ |
345 | 332 |
static apalGpio_t _gpioChargeEn1 = { |
346 |
/* port */ GPIOC, |
|
347 |
/* pad */ GPIOC_CHARGE_EN1_N, |
|
333 |
/* line */ LINE_CHARGE_EN1_N, |
|
348 | 334 |
}; |
349 | 335 |
ROMCONST apalControlGpio_t moduleGpioChargeEn1 = { |
350 | 336 |
/* GPIO */ &_gpioChargeEn1, |
... | ... | |
359 | 345 |
* @brief IR_INT2 input signal GPIO. |
360 | 346 |
*/ |
361 | 347 |
static apalGpio_t _gpioIrInt2 = { |
362 |
/* port */ GPIOC, |
|
363 |
/* pad */ GPIOC_IR_INT2_N, |
|
348 |
/* line */ LINE_IR_INT2_N, |
|
364 | 349 |
}; |
365 | 350 |
ROMCONST apalControlGpio_t moduleGpioIrInt2 = { |
366 | 351 |
/* GPIO */ &_gpioIrInt2, |
... | ... | |
386 | 371 |
* @brief TOUCH_INT input signal GPIO. |
387 | 372 |
*/ |
388 | 373 |
static apalGpio_t _gpioTouchInt = { |
389 |
/* port */ GPIOC, |
|
390 |
/* pad */ GPIOC_TOUCH_INT_N, |
|
374 |
/* line */ LINE_TOUCH_INT_N, |
|
391 | 375 |
}; |
392 | 376 |
ROMCONST apalControlGpio_t moduleGpioTouchInt = { |
393 | 377 |
/* GPIO */ &_gpioTouchInt, |
... | ... | |
413 | 397 |
* @brief SYS_DONE input signal GPIO. |
414 | 398 |
*/ |
415 | 399 |
static apalGpio_t _gpioSysDone = { |
416 |
/* port */ GPIOC, |
|
417 |
/* pad */ GPIOC_SYS_DONE, |
|
400 |
/* line */ LINE_SYS_DONE, |
|
418 | 401 |
}; |
419 | 402 |
ROMCONST apalControlGpio_t moduleGpioSysDone = { |
420 | 403 |
/* GPIO */ &_gpioSysDone, |
... | ... | |
429 | 412 |
* @brief SYS_PROG output signal GPIO. |
430 | 413 |
*/ |
431 | 414 |
static apalGpio_t _gpioSysProg = { |
432 |
/* port */ GPIOC, |
|
433 |
/* pad */ GPIOC_SYS_PROG_N, |
|
415 |
/* line */ LINE_SYS_PROG_N, |
|
434 | 416 |
}; |
435 | 417 |
ROMCONST apalControlGpio_t moduleGpioSysProg = { |
436 | 418 |
/* GPIO */ &_gpioSysProg, |
... | ... | |
445 | 427 |
* @brief PATH_DC input signal GPIO. |
446 | 428 |
*/ |
447 | 429 |
static apalGpio_t _gpioPathDc = { |
448 |
/* port */ GPIOC, |
|
449 |
/* pad */ GPIOC_PATH_DC, |
|
430 |
/* line */ LINE_PATH_DC, |
|
450 | 431 |
}; |
451 | 432 |
ROMCONST apalControlGpio_t moduleGpioPathDc = { |
452 | 433 |
/* GPIO */ &_gpioPathDc, |
... | ... | |
461 | 442 |
* @brief SYS_SPI_DIR bidirectional signal GPIO. |
462 | 443 |
*/ |
463 | 444 |
static apalGpio_t _gpioSysSpiDir = { |
464 |
/* port */ GPIOC, |
|
465 |
/* pad */ GPIOC_SYS_SPI_DIR, |
|
445 |
/* line */ LINE_SYS_SPI_DIR, |
|
466 | 446 |
}; |
467 | 447 |
ROMCONST apalControlGpio_t moduleGpioSysSpiDir = { |
468 | 448 |
/* GPIO */ &_gpioSysSpiDir, |
... | ... | |
477 | 457 |
* @brief SYS_SYNC bidirectional signal GPIO. |
478 | 458 |
*/ |
479 | 459 |
static apalGpio_t _gpioSysSync = { |
480 |
/* port */ GPIOC, |
|
481 |
/* pad */ GPIOC_SYS_INT_N, |
|
460 |
/* line */ LINE_SYS_INT_N, |
|
482 | 461 |
}; |
483 | 462 |
ROMCONST apalControlGpio_t moduleGpioSysSync = { |
484 | 463 |
/* GPIO */ &_gpioSysSync, |
... | ... | |
493 | 472 |
* @brief SYS_PD bidirectional signal GPIO. |
494 | 473 |
*/ |
495 | 474 |
static apalGpio_t _gpioSysPd = { |
496 |
/* port */ GPIOC, |
|
497 |
/* pad */ GPIOC_SYS_PD_N, |
|
475 |
/* line */ LINE_SYS_PD_N, |
|
498 | 476 |
}; |
499 | 477 |
ROMCONST apalControlGpio_t moduleGpioSysPd = { |
500 | 478 |
/* GPIO */ &_gpioSysPd, |
... | ... | |
509 | 487 |
* @brief SYS_WARMRST bidirectional signal GPIO. |
510 | 488 |
*/ |
511 | 489 |
static apalGpio_t _gpioSysWarmrst = { |
512 |
/* port */ GPIOC, |
|
513 |
/* pad */ GPIOC_SYS_WARMRST_N, |
|
490 |
/* line */ LINE_SYS_WARMRST_N, |
|
514 | 491 |
}; |
515 | 492 |
ROMCONST apalControlGpio_t moduleGpioSysWarmrst = { |
516 | 493 |
/* GPIO */ &_gpioSysWarmrst, |
... | ... | |
525 | 502 |
* @brief BT_RST output signal GPIO. |
526 | 503 |
*/ |
527 | 504 |
static apalGpio_t _gpioBtRst = { |
528 |
/* port */ GPIOC, |
|
529 |
/* pad */ GPIOC_BT_RST, |
|
505 |
/* line */ LINE_BT_RST, |
|
530 | 506 |
}; |
531 | 507 |
ROMCONST apalControlGpio_t moduleGpioBtRst = { |
532 | 508 |
/* GPIO */ &_gpioBtRst, |
... | ... | |
541 | 517 |
* @brief CHARGE_EN2 output signal GPIO. |
542 | 518 |
*/ |
543 | 519 |
static apalGpio_t _gpioChargeEn2 = { |
544 |
/* port */ GPIOD, |
|
545 |
/* pad */ GPIOD_CHARGE_EN2_N, |
|
520 |
/* line */ LINE_CHARGE_EN2_N, |
|
546 | 521 |
}; |
547 | 522 |
ROMCONST apalControlGpio_t moduleGpioChargeEn2 = { |
548 | 523 |
/* GPIO */ &_gpioChargeEn2, |
Also available in: Unified diff