USB Device ROM Stack API example program
LPC1549のROM APIを使ったRAMディスクです。PCからはUSBメモリとして見えます。
参考:
http://docs.lpcware.com/usbromlib/v1.0/
rl_usb.h
- Committer:
- va009039
- Date:
- 2014-03-14
- Revision:
- 0:ef2c0c52abc4
File content as of revision 0:ef2c0c52abc4:
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __RL_USB_H__ #define __RL_USB_H__ #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include "usb.h" /***************** Functions *************************************************/ /* USB Device functions exported from USB Device Core module */ extern void usbd_init (void); extern void usbd_connect (uint8_t con); /* USB Device user functions imported to USB Mass Storage Class module */ extern void usbd_msc_init (void); extern void usbd_msc_read_sect (uint32_t block, uint8_t *buf, uint32_t num_of_blocks); extern void usbd_msc_write_sect (uint32_t block, uint8_t *buf, uint32_t num_of_blocks); #ifdef __cplusplus } #endif #endif /* __RL_USB_H__ */