ffsport_spi.h

来自「The Fat Fs module is a middleware that w」· C头文件 代码 · 共 42 行

H
42
字号
/***********************************************************
*          MMC/SD-interface to SPI-slot of ATMega128       *
*                                                          *
*          by  Frank Goetze  -  www.embedded-os.de         *
************************************************************
*                      FFSPort_SPI.c                       *
*                 SPI-PORT DECLARATIONS                    *
***********************************************************/
#define MMC_ATMega128

#include "../../../../inc/OS_Def_ATMega128.h"

/*
************************************************************
*                      DEFINITIONS
************************************************************
*/
#ifndef SPI2X
 #define SPI2X                    0
#endif
#ifndef SPIE
 #define SPIE                     7
#endif

#define FFSPort_MMC_CS_OFF        PORTB |= 0x01
#define FFSPort_MMC_CS_ON         PORTB &= 0xFE
#define FFSPort_MMC_CD()          (PINB & 0x10)   // only for none-INT based card-detect
#define FFSPort_MMC_WP()          (PINB & 0x20)

/*
***********************************************************
*          MMC-Port of FFS/FAT FUNCTION PROTOTYPES
***********************************************************
*/
U32 FFSPort_MMC_SetBR(U32 maxclk);
U08 FFSPort_MMC_Send(U08 w);
U08 FFSPort_MMC_Init(void);
U08 FFSPort_MMC_ReInit(void);
//U08 FFSPort_MMC_CD(void);                       // for INT based card-detect

/************************* END ****************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?