Skip to content
Snippets Groups Projects
Commit dd1f2713 authored by Jake Read's avatar Jake Read
Browse files

last notes for USB cdc

parent 92ff367d
No related branches found
No related tags found
No related merge requests found
...@@ -48,10 +48,12 @@ int main(void) ...@@ -48,10 +48,12 @@ int main(void)
// if config is config, and port is opened // if config is config, and port is opened
if(main_b_cdc_enable){ if(main_b_cdc_enable){
sam_ba_monitor_init(SAM_BA_INTERFACE_USBCDC); sam_ba_monitor_init(SAM_BA_INTERFACE_USBCDC);
// loops on this // loops on this
while(1){ while(1){
sam_ba_monitor_run(); sam_ba_monitor_run();
// @ HERE: understand how this /\ runs, looks through buffer etc... do the same for (1) bytes -> uart
// (2) for packet searching
PORT->Group[0].OUTCLR.reg = (uint32_t)(1 << 21);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment