#ifndef __MAX6675_H
#define __MAX6675_H
#include "stm32f10x.h"
#include "delay.h"
#define TC1_RCC_MAX6675_SCK RCC_APB2Periph_GPIOB
#define TC1_MAX6675_PORT GPIOB
#define TC1_SCK GPIO_Pin_8
#define TC1_CS GPIO_Pin_9
#define TC1_SO GPIO_Pin_10
#define TC2_RCC_MAX6675_SCK RCC_APB2Periph_GPIOB
#define TC2_MAX6675_PORT GPIOB
#define TC2_SCK GPIO_Pin_11
#define TC2_CS GPIO_Pin_12
#define TC2_SO GPIO_Pin_13
#define TC3_RCC_MAX6675_SCK RCC_APB2Periph_GPIOB
#define TC3_MAX6675_PORT GPIOB
#define TC3_SCK GPIO_Pin_0
#define TC3_CS GPIO_Pin_1
#define TC3_SO GPIO_Pin_2
#define TC4_RCC_MAX6675_SCK RCC_APB2Periph_GPIOB
#define TC4_MAX6675_PORT GPIOB
#define TC4_SCK GPIO_Pin_5
#define TC4_CS GPIO_Pin_6
#define TC4_SO GPIO_Pin_7
void Init_MAX6675_GPIO(void);
void MAX6675_Read_Temp(unsigned char channel);
#endif
|