スマートコンセント(富士通 FX-5204PS)をIEEE1888 StorageにWRITEするサンプルプログラムです。
Dependencies: EthernetInterface FiapV2 HTTPClientForSOAP NTPClient TextLCD mbed-rtos mbed spxml
Fork of BlueUSB_f by
スマートコンセント(富士通 FX-5204PS)をIEEE1888 StorageにWRITEするサンプルプログラムです。
USB HUBを使用して2台利用した例です。
表示のみは http://mbed.org/users/yueee_yt/code/BlueUSB_f/で公開しています。
BlueUSBより派生していますが、BluetoothとMass Storage Classは利用できません。
2台まで確認していますが、プログラム的には10台まで接続できるようにしています。
(RTOSとの整合により難しいかもしれません)
Diff: USBHost.cpp
- Revision:
- 4:357ea5242a16
- Parent:
- 3:528f73ce625e
- Child:
- 5:96a70a8cebb9
--- a/USBHost.cpp Fri Sep 28 07:10:54 2012 +0000 +++ b/USBHost.cpp Sun Sep 30 05:44:10 2012 +0000 @@ -38,7 +38,8 @@ // USB host structures #define USB_RAM_SIZE 16*1024 // AHB SRAM block 1 TODO MACHINE DEPENDENT -#define USB_RAM_BASE 0x2007C000 +#define USB_RAM_BASE 0x20080000 +//#define USB_RAM_BASE 0x2007C000 #define TOKEN_SETUP 0 #define TOKEN_IN 1 @@ -892,8 +893,8 @@ //==================================================================================== // Host controller instance and Interrupt handler -static HostController _controller __attribute__((at(USB_RAM_BASE))); -//static HostController _controller __attribute__((section(".ARM.__AT_0x2007C000"))); +//static HostController _controller __attribute__((at(USB_RAM_BASE))); +static HostController _controller __attribute__((section(".ARM.__AT_0x20080000"))); extern "C" void USB_IRQHandler(void) __irq; void USB_IRQHandler (void) __irq