mirror of
https://github.com/dimoniche/solarium.vlad.git
synced 2026-01-30 21:13:31 +03:00
19 lines
509 B
C
19 lines
509 B
C
#ifndef __SPI_H__
|
|
#define __SPI_H__
|
|
|
|
// íîìåð spi äëÿ fram
|
|
#define FM25_SPI 0
|
|
#define MFRC522_SPI 1
|
|
|
|
extern unsigned char spi_unselectChip(unsigned char spi);
|
|
extern unsigned char spi_selectChip(unsigned char spi);
|
|
extern void SpiInit(void);
|
|
extern unsigned char SpiExchange(unsigned char spi, unsigned char ch);
|
|
extern void spi_getSem();
|
|
extern void spi_freeSem();
|
|
|
|
extern void mfr_reset_up();
|
|
extern void mfr_reset_down();
|
|
extern void us_delay_spi(unsigned long x);
|
|
|
|
#endif //#ifndef __SPI_H__
|