Added libraries and firmware skeleton
This commit is contained in:
67
RotaxMonitor/src/pins.h
Normal file
67
RotaxMonitor/src/pins.h
Normal file
@@ -0,0 +1,67 @@
|
||||
// =====================
|
||||
// SPI BUS
|
||||
// =====================
|
||||
#define SPI_MOSI 11
|
||||
#define SPI_MISO 13
|
||||
#define SPI_SCK 12
|
||||
|
||||
// =====================
|
||||
// CHIP SELECT
|
||||
// =====================
|
||||
#define ADC_CS 10
|
||||
#define POT_CS 9
|
||||
|
||||
// =====================
|
||||
// ADC CONTROL
|
||||
// =====================
|
||||
#define ADC_DRDY 4
|
||||
#define ADC_RST 5
|
||||
#define ADC_SYNC 6
|
||||
|
||||
// =====================
|
||||
// DIGITAL POT
|
||||
// =====================
|
||||
#define POT_DRDY 7
|
||||
|
||||
// =====================
|
||||
// RELAY
|
||||
// =====================
|
||||
#define PICK_RELAY 8
|
||||
|
||||
// =====================
|
||||
// PEAK DETECTORS (DIGITAL INPUT)
|
||||
// =====================
|
||||
#define PKDT_AP 1
|
||||
#define PKDT_AN 2
|
||||
#define PKDT_BP 3
|
||||
#define PKDT_BN 14
|
||||
|
||||
// =====================
|
||||
// TRIGGER INPUTS
|
||||
// =====================
|
||||
#define TRIG_AP 15
|
||||
#define TRIG_AN 16
|
||||
#define TRIG_BP 17
|
||||
#define TRIG_BN 18
|
||||
|
||||
// =====================
|
||||
// SOFT START DETECT
|
||||
// =====================
|
||||
#define SOFT_A 21
|
||||
#define SOFT_B 47
|
||||
|
||||
// =====================
|
||||
// STATUS OUTPUT
|
||||
// =====================
|
||||
#define STA_1 35
|
||||
#define STA_2 36
|
||||
#define STA_3 37
|
||||
#define STA_4 38
|
||||
|
||||
// =====================
|
||||
// BUTTON INPUT
|
||||
// =====================
|
||||
#define BTN_1 39
|
||||
#define BTN_2 40
|
||||
#define BTN_3 41
|
||||
#define BTN_4 42
|
||||
Reference in New Issue
Block a user