1st working sample

Dependencies:   BSP_DISCO_F469NI BD_SD_DISCO_F469NI

main.cpp

Committer:
kenjiArai
Date:
2020-01-06
Revision:
0:9a320d54d2dc

File content as of revision 0:9a320d54d2dc:

/*
 * 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;
}