along with simavr. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef AVR_USB_H_
-#define AVR_USB_H_
+#ifndef __AVR_USB_H__
+#define __AVR_USB_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "sim_avr.h"
struct avr_io_usb {
uint8_t pipe; //[in]
- size_t sz; //[in/out]
+ uint32_t sz; //[in/out]
uint8_t * buf; //[in/out]
};
#define AVR_IOCTL_USB_NAK -2
void avr_usb_init(avr_t * avr, avr_usb_t * port);
-#endif /* AVR_USB_H_ */
+#ifdef __cplusplus
+};
+#endif
+
+#endif /*__AVR_USB_H__*/