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

📄 sramsw.h

📁 国外牛人公开的AVR代码
💻 H
字号:
/*! \file sramsw.h \brief Software-driven SRAM memory bus access functions. */
//*****************************************************************************
//
// File Name	: 'sramsw.h'
// Title		: Software-driven SRAM memory bus access functions
// Author		: Pascal Stang - Copyright (C) 2002
// Created		: 11/11/2002
// Revised		: 11/13/2002
// Version		: 1.0
// Target MCU	: Atmel AVR series
// Editor Tabs	: 4
//
// This code is distributed under the GNU Public License
//		which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************

#ifndef SRAMSW_H
#define SRAMSW_H

#include "global.h"
// include project-dependent configurations
// sramswconf.h allows the user to choose which ports
// and pins are used in the memory bus
#include "sramswconf.h"

// function prototypes

//! Initialize the memory bus
void sramswInit(void);
//! Write data using the memory bus
void sramswWrite(u32 addr, u08 data);
//! Read data using the memory bus
u08 sramswRead(u32 addr);
//! Set memory page
void sramswSetPage(u08 page);

#endif

⌨️ 快捷键说明

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