?? lle_spi.h
字號:
/*******************************************************************************/
/**
Copyright (c) 2007 Freescale Semiconductor
\file lle_SPI.h
\brief Function prototypes for SPI module basic tasks
\author Freescale Semiconductor
\author B05114
\version 1.0
\date April/2007
*/
/*******************************************************************************/
#ifndef _LLE_SPI_H
#define _LLE_SPI_H
/* SPI baud rate = Bus_clock / Baud_rate_divider */
/* For SPI baud rate = 500kHz and Bus Clock=40 MHz, baud rate divider = 80 */
/* Baud rate divider = (SPPR+1)*2^(SPR+1) */
#define SPI_SPPR 4 /* (SPPR+1) = 5 */
#define SPI_SPR 3 /* 2^(SPR+1) = 16 */
/** Function Prototypes */
/** SPI module initializing */
void lle_SPI_Init(void);
/** 8 bit transmission and reception */
UINT8 lle_SPI_8(UINT8 *ptSPI);
/** 16 bit transmission and reception */
void lle_SPI_16(UINT8 *ptSPI);
/** 24 bit transmission and reception */
void lle_SPI_24(UINT8 *ptSPI);
#endif /* _LLE_SPI_H */
/*******************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -