mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Deploy felis/USB_Host_Shield_2.0 to github.com/felis/USB_Host_Shield_2.0.git:gh-pages
This commit is contained in:
parent
40e20beab7
commit
2cc394788d
1 changed files with 98 additions and 78 deletions
|
@ -1482,84 +1482,104 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|||
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span> <span class="preprocessor">#if defined(ESP8266)</span></div>
|
||||
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> <span class="comment">// Pinout for ESP-12 module</span></div>
|
||||
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> <span class="comment">// 0 .. 16 - Digital pins</span></div>
|
||||
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> <span class="comment">// GPIO 6 to 11 and 16 are not usable in this library.</span></div>
|
||||
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> </div>
|
||||
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> MAKE_PIN(P0, 0);</div>
|
||||
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> MAKE_PIN(P1, 1); <span class="comment">// TX0</span></div>
|
||||
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> MAKE_PIN(P2, 2); <span class="comment">// TX1</span></div>
|
||||
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> MAKE_PIN(P3, 3); <span class="comment">// RX0</span></div>
|
||||
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> MAKE_PIN(P4, 4); <span class="comment">// SDA</span></div>
|
||||
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> MAKE_PIN(P5, 5); <span class="comment">// SCL</span></div>
|
||||
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> MAKE_PIN(P12, 12); <span class="comment">// MISO</span></div>
|
||||
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> MAKE_PIN(P13, 13); <span class="comment">// MOSI</span></div>
|
||||
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> MAKE_PIN(P14, 14); <span class="comment">// SCK</span></div>
|
||||
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> MAKE_PIN(P15, 15); <span class="comment">// SS</span></div>
|
||||
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> </div>
|
||||
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="preprocessor">#elif defined(ESP32)</span></div>
|
||||
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> <span class="comment">// Workaround strict-aliasing warnings</span></div>
|
||||
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> <span class="preprocessor">#ifdef pgm_read_word</span></div>
|
||||
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_word</span></div>
|
||||
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_dword</span></div>
|
||||
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_dword</span></div>
|
||||
<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_float</span></div>
|
||||
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_float</span></div>
|
||||
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_ptr</span></div>
|
||||
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_ptr</span></div>
|
||||
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> <span class="preprocessor">#define pgm_read_word(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> <span class="preprocessor"> *(const unsigned short *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_dword(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="preprocessor"> *(const unsigned long *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_float(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="preprocessor"> *(const float *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="preprocessor"> *(void * const *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> <span class="comment">// Pinout for ESP32 dev module</span></div>
|
||||
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> </div>
|
||||
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> MAKE_PIN(P0, 0);</div>
|
||||
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> MAKE_PIN(P1, 1); <span class="comment">// TX0</span></div>
|
||||
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> MAKE_PIN(P10, 10); <span class="comment">// TX1</span></div>
|
||||
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> MAKE_PIN(P3, 3); <span class="comment">// RX0</span></div>
|
||||
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> MAKE_PIN(P21, 21); <span class="comment">// SDA</span></div>
|
||||
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> MAKE_PIN(P22, 22); <span class="comment">// SCL</span></div>
|
||||
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> MAKE_PIN(P19, 19); <span class="comment">// MISO</span></div>
|
||||
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> MAKE_PIN(P23, 23); <span class="comment">// MOSI</span></div>
|
||||
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> MAKE_PIN(P18, 18); <span class="comment">// SCK</span></div>
|
||||
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> MAKE_PIN(P5, 5); <span class="comment">// SS</span></div>
|
||||
<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> MAKE_PIN(P17, 17); <span class="comment">// INT</span></div>
|
||||
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> </div>
|
||||
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> <span class="preprocessor">#undef MAKE_PIN</span></div>
|
||||
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> <span class="comment">// pgm_read_ptr is not defined in the ESP32, so we have to undef the diffinition from version_helper.h</span></div>
|
||||
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> <span class="preprocessor">#ifdef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_pointer(p) pgm_read_ptr(p)</span></div>
|
||||
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> <span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> <span class="preprocessor"></span><span class="preprocessor">#error "Please define board in avrpins.h"</span></div>
|
||||
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> <span class="preprocessor">#endif //_avrpins_h_</span></div>
|
||||
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span> <span class="comment">// Workaround the following issue: https://github.com/esp8266/Arduino/pull/5735</span></div>
|
||||
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span> <span class="preprocessor">#undef pgm_read_ptr_aligned</span></div>
|
||||
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span></div>
|
||||
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr_aligned(addr) (*reinterpret_cast<const void* const*>(addr))</span></div>
|
||||
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr_aligned(addr) (*(const void* const*)(addr))</span></div>
|
||||
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span> <span class="preprocessor">#undef pgm_read_ptr</span></div>
|
||||
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> <span class="preprocessor"></span><span class="preprocessor">#if PGM_READ_UNALIGNED</span></div>
|
||||
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr(p) pgm_read_ptr_unaligned(p)</span></div>
|
||||
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr(p) pgm_read_ptr_aligned(p)</span></div>
|
||||
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span> <span class="preprocessor">#ifdef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_pointer(p) pgm_read_ptr(p)</span></div>
|
||||
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span> <span class="comment">// Pinout for ESP-12 module</span></div>
|
||||
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span> <span class="comment">// 0 .. 16 - Digital pins</span></div>
|
||||
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> <span class="comment">// GPIO 6 to 11 and 16 are not usable in this library.</span></div>
|
||||
<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span> </div>
|
||||
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> MAKE_PIN(P0, 0);</div>
|
||||
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> MAKE_PIN(P1, 1); <span class="comment">// TX0</span></div>
|
||||
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span> MAKE_PIN(P2, 2); <span class="comment">// TX1</span></div>
|
||||
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span> MAKE_PIN(P3, 3); <span class="comment">// RX0</span></div>
|
||||
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span> MAKE_PIN(P4, 4); <span class="comment">// SDA</span></div>
|
||||
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span> MAKE_PIN(P5, 5); <span class="comment">// SCL</span></div>
|
||||
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span> MAKE_PIN(P12, 12); <span class="comment">// MISO</span></div>
|
||||
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span> MAKE_PIN(P13, 13); <span class="comment">// MOSI</span></div>
|
||||
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span> MAKE_PIN(P14, 14); <span class="comment">// SCK</span></div>
|
||||
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> MAKE_PIN(P15, 15); <span class="comment">// SS</span></div>
|
||||
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> </div>
|
||||
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> <span class="preprocessor">#elif defined(ESP32)</span></div>
|
||||
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span> <span class="comment">// Workaround strict-aliasing warnings</span></div>
|
||||
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span> <span class="preprocessor">#ifdef pgm_read_word</span></div>
|
||||
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_word</span></div>
|
||||
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_dword</span></div>
|
||||
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_dword</span></div>
|
||||
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_float</span></div>
|
||||
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_float</span></div>
|
||||
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span> <span class="preprocessor"></span><span class="preprocessor">#ifdef pgm_read_ptr</span></div>
|
||||
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_ptr</span></div>
|
||||
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span> <span class="preprocessor">#define pgm_read_word(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span> <span class="preprocessor"> *(const unsigned short *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_dword(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01455"></a><span class="lineno"> 1455</span> <span class="preprocessor"> *(const unsigned long *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_float(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span> <span class="preprocessor"> *(const float *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_ptr(addr) ({ \</span></div>
|
||||
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span> <span class="preprocessor"> typeof(addr) _addr = (addr); \</span></div>
|
||||
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span> <span class="preprocessor"> *(void * const *)(_addr); \</span></div>
|
||||
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span> <span class="preprocessor">})</span></div>
|
||||
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> <span class="comment">// Pinout for ESP32 dev module</span></div>
|
||||
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> </div>
|
||||
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span> MAKE_PIN(P0, 0);</div>
|
||||
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> MAKE_PIN(P1, 1); <span class="comment">// TX0</span></div>
|
||||
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span> MAKE_PIN(P10, 10); <span class="comment">// TX1</span></div>
|
||||
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span> MAKE_PIN(P3, 3); <span class="comment">// RX0</span></div>
|
||||
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> MAKE_PIN(P21, 21); <span class="comment">// SDA</span></div>
|
||||
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span> MAKE_PIN(P22, 22); <span class="comment">// SCL</span></div>
|
||||
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span> MAKE_PIN(P19, 19); <span class="comment">// MISO</span></div>
|
||||
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span> MAKE_PIN(P23, 23); <span class="comment">// MOSI</span></div>
|
||||
<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span> MAKE_PIN(P18, 18); <span class="comment">// SCK</span></div>
|
||||
<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span> MAKE_PIN(P5, 5); <span class="comment">// SS</span></div>
|
||||
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> MAKE_PIN(P17, 17); <span class="comment">// INT</span></div>
|
||||
<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span> </div>
|
||||
<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span> <span class="preprocessor">#undef MAKE_PIN</span></div>
|
||||
<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> <span class="comment">// pgm_read_ptr is not defined in the ESP32, so we have to undef the diffinition from version_helper.h</span></div>
|
||||
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span> <span class="preprocessor">#ifdef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span> <span class="preprocessor"></span><span class="preprocessor">#undef pgm_read_pointer</span></div>
|
||||
<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> <span class="preprocessor"></span><span class="preprocessor">#define pgm_read_pointer(p) pgm_read_ptr(p)</span></div>
|
||||
<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01490"></a><span class="lineno"> 1490</span> <span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span> <span class="preprocessor"></span><span class="preprocessor">#error "Please define board in avrpins.h"</span></div>
|
||||
<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> <span class="preprocessor">#endif //_avrpins_h_</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
|
Loading…
Reference in a new issue