Working ADC3 driver for 9XE additional analog inputs (driver source based on Michael Blandford's code)

This commit is contained in:
Damjan Adamic
2014-12-19 20:16:23 +01:00
parent cf87849c5b
commit 6304679582
12 changed files with 164 additions and 44 deletions
+9 -3
View File
@@ -218,7 +218,12 @@
#else
#define PIN_FLP_J2 GPIO_Pin_0 // PB.00
#endif
#if defined(REVPLUS)
#if defined(REV9E)
#define PIN_FLP_J3 GPIO_Pin_10 // PF.10
#define PIN_FLP_J4 GPIO_Pin_9 // PF.09
#define PIN_FLP_J5 GPIO_Pin_8 // PF.08
#define PIN_FLP_J6 GPIO_Pin_1 // PB.01
#elif defined(REVPLUS)
#define PIN_FLP_J3 GPIO_Pin_1 // PB.01
#endif
#define PIN_MVOLT GPIO_Pin_0 // PC.00
@@ -258,13 +263,14 @@
#define PIN_PORTA 0x0000
#define PIN_PORTB 0x0100
#define PIN_PORTC 0x0200
#define PIN_PORTD 0x0300
#define PIN_PORTD 0x0300
#define PIN_PORTE 0x0400
#define PIN_PORTF 0x0500
#define PIN_PER_1 0x0010
#define PIN_PER_2 0x0020
#define PIN_PER_3 0x0030
#define PIN_PER_5 0x0050
#define PIN_PER_6 0x0060
#define PIN_PER_6 0x0060
#define PIN_PER_8 0x0080
// #define PIN_OS2 0x0000
#define PIN_OS25 0x2000