default lib is bcm2835, A few minor fixes
This commit is contained in:
parent
98dc64b8c2
commit
74e3e40f5c
20 changed files with 574 additions and 12 deletions
|
|
@ -114,7 +114,7 @@ void DEV_SPI_Write_nByte(uint8_t *pData, uint32_t Len)
|
|||
#ifdef RPI
|
||||
#ifdef USE_BCM2835_LIB
|
||||
char rData[Len];
|
||||
bcm2835_spi_transfernb(pData,rData,Len);
|
||||
bcm2835_spi_transfernb((char *)pData,rData,Len);
|
||||
#elif USE_WIRINGPI_LIB
|
||||
wiringPiSPIDataRW(0, pData, Len);
|
||||
#elif USE_DEV_LIB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue