@@ -387,12 +387,12 @@ void beginBoard()
387
387
pin_Cellular_RX = 14 ;
388
388
389
389
// 30, D18 : SPI SCK --> Ethernet, microSD card
390
- // 31, D19 : SPI POCI
390
+ // 31, D19 : SPI POCI --> microSD card SDO
391
391
// 33, D21 : I2C0 SDA --> ZED, NEO, USB2514B, TP, I/O connector
392
392
pin_I2C0_SDA = 21 ;
393
393
// 36, D22 : I2C0 SCL
394
394
pin_I2C0_SCL = 22 ;
395
- // 37, D23 : SPI PICO
395
+ // 37, D23 : SPI PICO --> microSD card SDI
396
396
// 10, D25 : GNSS RX --> ZED UART1 TXO
397
397
pin_GnssUart_RX = 25 ;
398
398
// 11, D26 : LARA_PWR_ON
@@ -415,8 +415,8 @@ void beginBoard()
415
415
// 5, A39 : Ethernet Interrupt
416
416
pin_Ethernet_Interrupt = 39 ;
417
417
418
- pin_PICO = 23 ;
419
- pin_POCI = 19 ;
418
+ pin_PICO = 23 ; // SPI PICO --> microSD card SDI
419
+ pin_POCI = 19 ; // SPI POCI --> microSD card SDO
420
420
pin_SCK = 18 ;
421
421
422
422
// Disable the Ethernet controller
@@ -495,10 +495,10 @@ void beginBoard()
495
495
pin_GnssUart_RX = 14 ;
496
496
pin_microSD_CardDetect = 15 ;
497
497
// 30, D18 : SPI SCK --> microSD card
498
- // 31, D19 : SPI POCI --> microSD card
498
+ // 31, D19 : SPI POCI --> microSD card SDO
499
499
pin_I2C0_SDA = 21 ;
500
500
pin_I2C0_SCL = 22 ;
501
- // 37, D23 : SPI PICO --> microSD card
501
+ // 37, D23 : SPI PICO --> microSD card SDI
502
502
pin_microSD_CS = 25 ;
503
503
pin_muxDAC = 26 ;
504
504
pin_peripheralPowerControl = 27 ;
@@ -507,8 +507,8 @@ void beginBoard()
507
507
pin_chargerLED = 34 ;
508
508
pin_chargerLED2 = 36 ;
509
509
pin_muxADC = 39 ;
510
- pin_PICO = 23 ;
511
- pin_POCI = 19 ;
510
+ pin_PICO = 23 ; // SPI PICO --> microSD card SDI
511
+ pin_POCI = 19 ; // SPI POCI --> microSD card SDO
512
512
pin_SCK = 18 ;
513
513
514
514
pinMode (pin_muxA, OUTPUT);
@@ -574,11 +574,11 @@ void beginBoard()
574
574
pin_GnssUart_TX = 13 ;
575
575
pin_GnssUart_RX = 14 ;
576
576
pin_microSD_CardDetect = 15 ;
577
- // 30, D18 : SPI SCK --> microSD card
578
- // 31, D19 : SPI POCI --> microSD card
577
+ // 30, D18 : SPI SCK --> microSD card SCK
578
+ // 31, D19 : SPI POCI --> microSD card SDO
579
579
pin_I2C0_SDA = 21 ;
580
580
pin_I2C0_SCL = 22 ;
581
- // 37, D23 : SPI PICO --> microSD card
581
+ // 37, D23 : SPI PICO --> microSD card SDI
582
582
pin_microSD_CS = 25 ;
583
583
pin_muxDAC = 26 ;
584
584
pin_peripheralPowerControl = 27 ;
@@ -587,8 +587,8 @@ void beginBoard()
587
587
pin_chargerLED = 34 ;
588
588
pin_chargerLED2 = 36 ;
589
589
pin_muxADC = 39 ;
590
- pin_PICO = 23 ;
591
- pin_POCI = 19 ;
590
+ pin_PICO = 23 ; // SPI PICO --> microSD card SDI
591
+ pin_POCI = 19 ; // SPI POCI --> microSD card SDO
592
592
pin_SCK = 18 ;
593
593
594
594
pinMode (pin_muxA, OUTPUT);
@@ -744,9 +744,9 @@ void beginBoard()
744
744
pin_GNSS_Reset = 33 ;
745
745
pin_GNSS_TimePulse = 36 ; // PPS on LG290P
746
746
747
+ pin_PICO = 26 ; // SPI PICO --> microSD card SDI
748
+ pin_POCI = 25 ; // SPI POCI --> microSD card SDO
747
749
pin_SCK = 32 ;
748
- pin_POCI = 25 ;
749
- pin_PICO = 26 ;
750
750
pin_microSD_CS = 27 ;
751
751
752
752
pin_gpioExpanderInterrupt = 14 ; // Pin 'AOI' (Analog Output Input) on Portability Shield
@@ -785,7 +785,7 @@ void beginBoard()
785
785
// TODO Change to MFi present.encryption_atecc608a = true;
786
786
787
787
present.button_powerLow = true ; // Button is pressed when high
788
- // present.button_mode = true; //TODO remove comment. This won't be available until v1.1 of hardware
788
+ // present.button_mode = true; //TODO remove comment. This won't be available until v1.1 of hardware
789
789
present.beeper = true ;
790
790
present.gnss_to_uart = true ;
791
791
present.needsExternalPpl = true ; // Uses the PointPerfect Library
@@ -811,7 +811,7 @@ void beginBoard()
811
811
pin_GnssUart_TX = 27 ;
812
812
813
813
pin_powerSenseAndControl = 34 ;
814
- // pin_modeButton = 25; //TODO remove comment. This won't be available until v1.1 of hardware
814
+ // pin_modeButton = 25; //TODO remove comment. This won't be available until v1.1 of hardware
815
815
816
816
pin_IMU_RX = 14 ; // ESP32 UART2
817
817
pin_IMU_TX = 17 ;
@@ -823,13 +823,13 @@ void beginBoard()
823
823
824
824
pin_beeper = 33 ;
825
825
826
+ pin_PICO = 21 ; // SPI PICO --> microSD card SDI
827
+ pin_POCI = 19 ; // SPI POCI --> microSD card SDO
828
+ pin_SCK = 18 ; // SPI SCK --> microSD card SCK
826
829
pin_microSD_CS = 22 ;
827
830
pin_microSD_CardDetect = 39 ;
828
- // D18 : SPI SCK --> microSD card
829
- // D19 : SPI POCI --> microSD card
830
- // D21 : SPI PICO --> microSD card
831
831
832
- pin_gpioExpanderInterrupt = 2 ; // Not used since all GPIO expanded pins are outputs
832
+ pin_gpioExpanderInterrupt = 2 ; // TODO remove on v1.1 hardware. Not used since all GPIO expanded pins are outputs
833
833
834
834
DMW_if systemPrintf (" pin_bluetoothStatusLED: %d\r\n " , pin_bluetoothStatusLED);
835
835
pinMode (pin_bluetoothStatusLED, OUTPUT);
@@ -1124,11 +1124,11 @@ void beginGnssUart()
1124
1124
1125
1125
xTaskCreatePinnedToCore (
1126
1126
pinGnssUartTask,
1127
- " GnssUartStart" , // Just for humans
1128
- 2000 , // Stack Size
1129
- nullptr , // Task input parameter
1130
- 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1131
- &taskHandle, // Task handle
1127
+ " GnssUartStart" , // Just for humans
1128
+ 2000 , // Stack Size
1129
+ nullptr , // Task input parameter
1130
+ 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1131
+ &taskHandle, // Task handle
1132
1132
settings.gnssUartInterruptsCore ); // Core where task should run, 0=core, 1=Arduino
1133
1133
}
1134
1134
@@ -1570,10 +1570,10 @@ void beginIdleTasks()
1570
1570
if (idleTaskHandle[index] == nullptr )
1571
1571
xTaskCreatePinnedToCore (
1572
1572
idleTask,
1573
- taskName, // Just for humans
1574
- 2000 , // Stack Size
1575
- nullptr , // Task input parameter
1576
- 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1573
+ taskName, // Just for humans
1574
+ 2000 , // Stack Size
1575
+ nullptr , // Task input parameter
1576
+ 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1577
1577
&idleTaskHandle[index], // Task handle
1578
1578
index); // Core where task should run, 0=core, 1=Arduino
1579
1579
}
@@ -1629,11 +1629,11 @@ void beginI2C()
1629
1629
{
1630
1630
xTaskCreatePinnedToCore (
1631
1631
pinI2CTask,
1632
- " I2CStart" , // Just for humans
1633
- 2000 , // Stack Size
1634
- nullptr , // Task input parameter
1635
- 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1636
- &taskHandle, // Task handle
1632
+ " I2CStart" , // Just for humans
1633
+ 2000 , // Stack Size
1634
+ nullptr , // Task input parameter
1635
+ 0 , // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
1636
+ &taskHandle, // Task handle
1637
1637
settings.i2cInterruptsCore ); // Core where task should run, 0=core, 1=Arduino
1638
1638
1639
1639
// Wait for task to start running
@@ -1717,82 +1717,98 @@ bool i2cBusInitialization(TwoWire *i2cBus, int sda, int scl, int clockKHz)
1717
1717
1718
1718
switch (addr)
1719
1719
{
1720
- default : {
1720
+ default :
1721
+ {
1721
1722
systemPrintf (" 0x%02X\r\n " , addr);
1722
1723
break ;
1723
1724
}
1724
1725
1725
- case 0x08 : {
1726
+ case 0x08 :
1727
+ {
1726
1728
systemPrintf (" 0x%02X - HUSB238 Power Delivery Sink Controller\r\n " , addr);
1727
1729
break ;
1728
1730
}
1729
1731
1730
- case 0x0B : {
1732
+ case 0x0B :
1733
+ {
1731
1734
systemPrintf (" 0x%02X - BQ40Z50 Battery Pack Manager / Fuel gauge\r\n " , addr);
1732
1735
break ;
1733
1736
}
1734
1737
1735
- case 0x10 : {
1738
+ case 0x10 :
1739
+ {
1736
1740
systemPrintf (" 0x%02X - MFi Authentication Coprocessor\r\n " , addr);
1737
1741
break ;
1738
1742
}
1739
1743
1740
- case 0x18 : {
1744
+ case 0x18 :
1745
+ {
1741
1746
systemPrintf (" 0x%02X - PCA9557 GPIO Expander with Reset\r\n " , addr);
1742
1747
break ;
1743
1748
}
1744
1749
1745
- case 0x19 : {
1750
+ case 0x19 :
1751
+ {
1746
1752
systemPrintf (" 0x%02X - LIS2DH12 Accelerometer\r\n " , addr);
1747
1753
break ;
1748
1754
}
1749
1755
1750
- case 0x20 : {
1756
+ case 0x20 :
1757
+ {
1751
1758
systemPrintf (" 0x%02X - PCA9554 GPIO Expander with Interrupt (Postcard)\r\n " , addr);
1752
1759
break ;
1753
1760
}
1754
1761
1755
- case 0x21 : {
1762
+ case 0x21 :
1763
+ {
1756
1764
systemPrintf (" 0x%02X - PCA9554 GPIO Expander with Interrupt (Flex)\r\n " , addr);
1757
1765
break ;
1758
1766
}
1759
1767
1760
- case 0x2C : {
1768
+ case 0x2C :
1769
+ {
1761
1770
systemPrintf (" 0x%02X - USB251xB USB Hub\r\n " , addr);
1762
1771
break ;
1763
1772
}
1764
1773
1765
- case 0x36 : {
1774
+ case 0x36 :
1775
+ {
1766
1776
systemPrintf (" 0x%02X - MAX17048 Fuel Gauge\r\n " , addr);
1767
1777
break ;
1768
1778
}
1769
1779
1770
- case 0x3C : {
1780
+ case 0x3C :
1781
+ {
1771
1782
systemPrintf (" 0x%02X - SSD1306 OLED Driver (Flex)\r\n " , addr);
1772
1783
break ;
1773
1784
}
1774
1785
1775
- case 0x3D : {
1786
+ case 0x3D :
1787
+ {
1776
1788
systemPrintf (" 0x%02X - SSD1306 OLED Driver (Postcard/EVK/mosaic)\r\n " , addr);
1777
1789
break ;
1778
1790
}
1779
1791
1780
- case 0x42 : {
1792
+ case 0x42 :
1793
+ {
1781
1794
systemPrintf (" 0x%02X - u-blox GNSS Receiver\r\n " , addr);
1782
1795
break ;
1783
1796
}
1784
1797
1785
- case 0x43 : {
1798
+ case 0x43 :
1799
+ {
1786
1800
systemPrintf (" 0x%02X - u-blox NEO-D9S Correction Data Receiver\r\n " , addr);
1787
1801
break ;
1788
1802
}
1789
1803
1790
- case 0x5C : {
1804
+ case 0x5C :
1805
+ {
1791
1806
systemPrintf (" 0x%02X - MP27692A Power Management / Charger\r\n " , addr);
1792
1807
break ;
1793
1808
}
1794
1809
1795
- case 0x60 : {
1810
+ case 0x60 :
1811
+ {
1796
1812
systemPrintf (" 0x%02X - ATECC608A Cryptographic Coprocessor\r\n " , addr);
1797
1813
break ;
1798
1814
}
0 commit comments