Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (17 sloc) 0.68 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//************************************************************************
// *** cdcacm.h
//************************************************************************

#include "wiring.h"

#define USB_SERIAL_MIN_BUFFER_FREE 128

extern boolean gCdcacm_active;

typedef void (*cdcacm_reset_cbfn)(void);
typedef boolean (*cdcacm_storedata_cbfn)(const byte *buffer, int length);

#ifdef __cplusplus
extern "C"{
#endif

void cdcacm_print(const unsigned char *line, int length);
void cdcacm_command_ack(void);
void cdcacm_register(cdcacm_reset_cbfn reset, cdcacm_storedata_cbfn storeData); // revisit -- register receive upcall!

#ifdef __cplusplus
} // extern "C"
#endif
Something went wrong with that request. Please try again.