craiglindley
Well-known member
I've gotten the cli loader built but my question is what mmcu do I specify for Teensy 3.1?
OK Paul I understand why it is low priority but unfortunately I need it to work.
#if defined(USE_LIBUSB)
} else if (strcasecmp(arg+6, "mk20dx128") == 0) {
code_size = 131072;
block_size = 1024;
} else if (strcasecmp(arg+6, "mk20dx256") == 0) {
code_size = 262144;
block_size = 1024;
#endif
Can I vote twice?
int teensy_write(void *buf, int len, double timeout)
{
int r;
if (!libusb_teensy_handle) return 0;
while (timeout > 0) {
r = usb_control_msg(libusb_teensy_handle, 0x21, 9, 0x0200, 0,
(char *)buf, len, (int)(timeout * 1000.0));
if (r >= 0) return 1;
//printf("teensy_write, r=%d\n", r);
usleep(10000);
timeout -= 0.01; // TODO: subtract actual elapsed time
}
return 0;
}
int teensy_write(void *buf, int len, double timeout)
{
int r;
if (!win32_teensy_handle) return 0;
r = write_usb_device(win32_teensy_handle, buf, len, (int)(timeout * 1000.0));
//if (!r) print_win32_err();
return r;
}
I'm going to guess the odds of National Instruments ever porting Labview to Linux are pretty much zero, right?