Restructure the files for different CPUs
This commit is contained in:
@@ -44,19 +44,19 @@ macro(add_picovga project)
|
||||
|
||||
if(PICO_PLATFORM STREQUAL "rp2040")
|
||||
target_sources(${project} PRIVATE
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp15.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp2.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp3.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp4.S
|
||||
${PICOVGA_PATH}/src/render/rp2040/vga_tilepersp.S
|
||||
${PICOVGA_PATH}/src/render/rp2040/vga_tilepersp15.S
|
||||
${PICOVGA_PATH}/src/render/rp2040/vga_tilepersp2.S
|
||||
${PICOVGA_PATH}/src/render/rp2040/vga_tilepersp3.S
|
||||
${PICOVGA_PATH}/src/render/rp2040/vga_tilepersp4.S
|
||||
)
|
||||
elseif(PICO_PLATFORM STREQUAL "rp2350-arm-s")
|
||||
target_sources(${project} PRIVATE
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp.rp2350.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp15.rp2350.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp2.rp2350.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp3.rp2350.S
|
||||
${PICOVGA_PATH}/src/render/vga_tilepersp4.rp2350.S
|
||||
${PICOVGA_PATH}/src/render/rp2350/vga_tilepersp.S
|
||||
${PICOVGA_PATH}/src/render/rp2350/vga_tilepersp15.S
|
||||
${PICOVGA_PATH}/src/render/rp2350/vga_tilepersp2.S
|
||||
${PICOVGA_PATH}/src/render/rp2350/vga_tilepersp3.S
|
||||
${PICOVGA_PATH}/src/render/rp2350/vga_tilepersp4.S
|
||||
)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported PICO_PLATFORM='${PICO_PLATFORM}'")
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// wb ... LOW8=number of bits of tile map width, HIGH8=number of bits of tile map height
|
||||
// wrapy ... segment height
|
||||
|
||||
#include "../define.h" // common definitions of C and ASM
|
||||
#include "../../define.h" // common definitions of C and ASM
|
||||
#include "hardware/regs/sio.h" // registers of hardware divider
|
||||
#include "hardware/regs/addressmap.h" // SIO base address
|
||||
|
||||
Reference in New Issue
Block a user