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

📄 spi.h

📁 Hello ! This is Atmega spi driver source. Thank you!
💻 H
字号:

/*****************************************************************************
*
* Atmel Corporation
*
* File              : spi.h
* Compiler          : IAR EWAAVR 2.28a/3.10c
* Revision          : $Revision: 1.3 $
* Date              : $Date: 17. mars 2004 14:47:28 $
* Updated by        : $Author: ltwa $
*
* Support mail      : avr@atmel.com
*
* Supported devices : All devices with a SPI and USART module can be used.
*                     The example is written for the ATmega8
*
* AppNote           : AVR303 - SPI-UART Gateway
*
// Author           : Andy Gayne. avr@gayne.co.uk   www.gd-technik.com
// Description      : Header file for spi.c
****************************************************************************/

#define DDR_SPI   DDRB
#define PORT_SPI  PORTB
#define P_SS      PB2
#define P_MOSI    PB3
#define P_SCK     PB5

void SPI_MasterInit(void);
char SPI_MasterTransmit(char);

⌨️ 快捷键说明

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