Skip to content

Commit

Permalink
Initial commit of locally developed project to prepare release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Staacks committed Dec 16, 2022
1 parent 9c1c5ed commit b2a19e9
Show file tree
Hide file tree
Showing 72 changed files with 86,018 additions and 0 deletions.
395 changes: 395 additions & 0 deletions case/LICENSE

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions case/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# GB Interceptor Case

These are the design files for the 3d printed case for the GB Interceptor. See the build guide in the main Readme for details.

# License

The design files are licensed under the Creative Commons Attribution License (CC-BY 4.0).
Binary file added case/case.blend
Binary file not shown.
Binary file added case/case_bottom.stl
Binary file not shown.
Binary file added case/case_button.stl
Binary file not shown.
Binary file added case/case_top.stl
Binary file not shown.
35 changes: 35 additions & 0 deletions firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cmake_minimum_required(VERSION 3.13)

include(pico_sdk_import.cmake)

project(gb_interceptor C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

pico_sdk_init()

add_executable(gb_interceptor)

target_sources(gb_interceptor PUBLIC
${CMAKE_CURRENT_LIST_DIR}/main.c
${CMAKE_CURRENT_LIST_DIR}/cpubus.c
${CMAKE_CURRENT_LIST_DIR}/opcodes.c
${CMAKE_CURRENT_LIST_DIR}/ppu.c
${CMAKE_CURRENT_LIST_DIR}/debug.c
${CMAKE_CURRENT_LIST_DIR}/usb_descriptors.c
)

target_link_libraries(gb_interceptor PUBLIC pico_stdlib hardware_pio pico_multicore hardware_interp hardware_dma tinyusb_device tinyusb_board)

target_include_directories(gb_interceptor PUBLIC ${CMAKE_CURRENT_LIST_DIR})

pico_add_extra_outputs(gb_interceptor)

pico_enable_stdio_usb(gb_interceptor 1)
pico_enable_stdio_uart(gb_interceptor 0)

pico_set_binary_type(gb_interceptor copy_to_ram)

pico_generate_pio_header(gb_interceptor
${CMAKE_CURRENT_LIST_DIR}/memory-bus.pio
)
File renamed without changes.
9 changes: 9 additions & 0 deletions firmware/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GB Interceptor Firmware

This folder contains the source code for the firmware of the GB Interceptor. It requires the Raspberry Pi Pico SDK as well as TinyUSB (which is usually a submodule of the Pico SDK repository). If you want to build the firmware yourself, remember to set `PICO_SDK_PATH` correctly.

The subfolder screens contains the info screens shown when no game is running. The `sh` script in the same folder can be used to convert new images to header files.

# License

This code is licensed under GNU General Public License v3.
Loading

0 comments on commit b2a19e9

Please sign in to comment.