1st working sample
Dependencies: BSP_DISCO_F469NI BD_SD_DISCO_F469NI
Revision 0:9a320d54d2dc, committed 2020-01-06
- Comitter:
- kenjiArai
- Date:
- Mon Jan 06 11:17:55 2020 +0000
- Commit message:
- 1st working sample
Changed in this revision
diff -r 000000000000 -r 9a320d54d2dc BD_SD_DISCO_F469NI.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BD_SD_DISCO_F469NI.lib Mon Jan 06 11:17:55 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/kenjiArai/code/BD_SD_DISCO_F469NI/#0caded8d2a98
diff -r 000000000000 -r 9a320d54d2dc BSP_DISCO_F469NI.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BSP_DISCO_F469NI.lib Mon Jan 06 11:17:55 2020 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/ST/code/BSP_DISCO_F469NI/#3cdfcc4f7c9d
diff -r 000000000000 -r 9a320d54d2dc check_revision.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/check_revision.cpp Mon Jan 06 11:17:55 2020 +0000 @@ -0,0 +1,21 @@ +/* + * Check Mbed revision + * + * Copyright (c) 2019 Kenji Arai / JH1PJL + * http://www.page.sannet.ne.jp/kenjia/index.html + * https://os.mbed.com/users/kenjiArai/ + * Created: July 17th, 2019 + * Revised: December 24th, 2019 + */ + +#include "mbed.h" + +// RUN ONLY ON mbed-os5.15.0 +// https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.0 +#if (MBED_MAJOR_VERSION == 5) &&\ + (MBED_MINOR_VERSION == 15) &&\ + (MBED_PATCH_VERSION == 0) +#else + //#warning "Please use Mbed-os5.15.0" + #error "Please use Mbed-os5.15.0" +#endif \ No newline at end of file
diff -r 000000000000 -r 9a320d54d2dc main.cpp --- /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; +}
diff -r 000000000000 -r 9a320d54d2dc mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Jan 06 11:17:55 2020 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#64853b354fa188bfe8dbd51e78771213c7ed37f7