#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