global_data.c
1 #include "global_data.h" 2 3 #include <stdint.h> 4 5 #include "boards.h" 6 #include "nrf.h" 7 #include "nrf_block_dev.h" 8 #include "nrf_block_dev_sdc.h" 9 #include "nrf_drv_usbd.h" 10 11 #include "app_usbd.h" 12 #include "app_usbd_core.h" 13 #include "app_usbd_string_desc.h" 14 #include "app_usbd_msc.h" 15 #include "app_sdcard.h" 16 17 // This code is in a C file instead of C++, (in addition to in a single file) 18 // because "app_usbd_msc.h" uses a C-only enum forward declaration. 19 // Currently, I've just moved the actual enum up in the header, to 20 // make C++ files happy, but I'm leaving this here as I hope to revert 21 // to "off the shelf" for the SDK at some point in the future. 22 23 #include "global_sdc_block_device.i" 24 25 #include "global_usb_msc_class_definition.i" 26 27 const nrf_block_dev_sdc_t* get_sdc_block_device(void) 28 { 29 return &__sdcBlockDevice; 30 } 31 32 const app_usbd_msc_t* get_usb_msc_class_definition(void) 33 { 34 return &__usbMscClassDefinition; 35 }