You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
incubator_embeded/w5500/spi.h

32 lines
639 B

#ifndef __SPI_H
#define __SPI_H
#include "stm32f10x.h"
#define LOW 0
#define HIGH 1
//#define WIZ_SPI_RCC RCC_APB2Periph_GPIOB
//#define WIZ_SPI_PORT GPIOB
//#define WIZ_SCLK GPIO_Pin_13 // out
//#define WIZ_MISO GPIO_Pin_14 // in
//#define WIZ_MOSI GPIO_Pin_15 // out
//#define WIZ_RESET GPIO_Pin_0// out
//#define WIZ_RESET_PORT GPIOB
//#define WIZ_RESET_RCC RCC_APB2Periph_GPIOB
//#define WIZ_SCS GPIO_Pin_12 // out
//#define WIZ_SCS_PORT GPIOB
//#define WIZ_SCS_RCC RCC_APB2Periph_GPIOB
void WIZ_SPI_Init(void);
void WIZ_CS(uint8_t val);
uint8_t SPI2_SendByte(uint8_t byte);
#endif