aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_STM32F746G_DISCOVERY
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-09-01 09:22:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2015-09-01 09:22:53 +0000
commit7f8853b700e2a76a9965f6a5736b43314b71bc19 (patch)
tree771ad9520183f355e6855a94b03d7d91837ab3fc /os/hal/boards/ST_STM32F746G_DISCOVERY
parentebde485b9efa736792b0c436e7a8a31c47eeb4b6 (diff)
downloadChibiOS-7f8853b700e2a76a9965f6a5736b43314b71bc19.tar.gz
ChibiOS-7f8853b700e2a76a9965f6a5736b43314b71bc19.tar.bz2
ChibiOS-7f8853b700e2a76a9965f6a5736b43314b71bc19.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8265 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ST_STM32F746G_DISCOVERY')
-rw-r--r--os/hal/boards/ST_STM32F746G_DISCOVERY/board.h16
-rw-r--r--os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg6
2 files changed, 11 insertions, 11 deletions
diff --git a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.h b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.h
index fc65ae07a..2c12c03fb 100644
--- a/os/hal/boards/ST_STM32F746G_DISCOVERY/board.h
+++ b/os/hal/boards/ST_STM32F746G_DISCOVERY/board.h
@@ -225,7 +225,7 @@
#define GPIOJ_LCD_G2 9U
#define GPIOJ_LCD_G3 10U
#define GPIOJ_LCD_G4 11U
-#define GPIOJ_LCD_B0 12U
+#define GPIOJ_OTG_FS_VBUS 12U
#define GPIOJ_LCD_B1 13U
#define GPIOJ_LCD_B2 14U
#define GPIOJ_LCD_B3 15U
@@ -1337,7 +1337,7 @@
* PJ9 - LCD_G2 (alternate 14).
* PJ10 - LCD_G3 (alternate 14).
* PJ11 - LCD_G4 (alternate 14).
- * PJ12 - LCD_B0 (alternate 14).
+ * PJ12 - OTG_FS_VBUS (input floating).
* PJ13 - LCD_B1 (alternate 14).
* PJ14 - LCD_B2 (alternate 14).
* PJ15 - LCD_B3 (alternate 14).
@@ -1354,7 +1354,7 @@
PIN_MODE_ALTERNATE(GPIOJ_LCD_G2) | \
PIN_MODE_ALTERNATE(GPIOJ_LCD_G3) | \
PIN_MODE_ALTERNATE(GPIOJ_LCD_G4) | \
- PIN_MODE_ALTERNATE(GPIOJ_LCD_B0) | \
+ PIN_MODE_INPUT(GPIOJ_OTG_FS_VBUS) | \
PIN_MODE_ALTERNATE(GPIOJ_LCD_B1) | \
PIN_MODE_ALTERNATE(GPIOJ_LCD_B2) | \
PIN_MODE_ALTERNATE(GPIOJ_LCD_B3))
@@ -1370,7 +1370,7 @@
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_G2) | \
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_G3) | \
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_G4) | \
- PIN_OTYPE_PUSHPULL(GPIOJ_LCD_B0) | \
+ PIN_OTYPE_PUSHPULL(GPIOJ_OTG_FS_VBUS) |\
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_B1) | \
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_B2) | \
PIN_OTYPE_PUSHPULL(GPIOJ_LCD_B3))
@@ -1386,7 +1386,7 @@
PIN_OSPEED_VERYLOW(GPIOJ_LCD_G2) | \
PIN_OSPEED_VERYLOW(GPIOJ_LCD_G3) | \
PIN_OSPEED_VERYLOW(GPIOJ_LCD_G4) | \
- PIN_OSPEED_VERYLOW(GPIOJ_LCD_B0) | \
+ PIN_OSPEED_VERYLOW(GPIOJ_OTG_FS_VBUS) |\
PIN_OSPEED_VERYLOW(GPIOJ_LCD_B1) | \
PIN_OSPEED_VERYLOW(GPIOJ_LCD_B2) | \
PIN_OSPEED_VERYLOW(GPIOJ_LCD_B3))
@@ -1402,7 +1402,7 @@
PIN_PUPDR_FLOATING(GPIOJ_LCD_G2) | \
PIN_PUPDR_FLOATING(GPIOJ_LCD_G3) | \
PIN_PUPDR_FLOATING(GPIOJ_LCD_G4) | \
- PIN_PUPDR_FLOATING(GPIOJ_LCD_B0) | \
+ PIN_PUPDR_FLOATING(GPIOJ_OTG_FS_VBUS) |\
PIN_PUPDR_FLOATING(GPIOJ_LCD_B1) | \
PIN_PUPDR_FLOATING(GPIOJ_LCD_B2) | \
PIN_PUPDR_FLOATING(GPIOJ_LCD_B3))
@@ -1418,7 +1418,7 @@
PIN_ODR_HIGH(GPIOJ_LCD_G2) | \
PIN_ODR_HIGH(GPIOJ_LCD_G3) | \
PIN_ODR_HIGH(GPIOJ_LCD_G4) | \
- PIN_ODR_HIGH(GPIOJ_LCD_B0) | \
+ PIN_ODR_HIGH(GPIOJ_OTG_FS_VBUS) | \
PIN_ODR_HIGH(GPIOJ_LCD_B1) | \
PIN_ODR_HIGH(GPIOJ_LCD_B2) | \
PIN_ODR_HIGH(GPIOJ_LCD_B3))
@@ -1434,7 +1434,7 @@
PIN_AFIO_AF(GPIOJ_LCD_G2, 14) | \
PIN_AFIO_AF(GPIOJ_LCD_G3, 14) | \
PIN_AFIO_AF(GPIOJ_LCD_G4, 14) | \
- PIN_AFIO_AF(GPIOJ_LCD_B0, 14) | \
+ PIN_AFIO_AF(GPIOJ_OTG_FS_VBUS, 0) | \
PIN_AFIO_AF(GPIOJ_LCD_B1, 14) | \
PIN_AFIO_AF(GPIOJ_LCD_B2, 14) | \
PIN_AFIO_AF(GPIOJ_LCD_B3, 14))
diff --git a/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg b/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg
index b786f53dc..47e8fba50 100644
--- a/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg
+++ b/os/hal/boards/ST_STM32F746G_DISCOVERY/cfg/board.chcfg
@@ -1292,13 +1292,13 @@
Mode="Alternate"
Alternate="14" />
<pin12
- ID="LCD_B0"
+ ID="OTG_FS_VBUS"
Type="PushPull"
Speed="Minimum"
Resistor="Floating"
Level="High"
- Mode="Alternate"
- Alternate="14" />
+ Mode="Input"
+ Alternate="0" />
<pin13
ID="LCD_B1"
Type="PushPull"