Revision 3106e8cc modules/PowerManagement_1-1/module.c

View differences:

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

Also available in: Unified diff