⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ffsport_spi.h

📁 The Fat Fs module is a middleware that written in ANSI C. There is no platform dependence, so long a
💻 H
字号:
/***********************************************************
*          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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -