-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to Pico SDK 2.0.0. Added binary info, removed TMS PIO clock d…
…ivider
- Loading branch information
Showing
10 changed files
with
159 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,46 @@ | ||
{ | ||
"files.associations": { | ||
"*.md": "markdown", | ||
"xtr1common": "c", | ||
"stdlib.h": "c", | ||
"multicore.h": "c", | ||
"stdio.h": "c", | ||
"tms9918.pio.h": "c" | ||
} | ||
} | ||
"cmake.options.statusBarVisibility": "hidden", | ||
"cmake.options.advanced": { | ||
"build": { | ||
"statusBarVisibility": "hidden" | ||
}, | ||
"launch": { | ||
"statusBarVisibility": "hidden" | ||
}, | ||
"debug": { | ||
"statusBarVisibility": "hidden" | ||
} | ||
}, | ||
"cmake.configureOnEdit": false, | ||
"cmake.automaticReconfigure": false, | ||
"cmake.configureOnOpen": false, | ||
"cmake.generator": "Ninja", | ||
"cmake.cmakePath": "C:\\Users\\troy\\.pico-sdk\\cmake\\v3.28.6\\bin\\cmake", | ||
"C_Cpp.debugShortcut": false, | ||
"terminal.integrated.env.windows": { | ||
"PICO_SDK_PATH": "${env:USERPROFILE}/.pico-sdk/sdk/2.0.0", | ||
"PICO_TOOLCHAIN_PATH": "${env:USERPROFILE}/.pico-sdk/toolchain/13_3_Rel1", | ||
"Path": "${env:USERPROFILE}/.pico-sdk/toolchain/13_3_Rel1/bin;${env:USERPROFILE}/.pico-sdk/picotool/2.0.0/picotool;${env:USERPROFILE}/.pico-sdk/cmake/v3.30.5/bin;${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1;${env:PATH}" | ||
}, | ||
"terminal.integrated.env.osx": { | ||
"PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.0.0", | ||
"PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/13_3_Rel1", | ||
"PATH": "${env:HOME}/.pico-sdk/toolchain/13_3_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.0.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.30.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" | ||
}, | ||
"terminal.integrated.env.linux": { | ||
"PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.0.0", | ||
"PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/13_3_Rel1", | ||
"PATH": "${env:HOME}/.pico-sdk/toolchain/13_3_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.0.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.30.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" | ||
}, | ||
"raspberry-pi-pico.cmakeAutoConfigure": true, | ||
"raspberry-pi-pico.useCmakeTools": false, | ||
"raspberry-pi-pico.cmakePath": "${HOME}/.pico-sdk/cmake/v3.30.5/bin/cmake", | ||
"raspberry-pi-pico.ninjaPath": "${HOME}/.pico-sdk/ninja/v1.12.1/ninja", | ||
"raspberry-pi-pico.python3Path": "${HOME}/.pico-sdk/python/3.12.1/python.exe", | ||
"files.associations": { | ||
"vremutms9918priv.h": "c", | ||
"stdlib.h": "c", | ||
"binary_info.h": "c", | ||
"divider.h": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
# Generated Cmake Pico project file | ||
|
||
# pull in PICO SDK (must be before project) | ||
include(pico_sdk_import.cmake) | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
# pull in helpers for my custom tools | ||
include(visrealm_tools.cmake) | ||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
# Initialise pico_sdk from installed location | ||
# (note this can come from environment, CMake cache etc) | ||
|
||
# == DO NEVER EDIT THE NEXT LINES for Raspberry Pi Pico VS Code Extension to work == | ||
if(WIN32) | ||
set(USERHOME $ENV{USERPROFILE}) | ||
else() | ||
set(USERHOME $ENV{HOME}) | ||
endif() | ||
set(sdkVersion 2.0.0) | ||
set(toolchainVersion 13_3_Rel1) | ||
set(picotoolVersion 2.0.0) | ||
set(picoVscode ${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) | ||
if (EXISTS ${picoVscode}) | ||
include(${picoVscode}) | ||
endif() | ||
# ==================================================================================== | ||
|
||
set(BUILD_SHARED_LIBS OFF) | ||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}/src/boards ) | ||
set(PICO_BOARD "pico9918_v04" CACHE STRING "Board type") | ||
|
||
set(PROJECT pico9918) | ||
# Pull in Raspberry Pi Pico SDK (must be before project) | ||
include(pico_sdk_import.cmake) | ||
|
||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}/src/boards ) | ||
set(PICO_BOARD "pico9918_v04") | ||
# pull in helpers for my custom tools | ||
include(visrealm_tools.cmake) | ||
|
||
project(${PROJECT} C CXX) | ||
project(pico9918 C CXX ASM) | ||
|
||
add_definitions(-DPICO_BUILD=1) | ||
add_definitions(-DVR_EMU_TMS9918_SINGLE_INSTANCE=1) | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
# Initialize the Pico SDK | ||
# Initialise the Raspberry Pi Pico SDK | ||
pico_sdk_init() | ||
|
||
add_subdirectory(submodules/vrEmuTms9918) | ||
add_subdirectory(src) | ||
add_subdirectory(test) | ||
|
||
add_subdirectory(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters