|
|||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
SPI DriverSPI Driver describes the low-level routines to interface the SD/MMC Flash memory cards or SPI data Flash memory. Driver modules are located in the folder \ARM\RL\FlashFS\Drivers and have the file name SPI_device_family.c. Copy the driver module to the project folder. Any module can be used as a template for creating new drivers. The driver control block structure is defined in the file File_Config.h as follows: typedef struct { BOOL (*Init) (void); BOOL (*UnInit) (void); U8 (*Send) (U8 outb); BOOL (*SendBuf) (U8 *buf, U32 sz); BOOL (*RecBuf) (U8 *buf, U32 sz); BOOL (*BusSpeed) (U32 kbaud); BOOL (*SetSS) (U32 ss); U32 (*CheckMedia) (void); /* Optional, NULL if not existing */ } const SPI_DRV; Developers can adapt the code in the following functions:
| ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.