Revision 8be006e0 modules/DiWheelDrive_1-1/module.c
| modules/DiWheelDrive_1-1/module.c | ||
|---|---|---|
| 438 | 438 |
#include <string.h> |
| 439 | 439 |
#include <chprintf.h> |
| 440 | 440 |
|
| 441 |
/* A3906 (motor driver) */ |
|
| 441 |
/* |
|
| 442 |
* A3906 (motor driver) |
|
| 443 |
*/ |
|
| 442 | 444 |
static int _utShellCmdCb_AlldA3906(BaseSequentialStream* stream, int argc, char* argv[]) |
| 443 | 445 |
{
|
| 444 | 446 |
(void)argc; |
| ... | ... | |
| 480 | 482 |
/* data */ &_utA3906Data, |
| 481 | 483 |
}; |
| 482 | 484 |
|
| 483 |
/* AT24C01BN (EEPROM) */ |
|
| 485 |
/* |
|
| 486 |
* AT24C01BN (EEPROM) |
|
| 487 |
*/ |
|
| 484 | 488 |
static int _utShellCmdCb_AlldAt24c01bn(BaseSequentialStream* stream, int argc, char* argv[]) |
| 485 | 489 |
{
|
| 486 | 490 |
(void)argc; |
| ... | ... | |
| 504 | 508 |
/* data */ &_utAt24c01bnData, |
| 505 | 509 |
}; |
| 506 | 510 |
|
| 507 |
/* HMC5883L (compass) */ |
|
| 511 |
/* |
|
| 512 |
* HMC5883L (compass) |
|
| 513 |
*/ |
|
| 508 | 514 |
static int _utShellCmdCb_AlldHmc5883l(BaseSequentialStream* stream, int argc, char* argv[]) |
| 509 | 515 |
{
|
| 510 | 516 |
(void)argc; |
| ... | ... | |
| 530 | 536 |
/* data */ &_utHmc5883lData, |
| 531 | 537 |
}; |
| 532 | 538 |
|
| 533 |
/* INA219 (power monitor) */ |
|
| 539 |
/* |
|
| 540 |
* INA219 (power monitor) |
|
| 541 |
*/ |
|
| 534 | 542 |
static int _utShellCmdCb_AlldIna219(BaseSequentialStream* stream, int argc, char* argv[]) |
| 535 | 543 |
{
|
| 536 | 544 |
(void)argc; |
| ... | ... | |
| 556 | 564 |
/* data */ &_utIna219Data, |
| 557 | 565 |
}; |
| 558 | 566 |
|
| 559 |
/* L3G4200D (gyroscope) */ |
|
| 567 |
/* |
|
| 568 |
* L3G4200D (gyroscope) |
|
| 569 |
*/ |
|
| 560 | 570 |
static int _utShellCmdCb_AlldL3g4200d(BaseSequentialStream* stream, int argc, char* argv[]) |
| 561 | 571 |
{
|
| 562 | 572 |
(void)argc; |
| ... | ... | |
| 584 | 594 |
/* data */ &_utL3g4200dData, |
| 585 | 595 |
}; |
| 586 | 596 |
|
| 587 |
/* Status LED */ |
|
| 597 |
/* |
|
| 598 |
* Status LED |
|
| 599 |
*/ |
|
| 588 | 600 |
static int _utShellCmdCb_AlldLed(BaseSequentialStream* stream, int argc, char* argv[]) |
| 589 | 601 |
{
|
| 590 | 602 |
(void)argc; |
| ... | ... | |
| 604 | 616 |
/* data */ &moduleLldStatusLed, |
| 605 | 617 |
}; |
| 606 | 618 |
|
| 607 |
/* LIS331DLH (accelerometer) */ |
|
| 619 |
/* |
|
| 620 |
* LIS331DLH (accelerometer) |
|
| 621 |
*/ |
|
| 608 | 622 |
static int _utShellCmdCb_AlldLis331dlh(BaseSequentialStream* stream, int argc, char* argv[]) |
| 609 | 623 |
{
|
| 610 | 624 |
(void)argc; |
| ... | ... | |
| 632 | 646 |
/* data */ &_utLis331dlhData, |
| 633 | 647 |
}; |
| 634 | 648 |
|
| 635 |
/* LTC4412 (power path controller) */ |
|
| 649 |
/* |
|
| 650 |
* LTC4412 (power path controller) |
|
| 651 |
*/ |
|
| 636 | 652 |
static int _utShellCmdCb_AlldLtc4412(BaseSequentialStream* stream, int argc, char* argv[]) |
| 637 | 653 |
{
|
| 638 | 654 |
(void)argc; |
| ... | ... | |
| 652 | 668 |
/* data */ &moduleLldPowerPathController, |
| 653 | 669 |
}; |
| 654 | 670 |
|
| 655 |
/* PCA9544A (I2C multiplexer) */ |
|
| 671 |
/* |
|
| 672 |
* PCA9544A (I2C multiplexer) |
|
| 673 |
*/ |
|
| 656 | 674 |
static int _utShellCmdCb_AlldPca9544a(BaseSequentialStream* stream, int argc, char* argv[]) |
| 657 | 675 |
{
|
| 658 | 676 |
(void)argc; |
| ... | ... | |
| 676 | 694 |
/* data */ &_utPca9544aData, |
| 677 | 695 |
}; |
| 678 | 696 |
|
| 679 |
/* TPS62113 (step-down converter) */ |
|
| 697 |
/* |
|
| 698 |
* TPS62113 (step-down converter) |
|
| 699 |
*/ |
|
| 680 | 700 |
static int _utShellCmdCb_AlldTps62113(BaseSequentialStream* stream, int argc, char* argv[]) |
| 681 | 701 |
{
|
| 682 | 702 |
(void)argc; |
| ... | ... | |
| 696 | 716 |
/* data */ &moduleLldStepDownConverterVdrive, |
| 697 | 717 |
}; |
| 698 | 718 |
|
| 699 |
/* VCNL4020 (proximity sensor) */ |
|
| 719 |
/* |
|
| 720 |
* VCNL4020 (proximity sensor) |
|
| 721 |
*/ |
|
| 700 | 722 |
static void _utAlldVcnl4020_disableInterrupt(VCNL4020Driver* vcnl) |
| 701 | 723 |
{
|
| 702 | 724 |
uint8_t intstatus; |
Also available in: Unified diff