1st working sample
Dependencies: BSP_DISCO_F469NI BD_SD_DISCO_F469NI
Diff: main.cpp
- Revision:
- 0:9a320d54d2dc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 06 11:17:55 2020 +0000 @@ -0,0 +1,40 @@ +/* + * Mbed Application program + * SD Card & USB on Mbed-os5 + * + * Copyright (c) 2019,'20 Kenji Arai / JH1PJL + * http://www.page.sannet.ne.jp/kenjia/index.html + * https://os.mbed.com/users/kenjiArai/ + * Created: December 31st, 2019 + * Revised: January 6th, 2020 + */ + +// Include -------------------------------------------------------------------- +#include "mbed.h" +#include "USBMSD.h" +#include "SDBlockDeviceDISCOF469NI.h" + +// Definition ----------------------------------------------------------------- + +// Constructor ---------------------------------------------------------------- +SDBlockDeviceDISCOF469NI sd; +USBMSD usb(&sd); + +// RAM ------------------------------------------------------------------------ + +// ROM / Constant data -------------------------------------------------------- + +// Function prototypes -------------------------------------------------------- + +//------------------------------------------------------------------------------ +// Control Program +//------------------------------------------------------------------------------ +// Same as follow +// https://os.mbed.com/docs/mbed-os/v5.15/apis/usbmsd.html +int main() { + + while(true) { + usb.process(); + } + return 0; +}