Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768

Dependencies:   FATFileSystem

Dependents:   F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld

Fork of KL46Z-USBHost by Norimasa Okamoto

簡易USBホストライブラリです。
official-USBHostの下位互換で対応プログラムを僅かな修正で動かすことが出来ます。

Platforms

  • Nucleo F446RE
  • Nucleo F411RE
  • Nucleo F401RE
  • FRDM-K64F
  • FRDM-KL46Z
  • FRDM-KL25Z
  • LPC4088
  • LPC1768

Nucleo F446RE/F411RE/F401REのUSB接続方法

ST morphoUSB
U5V (CN10-8)VBUS (1 RED)
PA11 (CN10-14)DM  (2 WHITE)
PA12 (CN10-12)DP  (3 GREEN)
GND (CN10-20)GND (4 BLACK)

Examples

Import programF446RE-USBHostMouse_HelloWorld

USBHostMouse Hello World for ST-Nucleo-F446RE

Import programF401RE-USBHostMSD_HelloWorld

Simple USBHost MSD(USB flash drive) for Nucleo F401RE/FRDM-KL46Z test program

Import programF401RE-USBHostC270_example

Simple USBHost WebCam test program

Import programK64F_USBHostC270_example

Simple USBHost C270 example

Import programF401RE-BTstack_example

BTstack for Nucleo F401RE/FRDM-KL46Z example program

Import programUSBHostRSSI_example

Bluetooth device discovery example program.

Import programKL46Z-USBHostGPS_HelloWorld

Simple USBHost GPS Dongle Receiver for FRDM-KL46Z test program

Files at this revision

API Documentation at this revision

Comitter:
va009039
Date:
Sun May 01 03:18:11 2016 +0000
Parent:
22:b0d0930bf9d0
Commit message:
add ST-Nucleo-F446RE

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
USBHost/USBHALHost.h Show annotated file Show diff for this revision Revisions of this file
USBHost/USBHALHost2_F401RE.cpp Show annotated file Show diff for this revision Revisions of this file
USBHost/USBHALHost_F401RE.cpp Show annotated file Show diff for this revision Revisions of this file
USBHostC270/CamInfo.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b0d0930bf9d0 -r 4ab8bc835303 FATFileSystem.lib
--- a/FATFileSystem.lib	Wed Nov 25 07:45:17 2015 +0900
+++ b/FATFileSystem.lib	Sun May 01 03:18:11 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/FATFileSystem/#b3b3370574cf
+http://mbed.org/users/mbed_official/code/FATFileSystem/#b3b3370574cf
diff -r b0d0930bf9d0 -r 4ab8bc835303 USBHost/USBHALHost.h
--- a/USBHost/USBHALHost.h	Wed Nov 25 07:45:17 2015 +0900
+++ b/USBHost/USBHALHost.h	Sun May 01 03:18:11 2016 +0000
@@ -15,7 +15,7 @@
     }
 };
 
-#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)
+#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)||defined(TARGET_NUCLEO_F446RE)
 #include "USBHALHost_F401RE.h"
 #elif defined(TARGET_KL46Z)||defined(TARGET_KL25Z)||defined(TARGET_K64F)
 #include "USBHALHost_KL46Z.h"
diff -r b0d0930bf9d0 -r 4ab8bc835303 USBHost/USBHALHost2_F401RE.cpp
--- a/USBHost/USBHALHost2_F401RE.cpp	Wed Nov 25 07:45:17 2015 +0900
+++ b/USBHost/USBHALHost2_F401RE.cpp	Sun May 01 03:18:11 2016 +0000
@@ -1,4 +1,4 @@
-#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)
+#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)||defined(TARGET_NUCLEO_F446RE)
 #include "USBHALHost.h"
 
 // usbh_conf.c
diff -r b0d0930bf9d0 -r 4ab8bc835303 USBHost/USBHALHost_F401RE.cpp
--- a/USBHost/USBHALHost_F401RE.cpp	Wed Nov 25 07:45:17 2015 +0900
+++ b/USBHost/USBHALHost_F401RE.cpp	Sun May 01 03:18:11 2016 +0000
@@ -1,4 +1,4 @@
-#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)
+#if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)||defined(TARGET_NUCLEO_F446RE)
 #include "USBHALHost.h"
 #include <algorithm>
 
diff -r b0d0930bf9d0 -r 4ab8bc835303 USBHostC270/CamInfo.cpp
--- a/USBHostC270/CamInfo.cpp	Wed Nov 25 07:45:17 2015 +0900
+++ b/USBHostC270/CamInfo.cpp	Sun May 01 03:18:11 2016 +0000
@@ -38,7 +38,7 @@
 
 #define C210_PID 0x819
 #define C210_INFO(SIZE) {C270_VID, C210_PID, _##SIZE, 0, \
-    "C270", \
+    "C210", \
     C270_MJPEG, \
     C270_##SIZE, \
     _5FPS, \