Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: select_example.cpp
- Revision:
- 1:7a568319eeb7
- Parent:
- 0:c6dea1f647f6
diff -r c6dea1f647f6 -r 7a568319eeb7 select_example.cpp --- a/select_example.cpp Mon Jan 06 10:56:13 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/* - * STM32F4xx USB Device example programs - * - * Copyright (c) 2020 Kenji Arai / JH1PJL - * http://www.page.sannet.ne.jp/kenjia/index.html - * https://os.mbed.com/users/kenjiArai/ - * Created: January 4th, 2020 - * Revised: January 6th, 2020 - */ - - -/* - You can select several examples as followings. - 0. 0_USB_Serial - Send & Receive data strings via USB port to Host PC - 1. 1_USB_Storage_RW_microSD - Access microSD drive via USB port from Host PC - 2. 2_USB_Mouse - Mouse control for Host PC - 3. 3_USB_Keyboard - Keyboard control for Host PC - */ -#define EXAMPLE_NUMBER 2 // select 0 or 3 - -//----------------- You don't need any modification ---------------------------- -#if EXAMPLE_NUMBER == 0 - #define EXAMPLE_0_SERIAL - #ifdef EXAMPLE_0_SERIAL - #include "0_USB_Serial/main.cpp" - #warning "Select 0_USB_Serial" - #endif -#elif EXAMPLE_NUMBER == 1 - #define EXAMPLE_1_MSD - #ifdef EXAMPLE_1_MSD - #include "1_USB_Storage_RW_microSD/main.cpp" - #warning "Select 1_USB_Storage_RW_microSD" - #endif -#elif EXAMPLE_NUMBER == 2 - #define EXAMPLE_2_MOUSE - #ifdef EXAMPLE_2_MOUSE - #include "2_USB_Mouse/main.cpp" - #warning "Select 2_USB_Mouse" - #endif -#elif EXAMPLE_NUMBER == 3 - #define EXAMPLE_3_KEYBOARD - #ifdef EXAMPLE_3_KEYBOARD - #include "3_USB_Keyboard/main.cpp" - #warning "Select 3_USB_Keyboard" - #endif -#else - #error " Please set 0 to 3 number for EXAMPLE_NUMBER!!" -#endif