-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpinConfiguration.h
53 lines (45 loc) · 1.19 KB
/
pinConfiguration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "lnArduino.h"
/**
Pin usage
*
* PC13/14/15 OUTPUT LCD control
* PB0--PB7 OUTPUT LCD Databus
* PA0 x ADCIN
* PA1..PA3 x Gain 2nd stage SENSEL0..SENSEL2
* PA4 x Gain 1st stage SENSEL3
* PA5 x CPLSEL (DC/AC/GND)
* PA6 OUTPUT LCD nRD
* PA7 OUTPUT Test signal
* PA8 INPUT Trig
* PB0--B1 INPUT Rotary encoder
* PB3--B7 INPUT Buttons
*
* PB8 x TL_PWM
* PB9 OUTPUT LCD RESET
* PB12 OUTPUT AMPSEL
*
* PB14/PB15 better rotary encoder
* PA1..A4 x SENSEL
* PA9/PA10 INPUT Uart
* PA5 INPUT CPLSEL
*
* For VF103 we also have PB8 for LCD
* and PB3/PA15 are used for jtag
*
* Timer3 is used as clock for ADC
* Timer2/PA7 is used for square test signal
* Timer 1 is delay timer
*/
// Use Pb14 & PB15 for rotary encoder
#define ALT_ROTARY_LEFT PB14
#define ALT_ROTARY_RIGHT PB15
#define ROTARY_GPIO 1 // port B
#define ROTATY_SHIFT 14
#define COUPLING_PIN PA5
#define SENSEL_PIN PA1 //(1..4)
#define PIN_TEST_SIGNAL PA7
#define PIN_TEST_SIGNAL_AMP PB12 // no amp on FINRSI
#define KEY_PIN PB12 // used by FINRSI
#define TIMER_ADC_ID 3
#define TIMER_ADC_CHANNEL 3