hw functions for the SOLID slow control

Dependents:   S_SCTRL_e_test SPItest sscm

Committer:
wbeaumont
Date:
Tue Oct 14 17:05:20 2014 +0000
Revision:
11:0416cf017b7a
Parent:
10:1cae1504a800
Child:
16:6bbb6bb0678a
added DEIMOS32  for channel identification on the DEIMOS board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wbeaumont 0:8d755a0f3ab3 1 #ifndef S_SCTL_SM1_PINDEF_H
wbeaumont 0:8d755a0f3ab3 2 #define S_SCTL_SM1_PINDEF_H
wbeaumont 0:8d755a0f3ab3 3
wbeaumont 8:fe1477cd1c14 4 /*
wbeaumont 8:fe1477cd1c14 5 * v 1.11 corrected LVDS_MOSI from B1 to E1
wbeaumont 8:fe1477cd1c14 6 * v 1.12 corrected for LDIR values
wbeaumont 9:20f21cb7792e 7 * v 1.13 corrected for RDIR values
wbeaumont 11:0416cf017b7a 8 * v 1.15 added call active levels
wbeaumont 0:8d755a0f3ab3 9
wbeaumont 0:8d755a0f3ab3 10
wbeaumont 8:fe1477cd1c14 11 */
wbeaumont 8:fe1477cd1c14 12
wbeaumont 8:fe1477cd1c14 13
wbeaumont 11:0416cf017b7a 14 #define PINDEF_VER "1.15"
wbeaumont 8:fe1477cd1c14 15
wbeaumont 8:fe1477cd1c14 16 #define MOSI PTE1
wbeaumont 0:8d755a0f3ab3 17 #define MISO PTB8
wbeaumont 0:8d755a0f3ab3 18 #define SCLK PTD6
wbeaumont 0:8d755a0f3ab3 19 #define TEMP_CSN PTD7
wbeaumont 0:8d755a0f3ab3 20 #define TEMP_CABLE_CSN1 PTC8
wbeaumont 0:8d755a0f3ab3 21 #define TEMP_CABLE_CSN2 PTE3
wbeaumont 0:8d755a0f3ab3 22 #define DAC_DCEN PTE0
wbeaumont 0:8d755a0f3ab3 23 #define DAC_RSTN PTC13
wbeaumont 0:8d755a0f3ab3 24 // SPI 1 bi
wbeaumont 0:8d755a0f3ab3 25 #define ADC_STIO PTB9
wbeaumont 0:8d755a0f3ab3 26 #define STIO_MO PTE5
wbeaumont 0:8d755a0f3ab3 27 #define DIRECTION PTB10
wbeaumont 0:8d755a0f3ab3 28 #define ADC1_CSN PTB11
wbeaumont 0:8d755a0f3ab3 29 #define ADC2_CSN PTE2
wbeaumont 0:8d755a0f3ab3 30
wbeaumont 0:8d755a0f3ab3 31 // SPI 2
wbeaumont 0:8d755a0f3ab3 32 #define MOSI_2 PTE23
wbeaumont 0:8d755a0f3ab3 33 #define MISO_2 PTA16
wbeaumont 0:8d755a0f3ab3 34 #define SCLK_2 PTE30
wbeaumont 0:8d755a0f3ab3 35 #define TEMP_2_CSN PTE29
wbeaumont 0:8d755a0f3ab3 36 #define TEMP_2_CABLE_CSN1 PTC4
wbeaumont 0:8d755a0f3ab3 37 #define TEMP_2_CABLE_CSN2 PTC3
wbeaumont 0:8d755a0f3ab3 38 #define DAC_2_DCEN PTE22
wbeaumont 0:8d755a0f3ab3 39 #define DAC_2_RSTN PTC5
wbeaumont 0:8d755a0f3ab3 40 // SPI 2 bi
wbeaumont 0:8d755a0f3ab3 41 #define ADC_2_STIO PTC7
wbeaumont 0:8d755a0f3ab3 42 #define STIO2_MO PTC0
wbeaumont 0:8d755a0f3ab3 43 #define DIRECTION2 PTC6
wbeaumont 0:8d755a0f3ab3 44 #define ADC1_2_CSN PTA17
wbeaumont 0:8d755a0f3ab3 45 #define ADC2_2_CSN PTD4
wbeaumont 0:8d755a0f3ab3 46
wbeaumont 0:8d755a0f3ab3 47 // FLASH
wbeaumont 0:8d755a0f3ab3 48 #define F_SCLK PTD1
wbeaumont 0:8d755a0f3ab3 49 #define F_MISO PTD3
wbeaumont 0:8d755a0f3ab3 50 #define F_MOSI PTD2
wbeaumont 0:8d755a0f3ab3 51 #define F_CS PTD0
wbeaumont 0:8d755a0f3ab3 52 #define N_FWP PTC17
wbeaumont 0:8d755a0f3ab3 53 #define N_HOLD PTC16
wbeaumont 0:8d755a0f3ab3 54
wbeaumont 0:8d755a0f3ab3 55 // ID
wbeaumont 0:8d755a0f3ab3 56 #define AD0 PTC12
wbeaumont 0:8d755a0f3ab3 57 #define AD1 PTD5
wbeaumont 0:8d755a0f3ab3 58 #define AD2 PTA13
wbeaumont 0:8d755a0f3ab3 59 #define AD3 PTC9
wbeaumont 0:8d755a0f3ab3 60 #define AD4 PTE31
wbeaumont 0:8d755a0f3ab3 61 //CAL
wbeaumont 0:8d755a0f3ab3 62 #define CAL_TRIG_2AND4 PTC11
wbeaumont 0:8d755a0f3ab3 63 #define CAL_TRIG_1AND3 PTC10
wbeaumont 0:8d755a0f3ab3 64 #define GEN_EXT_CAL PTE4
wbeaumont 0:8d755a0f3ab3 65 #define SEL_CAL_INT PTA5
wbeaumont 0:8d755a0f3ab3 66 #define SEL_2_CAL_INT PTA12
wbeaumont 0:8d755a0f3ab3 67 #define SEL_CAL_EXT PTA4
wbeaumont 0:8d755a0f3ab3 68
wbeaumont 0:8d755a0f3ab3 69
wbeaumont 0:8d755a0f3ab3 70 // analogue
wbeaumont 0:8d755a0f3ab3 71 #define ADC1 PTB0
wbeaumont 0:8d755a0f3ab3 72 #define ADC2 PTB1
wbeaumont 0:8d755a0f3ab3 73
wbeaumont 0:8d755a0f3ab3 74
wbeaumont 0:8d755a0f3ab3 75 // direction levels
wbeaumont 8:fe1477cd1c14 76 #define LDIR_OUT 1
wbeaumont 8:fe1477cd1c14 77 #define LDIR_IN 0
wbeaumont 0:8d755a0f3ab3 78
wbeaumont 9:20f21cb7792e 79 #define RDIR_OUT 1
wbeaumont 9:20f21cb7792e 80 #define RDIR_IN 0
wbeaumont 0:8d755a0f3ab3 81
wbeaumont 11:0416cf017b7a 82 #define CAL_ACTIVE 0
wbeaumont 11:0416cf017b7a 83 #define CAL_DEACTIVE 1
wbeaumont 11:0416cf017b7a 84
wbeaumont 11:0416cf017b7a 85
wbeaumont 0:8d755a0f3ab3 86 #define LEDRED PTB18
wbeaumont 0:8d755a0f3ab3 87 #define LEDGREEN PTB19
wbeaumont 0:8d755a0f3ab3 88 #define LEDBLUE PTD1
wbeaumont 0:8d755a0f3ab3 89
wbeaumont 0:8d755a0f3ab3 90 #endif