Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Source for USB initialization for Mk20dx128

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    3

    Source for USB initialization for Mk20dx128

    I'd like to look at the usb initialization code for the teensy 3.0 board I just ordered, but it looks like the archive I loaded from the site only contains the AVR init code. Is the Freescale init code available?

  2. #2
    Senior Member
    Join Date
    Dec 2013
    Location
    Brasilia, Brazil
    Posts
    166
    Quote Originally Posted by aswanson View Post
    I'd like to look at the usb initialization code for the teensy 3.0 board I just ordered, but it looks like the archive I loaded from the site only contains the AVR init code. Is the Freescale init code available?
    Look in <Arduino>/hardware/teensy/cores/teensy3 for usb_*.c. The code is organized quite differently than the AVR code.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,943
    In hindsight, I probably should have organized the AVR code this way.

  4. #4
    Senior Member
    Join Date
    Dec 2013
    Location
    Brasilia, Brazil
    Posts
    166
    That's what revisions are for... Considering that the AVR code was the first approach and still works very well, no need to complain "in hindsight".

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •