spi.h
来自「Source code for driving RFM01 fm radio r」· C头文件 代码 · 共 46 行
H
46 行
/** \file spi.h \brief Sterownik interfejsu SPI. */
/*
Copyright (c) 2004 Robert Krysztof
robert.krysztof@wp.pl
http://www.avr-gcc.prv.pl
*/
//*****************************************************************************
//
// File Name : 'spi.h'
// Title : SPI interface driver
// Author : Pascal Stang - Copyright (C) 2000-2002
//
// This code is distributed under the GNU Public License
// which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************
/** \defgroup spi Interfejs SPI
Zawiera funkcje obs硊gi wbudowanego interfejsu SPI
\code
#include "spi.h"
\endcode
*/
#ifndef SPI_H
#define SPI_H
#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include "global.h"
/*@{*/
// Define the SPI_USEINT key if you want SPI bus operation to be
// interrupt-driven. The primary reason for not using SPI in
// interrupt-driven mode is if the SPI send/transfer commands
// will be used from within some other interrupt service routine
// or if interrupts might be globally turned off due to of other
// aspects of your program
//
// Comment-out or uncomment this line as necessary
//#define SPI_USEINT
/// Zanacznik wskazuj筩y, 縠 zako馽zy
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?