Skip to content

Commit 89ace4f

Browse files
authored
Added LANA TNY board #164
The LANA TNY is a development board by Phyx based on the CH32V203G6U6. It is sold through the official Adafruit store: here It is comparable to the already added Adafruit QT Py CH32V203 (in pull request #136) but has some extra GPIO pins exposed and some slightly different pin arrangement. openwch/arduino_core_ch32#164
1 parent 76462d9 commit 89ace4f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* Alternate pin name */
2+
PA_0_ALT1 = PA_0 | ALT1,
3+
PA_1_ALT1 = PA_1 | ALT1,
4+
PA_2_ALT1 = PA_2 | ALT1,
5+
PA_3_ALT1 = PA_3 | ALT1,
6+
PA_4_ALT1 = PA_4 | ALT1,
7+
PA_5_ALT1 = PA_5 | ALT1,
8+
PA_6_ALT1 = PA_6 | ALT1,
9+
PA_7_ALT1 = PA_7 | ALT1,
10+
PA_8_ALT1 = PA_8 | ALT1,
11+
PA_9_ALT1 = PA_9 | ALT1,
12+
PA_10_ALT1 = PA_10 | ALT1,
13+
PA_11_ALT1 = PA_11 | ALT1,
14+
PA_15_ALT1 = PA_15 | ALT1,
15+
PB_0_ALT1 = PB_0 | ALT1,
16+
PB_0_ALT2 = PB_0 | ALT2,
17+
PB_1_ALT1 = PB_1 | ALT1,
18+
PB_1_ALT2 = PB_1 | ALT2,
19+
PB_3_ALT1 = PB_3 | ALT1,
20+
PB_10_ALT1 = PB_10 | ALT1,
21+
PB_11_ALT1 = PB_11 | ALT1,
22+
23+
/* SYS_WKUP */
24+
#ifdef PWR_WAKEUP_PIN1
25+
SYS_WKUP1 = PA_0,
26+
#endif
27+
#ifdef PWR_WAKEUP_PIN2
28+
SYS_WKUP2 = NC,
29+
#endif
30+
#ifdef PWR_WAKEUP_PIN3
31+
SYS_WKUP3 = NC,
32+
#endif
33+
#ifdef PWR_WAKEUP_PIN4
34+
SYS_WKUP4 = NC,
35+
#endif
36+
#ifdef PWR_WAKEUP_PIN5
37+
SYS_WKUP5 = NC,
38+
#endif
39+
#ifdef PWR_WAKEUP_PIN6
40+
SYS_WKUP6 = NC,
41+
#endif
42+
#ifdef PWR_WAKEUP_PIN7
43+
SYS_WKUP7 = NC,
44+
#endif
45+
#ifdef PWR_WAKEUP_PIN8
46+
SYS_WKUP8 = NC,
47+
#endif
48+
49+
/* USB */
50+
#ifdef USBCON
51+
USB_DM = PA_11,
52+
USB_DP = PA_12,
53+
#endif

0 commit comments

Comments
 (0)