Skip to content

Commit

Permalink
Add comments in USB code for Teensy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Mar 16, 2022
1 parent 8e987d3 commit fcece80
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions usb_disk/media_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

//#include "pauls_ugly_debug.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0

inline uint32_t media_size(void);
void media_init(void);
Expand Down
2 changes: 2 additions & 0 deletions usb_disk/media_sdcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

//#include "pauls_ugly_debug.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "core_pins.h" // for delayMicroseconds

inline uint32_t media_size(void);
Expand Down
1 change: 1 addition & 0 deletions usb_disk/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
2 changes: 1 addition & 1 deletion usb_disk/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "keylayouts.h"
#include "wiring.h"


// This file is used only for Teensy 2.0 and Teensy++ 2.0


// Step #1, decode UTF8 to Unicode code points
Expand Down
1 change: 1 addition & 0 deletions usb_flightsim/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
2 changes: 2 additions & 0 deletions usb_flightsim/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0


FlightSimCommand * FlightSimCommand::first = NULL;
FlightSimCommand * FlightSimCommand::last = NULL;
Expand Down
1 change: 1 addition & 0 deletions usb_hid/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
1 change: 1 addition & 0 deletions usb_hid/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0


// Step #1, decode UTF8 to Unicode code points
Expand Down
1 change: 1 addition & 0 deletions usb_midi/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
1 change: 1 addition & 0 deletions usb_midi/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0

void usb_midi_class::sendSysEx_BufferHasTerm(uint16_t length, const uint8_t *data)
{
Expand Down
1 change: 1 addition & 0 deletions usb_rawhid/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
2 changes: 2 additions & 0 deletions usb_rawhid/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0


int usb_rawhid_class::available(void)
{
Expand Down
1 change: 1 addition & 0 deletions usb_serial/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
2 changes: 2 additions & 0 deletions usb_serial/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0

// Public Methods //////////////////////////////////////////////////////////////

void usb_serial_class::begin(long speed)
Expand Down
1 change: 1 addition & 0 deletions usb_serial_hid/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* THE SOFTWARE.
*/

// This file is used only for Teensy 2.0 and Teensy++ 2.0

#include "usb_common.h"
#include "usb_private.h"
Expand Down
2 changes: 2 additions & 0 deletions usb_serial_hid/usb_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include "usb_api.h"
#include "wiring.h"

// This file is used only for Teensy 2.0 and Teensy++ 2.0

// Public Methods //////////////////////////////////////////////////////////////

void usb_serial_class::begin(long speed)
Expand Down

0 comments on commit fcece80

Please sign in to comment.