Skip to content

Commit

Permalink
pio: Update to teensy platform 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Oct 11, 2024
1 parent 6b9edcd commit 02b63b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 1 addition & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ build_flags =
-DTA_DISABLE_COMPACT

[env:teensy41]
platform = teensy@~4.13.1
platform = teensy@~5.0.0
board = teensy41
framework = arduino
monitor_port = COM25
monitor_speed = 256000

; Disable the inbuilt framework lib so I can use my own fork
lib_ignore = USBHost_t36
Expand Down
12 changes: 4 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,18 @@ void n64_controller4_clock_edge()
}
#endif

extern "C" {
FLASHMEM void startup_early_hook(void)
void setup()
{
//Init the serial port and ring buffer
serial_port.begin(256000);

//Get these up as early as possible.
pinMode(N64_CONTROLLER_1_PIN, INPUT_PULLUP);
pinMode(N64_CONTROLLER_2_PIN, INPUT_PULLUP);
pinMode(N64_CONTROLLER_3_PIN, INPUT_PULLUP);
pinMode(N64_CONTROLLER_4_PIN, INPUT_PULLUP);
pinMode(N64_CONSOLE_SENSE, INPUT_PULLDOWN);
}
}

void setup()
{
//Init the serial port and ring buffer
serial_port.begin(256000);
ring_buffer_init();
fileio_init();
memory_init();
Expand Down
2 changes: 1 addition & 1 deletion src/usb64_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/* DEBUGGING OUTPUT - WARNING SOME OF THESE MAY BREAK TIMING AND CAUSE ISSUES
USE ONLY FOR DEBUGGING */
#define serial_port Serial
#define serial_port Serial1
#define DEBUG_STATUS 1 //General information
#define DEBUG_N64 0 //For debugging N64 low level info
#define DEBUG_TPAK 0 //For debugging N64 TPAK low level info. It's complex so has its own flag
Expand Down

0 comments on commit 02b63b4

Please sign in to comment.