You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
405 B
C
19 lines
405 B
C
#include <atmel_start.h>
|
|
static uint8_t buffer[64];
|
|
int main(void)
|
|
{
|
|
/* Initializes MCU, drivers and middleware */
|
|
atmel_start_init();
|
|
|
|
usb_init();
|
|
cdcd_acm_example();
|
|
|
|
while(!usb_ready());
|
|
delay_ms(2000);
|
|
memcpy(buffer, "Hello World\n", sizeof("Hello World\n"));
|
|
volatile int32_t ret = cdcdf_acm_write(buffer, sizeof("Hello World\n"));
|
|
/* Replace with your application code */
|
|
while (1) {
|
|
}
|
|
}
|