SDG+USBHost(Mouse) Sample

Dependencies:   Sound_Generator USBHost_custom

Fork of SDG_Mouse_Sample by GR-PEACH_producer_meeting

Information

Japanese version is available in lower part of this page.
このページの後半に日本語版が用意されています.

What is this?

This program is a demonstration that sounds the sound by mouse operation by using USBHost(Mouse) and Sound Generator.

Settings

Close JP3 of GR-PEACH.
/media/uploads/RyoheiHagimoto/sdg-mouse.jpg

Operation

operationeffect
Right clickSounds
Left clickReset to base tone (C)
Moves the mouse to the rightLower the sound
Moves the mouse to the leftHigher the sound
Center cursorAdjust the sensitivity.
Reset the reference value in the click.

Others

The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication


概要

このプログラムは、USBHost(Mouse) + Sound Generatorで、マウス操作による擬似笛デモです。

設定

GR-PEACHのJP3をショートする必要があります。
/media/uploads/RyoheiHagimoto/sdg-mouse.jpg

操作方法

操作内容
右クリック音出力開始
左クリック基準音(ド)にリセット
マウス右移動高音になります
マウス左移動低音になります
センターカーソル音高低の変化量調整(クリックで基準値にリセット)

Others

mbedのシリアル通信(ボーレート等)のデフォルト設定は以下のリンクに示しています。
リンクを参考に、お使いのPCターミナルソフトの設定を変更して下さい。
mbedでのボーレートのデフォルト値は9600で、このサンプルではボーレート9600を使います。
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication

Committer:
mbed_official
Date:
Mon Jan 19 14:30:37 2015 +0000
Revision:
27:4206883f4cb7
Synchronized with git revision 0ab8d2e6b3d884137dcb5c62d29a07abe132bac7

Full URL: https://github.com/mbedmicro/mbed/commit/0ab8d2e6b3d884137dcb5c62d29a07abe132bac7/

RZ_A1H - Implement some USB functions and fix some bugs about USBHost common codes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 27:4206883f4cb7 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
mbed_official 27:4206883f4cb7 2 *
mbed_official 27:4206883f4cb7 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
mbed_official 27:4206883f4cb7 4 * and associated documentation files (the "Software"), to deal in the Software without
mbed_official 27:4206883f4cb7 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
mbed_official 27:4206883f4cb7 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
mbed_official 27:4206883f4cb7 7 * Software is furnished to do so, subject to the following conditions:
mbed_official 27:4206883f4cb7 8 *
mbed_official 27:4206883f4cb7 9 * The above copyright notice and this permission notice shall be included in all copies or
mbed_official 27:4206883f4cb7 10 * substantial portions of the Software.
mbed_official 27:4206883f4cb7 11 *
mbed_official 27:4206883f4cb7 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
mbed_official 27:4206883f4cb7 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
mbed_official 27:4206883f4cb7 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
mbed_official 27:4206883f4cb7 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
mbed_official 27:4206883f4cb7 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mbed_official 27:4206883f4cb7 17 */
mbed_official 27:4206883f4cb7 18
mbed_official 27:4206883f4cb7 19 #ifndef OHCI_WRAPP_RZ_A1_LOCAL_H
mbed_official 27:4206883f4cb7 20 #define OHCI_WRAPP_RZ_A1_LOCAL_H
mbed_official 27:4206883f4cb7 21
mbed_official 27:4206883f4cb7 22 #ifdef __cplusplus
mbed_official 27:4206883f4cb7 23 extern "C" {
mbed_official 27:4206883f4cb7 24 #endif
mbed_official 27:4206883f4cb7 25
mbed_official 27:4206883f4cb7 26 /* ConditionCode */
mbed_official 27:4206883f4cb7 27 #define TD_CC_NOERROR (0)
mbed_official 27:4206883f4cb7 28 #define TD_CC_CRC (1)
mbed_official 27:4206883f4cb7 29 #define TD_CC_BITSTUFFING (2)
mbed_official 27:4206883f4cb7 30 #define TD_CC_DATATOGGLEMISMATCH (3)
mbed_official 27:4206883f4cb7 31 #define TD_CC_STALL (4)
mbed_official 27:4206883f4cb7 32 #define TD_CC_DEVICENOTRESPONDING (5)
mbed_official 27:4206883f4cb7 33 #define TD_CC_PIDCHECKFAILURE (6)
mbed_official 27:4206883f4cb7 34 #define TD_CC_UNEXPECTEDPID (7)
mbed_official 27:4206883f4cb7 35 #define TD_CC_DATAOVERRUN (8)
mbed_official 27:4206883f4cb7 36 #define TD_CC_DATAUNDERRUN (9)
mbed_official 27:4206883f4cb7 37 #define TD_CC_BUFFEROVERRUN (12)
mbed_official 27:4206883f4cb7 38 #define TD_CC_BUFFERUNDERRUN (13)
mbed_official 27:4206883f4cb7 39 #define TD_CC_NOT_ACCESSED_1 (14)
mbed_official 27:4206883f4cb7 40 #define TD_CC_NOT_ACCESSED_2 (15)
mbed_official 27:4206883f4cb7 41
mbed_official 27:4206883f4cb7 42 extern void ohciwrapp_loc_Connect(uint32_t type);
mbed_official 27:4206883f4cb7 43 extern void ohciwrapp_loc_TransEnd(uint32_t pipe, uint32_t ConditionCode);
mbed_official 27:4206883f4cb7 44
mbed_official 27:4206883f4cb7 45 #ifdef __cplusplus
mbed_official 27:4206883f4cb7 46 }
mbed_official 27:4206883f4cb7 47 #endif
mbed_official 27:4206883f4cb7 48
mbed_official 27:4206883f4cb7 49 #endif /* OHCI_WRAPP_RZ_A1_LOCAL_H */