Skip to content

Commit 82fd75b

Browse files
authored
Merge pull request #51 from mathk/gpio
Adding more GPIO
2 parents 787766d + e76a313 commit 82fd75b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/gpio.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,25 @@ gpio!(GPIOB, gpiob, gpiob, gpioben, gpiobrst, PBx, [
649649
PB15: (pb15, 15, Input<Floating>, AFRH),
650650
]);
651651

652+
gpio!(GPIOC, gpioc, gpioc, gpiocen, gpiocrst, PCx, [
653+
PC0: (pc0, 0, Input<Floating>, AFRL),
654+
PC1: (pc1, 1, Input<Floating>, AFRL),
655+
PC2: (pc2, 2, Input<Floating>, AFRL),
656+
PC3: (pc3, 3, Input<Floating>, AFRL),
657+
PC4: (pc4, 4, Input<Floating>, AFRL),
658+
PC5: (pc5, 5, Input<Floating>, AFRL),
659+
PC6: (pc6, 6, Input<Floating>, AFRL),
660+
PC7: (pc7, 7, Input<Floating>, AFRL),
661+
PC8: (pc8, 8, Input<Floating>, AFRH),
662+
PC9: (pc9, 9, Input<Floating>, AFRH),
663+
PC10: (pc10, 10, Input<Floating>, AFRH),
664+
PC11: (pc11, 11, Input<Floating>, AFRH),
665+
PC12: (pc12, 12, Input<Floating>, AFRH),
666+
PC13: (pc13, 13, Input<Floating>, AFRH),
667+
PC14: (pc14, 14, Input<Floating>, AFRH),
668+
PC15: (pc15, 15, Input<Floating>, AFRH),
669+
]);
670+
652671
gpio!(GPIOD, gpiod, gpioc, gpioden, gpiodrst, PDx, [
653672
PD0: (pd0, 0, Input<Floating>, AFRL),
654673
PD1: (pd1, 1, Input<Floating>, AFRL),

0 commit comments

Comments
 (0)