aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-12-01 19:30:36 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-12-01 19:30:36 +0000
commit179aa7224e72affbf92c2fc4b1f08fee13c92427 (patch)
tree163b44bb75b7cb1118940a77013af5aba5a76f47 /os/hal/boards
parent37a5f0bc07554548ca516f6d46af9a69b24bed16 (diff)
downloadChibiOS-179aa7224e72affbf92c2fc4b1f08fee13c92427.tar.gz
ChibiOS-179aa7224e72affbf92c2fc4b1f08fee13c92427.tar.bz2
ChibiOS-179aa7224e72affbf92c2fc4b1f08fee13c92427.zip
USB tested on L4+.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12447 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/ST_NUCLEO144_L496ZG/board.h6
-rw-r--r--os/hal/boards/ST_NUCLEO144_L496ZG/cfg/board.chcfg4
-rw-r--r--os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h6
-rw-r--r--os/hal/boards/ST_NUCLEO144_L4R5ZI/cfg/board.chcfg6
4 files changed, 11 insertions, 11 deletions
diff --git a/os/hal/boards/ST_NUCLEO144_L496ZG/board.h b/os/hal/boards/ST_NUCLEO144_L496ZG/board.h
index f9a381983..294d81b0a 100644
--- a/os/hal/boards/ST_NUCLEO144_L496ZG/board.h
+++ b/os/hal/boards/ST_NUCLEO144_L496ZG/board.h
@@ -298,7 +298,7 @@
* PA6 - PIN6 (analog).
* PA7 - PIN7 (analog).
* PA8 - USB_SOF (alternate 10).
- * PA9 - USB_VBUS (input pullup).
+ * PA9 - USB_VBUS (analog).
* PA10 - USB_ID (alternate 10).
* PA11 - USB_DM (alternate 10).
* PA12 - USB_DP (alternate 10).
@@ -315,7 +315,7 @@
PIN_MODE_ANALOG(GPIOA_PIN6) | \
PIN_MODE_ANALOG(GPIOA_PIN7) | \
PIN_MODE_ALTERNATE(GPIOA_USB_SOF) | \
- PIN_MODE_INPUT(GPIOA_USB_VBUS) | \
+ PIN_MODE_ANALOG(GPIOA_USB_VBUS) | \
PIN_MODE_ALTERNATE(GPIOA_USB_ID) | \
PIN_MODE_ALTERNATE(GPIOA_USB_DM) | \
PIN_MODE_ALTERNATE(GPIOA_USB_DP) | \
@@ -363,7 +363,7 @@
PIN_PUPDR_FLOATING(GPIOA_PIN6) | \
PIN_PUPDR_FLOATING(GPIOA_PIN7) | \
PIN_PUPDR_FLOATING(GPIOA_USB_SOF) | \
- PIN_PUPDR_PULLUP(GPIOA_USB_VBUS) | \
+ PIN_PUPDR_FLOATING(GPIOA_USB_VBUS) | \
PIN_PUPDR_FLOATING(GPIOA_USB_ID) | \
PIN_PUPDR_FLOATING(GPIOA_USB_DM) | \
PIN_PUPDR_FLOATING(GPIOA_USB_DP) | \
diff --git a/os/hal/boards/ST_NUCLEO144_L496ZG/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO144_L496ZG/cfg/board.chcfg
index fa064dee7..5eaf00890 100644
--- a/os/hal/boards/ST_NUCLEO144_L496ZG/cfg/board.chcfg
+++ b/os/hal/boards/ST_NUCLEO144_L496ZG/cfg/board.chcfg
@@ -45,8 +45,8 @@
PinLock="Disabled" Alternate="10" ID="USB_SOF" Resistor="Floating"
Mode="Alternate" Level="Low" />
<pin9 Type="PushPull" Speed="Minimum" AnalogSwitch="Disabled"
- PinLock="Disabled" Alternate="0" ID="USB_VBUS" Resistor="PullUp"
- Mode="Input" Level="Low" />
+ PinLock="Disabled" Alternate="0" ID="USB_VBUS" Resistor="Floating"
+ Mode="Analog" Level="Low" />
<pin10 Type="PushPull" Speed="Maximum" AnalogSwitch="Disabled"
PinLock="Disabled" Alternate="10" ID="USB_ID" Resistor="Floating"
Mode="Alternate" Level="Low" />
diff --git a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h
index 464399327..b4cca1eba 100644
--- a/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h
+++ b/os/hal/boards/ST_NUCLEO144_L4R5ZI/board.h
@@ -298,7 +298,7 @@
* PA6 - PIN6 (analog).
* PA7 - PIN7 (analog).
* PA8 - USB_SOF (alternate 10).
- * PA9 - USB_VBUS (input pullup).
+ * PA9 - USB_VBUS (analog).
* PA10 - USB_ID (alternate 10).
* PA11 - USB_DM (alternate 10).
* PA12 - USB_DP (alternate 10).
@@ -315,7 +315,7 @@
PIN_MODE_ANALOG(GPIOA_PIN6) | \
PIN_MODE_ANALOG(GPIOA_PIN7) | \
PIN_MODE_ALTERNATE(GPIOA_USB_SOF) | \
- PIN_MODE_INPUT(GPIOA_USB_VBUS) | \
+ PIN_MODE_ANALOG(GPIOA_USB_VBUS) | \
PIN_MODE_ALTERNATE(GPIOA_USB_ID) | \
PIN_MODE_ALTERNATE(GPIOA_USB_DM) | \
PIN_MODE_ALTERNATE(GPIOA_USB_DP) | \
@@ -363,7 +363,7 @@
PIN_PUPDR_FLOATING(GPIOA_PIN6) | \
PIN_PUPDR_FLOATING(GPIOA_PIN7) | \
PIN_PUPDR_FLOATING(GPIOA_USB_SOF) | \
- PIN_PUPDR_PULLUP(GPIOA_USB_VBUS) | \
+ PIN_PUPDR_FLOATING(GPIOA_USB_VBUS) | \
PIN_PUPDR_FLOATING(GPIOA_USB_ID) | \
PIN_PUPDR_FLOATING(GPIOA_USB_DM) | \
PIN_PUPDR_FLOATING(GPIOA_USB_DP) | \
diff --git a/os/hal/boards/ST_NUCLEO144_L4R5ZI/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO144_L4R5ZI/cfg/board.chcfg
index 2c506d1e5..ca5ad6a81 100644
--- a/os/hal/boards/ST_NUCLEO144_L4R5ZI/cfg/board.chcfg
+++ b/os/hal/boards/ST_NUCLEO144_L4R5ZI/cfg/board.chcfg
@@ -119,8 +119,8 @@
PinLock="Disabled"
Alternate="0"
ID="USB_VBUS"
- Resistor="PullUp"
- Mode="Input"
+ Resistor="Floating"
+ Mode="Analog"
Level="Low" />
<pin10
Type="PushPull"
@@ -141,7 +141,7 @@
ID="USB_DM"
Resistor="Floating"
Mode="Alternate"
- Level="Low" />
+ Level="Low" ></pin11>
<pin12
Type="PushPull"
Speed="Maximum"