Skip to content

Commit ca8a86c

Browse files
authored
Merge pull request #82 from ra-kete/master
Fix default mode of debug GPIO pins
2 parents 2ac7f26 + b42eaee commit ca8a86c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Wrong default modes for debug GPIO pins
13+
1014
## [v0.4.2] - 2020-03-21
1115

1216
### Fixed

src/gpio.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ gpio!([
892892
AF13: (into_af13, 13, ["stm32f334",],),
893893
AF14: (into_af14, 14, ["stm32f302", "stm32f303xb", "stm32f303xc",],),
894894
]),
895-
PA13: (pa13, 13, Input<Floating>, AFRH, [
895+
PA13: (pa13, 13, AF0, AFRH, [
896896
AF0: (into_af0, 0,),
897897
AF1: (into_af1, 1,),
898898
AF3: (into_af3, 3,),
@@ -904,7 +904,7 @@ gpio!([
904904
AF6: (into_af6, 6, ["stm32f373", "stm32f378", "stm32f398",],),
905905
AF10: (into_af10, 10, ["stm32f302", "stm32f303xb", "stm32f303xc", "stm32f303xd", "stm32f303xe", "stm32f373", "stm32f378", "stm32f358", "stm32f398",],),
906906
]),
907-
PA14: (pa14, 14, Input<Floating>, AFRH, [
907+
PA14: (pa14, 14, AF0, AFRH, [
908908
AF0: (into_af0, 0,),
909909
AF3: (into_af3, 3,),
910910
AF4: (into_af4, 4,),
@@ -915,7 +915,7 @@ gpio!([
915915
AF7: (into_af7, 7, ["stm32f301", "stm32f318", "stm32f302", "stm32f303", "stm32f334", "stm32f328", "stm32f358", "stm32f398",],),
916916
AF10: (into_af10, 10, ["stm32f373", "stm32f378",],),
917917
]),
918-
PA15: (pa15, 15, Input<Floating>, AFRH, [
918+
PA15: (pa15, 15, AF0, AFRH, [
919919
AF0: (into_af0, 0,),
920920
AF1: (into_af1, 1,),
921921
AF4: (into_af4, 4,),
@@ -977,7 +977,7 @@ gpio!([
977977
AF13: (into_af13, 13, ["stm32f334",],),
978978
AF15: (into_af15, 15, ["stm32f301", "stm32f302", "stm32f303", "stm32f334",],),
979979
]),
980-
PB3: (pb3, 3, Input<Floating>, AFRL, [
980+
PB3: (pb3, 3, AF0, AFRL, [
981981
AF0: (into_af0, 0,),
982982
AF1: (into_af1, 1,),
983983
AF3: (into_af3, 3,),
@@ -993,7 +993,7 @@ gpio!([
993993
AF12: (into_af12, 12, ["stm32f334",],),
994994
AF13: (into_af13, 13, ["stm32f334",],),
995995
]),
996-
PB4: (pb4, 4, Input<Floating>, AFRL, [
996+
PB4: (pb4, 4, AF0, AFRL, [
997997
AF0: (into_af0, 0,),
998998
AF1: (into_af1, 1,),
999999
AF3: (into_af3, 3,),

0 commit comments

Comments
 (0)