Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

Home Forums MPLAB XC8 Tutorial Discussions How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater? Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

#2502

Bitahwa Bindu
Keymaster

You can change these functions in diskio.h if you are using PIC18F Peripheral Libraries:

#define sd_init() SPI1_Initialize() with OpenSPI()

#define sd_open() SPI1_Open()

#define sd_tx(d) SPI1_Exchange8bit(d) with WriteSPI()

#define sd_rx() SPI1_Exchange8bit(0xFF) with ReadSPI()

What XC8 compiler version are you using?