http://forum.pjrc.com/threads/25482-Duplicate-usb-modem-number-HELP!teensy4-core
while (!(FTFL_FSTAT & FTFL_FSTAT_CCIF)) ; // wait | while (!(FTFL_FSTAT & FTFL_FSTAT_CCIF)) ; // wait | ||||
num = *(uint32_t *)&FTFL_FCCOB7; | num = *(uint32_t *)&FTFL_FCCOB7; | ||||
__enable_irq(); | __enable_irq(); | ||||
// add extra zero to work around OS-X CDC-ACM driver bug | |||||
if (num < 10000000) num = num * 10; | |||||
ultoa(num, buf, 10); | ultoa(num, buf, 10); | ||||
for (i=0; i<10; i++) { | for (i=0; i<10; i++) { | ||||
char c = buf[i]; | char c = buf[i]; |