Commit Iniziale, progetto funzionante caricato su box ETcontroller in
cantina
This commit is contained in:
41
IO_Ports.h
Normal file
41
IO_Ports.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* IO_Ports.h
|
||||
*
|
||||
* Created on: 23 set 2017
|
||||
* Author: Emanuele
|
||||
*/
|
||||
|
||||
#ifndef IO_PORTS_H_
|
||||
#define IO_PORTS_H_
|
||||
|
||||
// SPI Interface
|
||||
#define MOSI PB_5
|
||||
#define MISO PB_4
|
||||
#define SCLK PB_3
|
||||
#define CS PB_10
|
||||
#define RST PA_8
|
||||
|
||||
//One Wire Thermometers
|
||||
#define WH_T PB_6
|
||||
#define SL_T PC_7
|
||||
#define RS_T PA_9
|
||||
|
||||
// RELAY OUTPUTS
|
||||
#define DO0 PC_8
|
||||
#define DO1 PC_6
|
||||
#define DO2 PC_5
|
||||
#define DO3 PC_9
|
||||
#define DO4 PB_8
|
||||
#define DO5 PB_9
|
||||
#define DO6 PA_12
|
||||
#define DO7 PA_11
|
||||
|
||||
// CT Inputs
|
||||
#define CT1 A0
|
||||
|
||||
//PIN FUNCTIONS
|
||||
enum{LIMIT_1=1,LIMIT_2,LIMIT_3,LIMIT_4,RISC1_ON,RISC2_ON,PUMP_ON};
|
||||
|
||||
|
||||
#endif /* IO_PORTS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user