Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <file_config.h> BOOL UnInit ( void);
The function UnInit de-initializes the SPI serial interface. It is invoked by the function funinit.
Use the function at run-time to disable the embedded Flash or SD Card. Afterwards, invoke only the function finit to re-initialize the drive.
The function is part of the SPI Driver. The prototype is defined in the file File_Config.h. Developers must customize the function.
spi.BusSpeed, spi.CheckMedia, spi.Init, spi.RecBuf, spi.Send, spi.SendBuf, spi.SetSS
/* SPI Device Driver Control Block */ SPI_DRV spi0_drv = { Init, UnInit, Send, SendBuf, RecBuf, BusSpeed, SetSS, CheckMedia }; /* Return SSP interface to default state. */ static BOOL UnInit (void) { IODIR0 &= ~(1<<20); PINSEL1 &= ~0x000003FC; SSPCR1 = 0x0000; SSPCR0 = 0x0000; SSPCPSR = 0x00; return (__TRUE); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
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.