-
Notifications
You must be signed in to change notification settings - Fork 99
/
CMakeLists.txt
48 lines (44 loc) · 1.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
if (PICO_ON_DEVICE)
if (TARGET pico_scanvideo_dpi AND TARGET pico_sd_card)
add_executable(popcorn
popcorn.c
atlantis.c
lcd12.c
lcd18.c
)
target_compile_definitions(popcorn PRIVATE
PICO_SCANVIDEO_MAX_SCANLINE_BUFFER_WORDS=164
# seems fine without 16 (maybe need for overlay)
PICO_SCANVIDEO_SCANLINE_BUFFER_COUNT=16
#PICO_DEBUG_MALLOC
PICO_AUDIO_I2S_DMA_IRQ=1
PICO_AUDIO_I2S_PIO=0
PICO_STACK_SIZE=0x400
__HEAP_SIZE=0x500
PICO_USE_STACK_GUARDS=1
PICO_SCANVIDEO_ADJUST_BUS_PRIORITY=1
PICO_SCANVIDEO_ENABLE_VIDEO_CLOCK_DOWN=1
PLATYPUS_565
VIDEO_565
VIDEO_DBI
PICO_SCANVIDEO_LINKED_SCANLINE_BUFFERS=1 # we do two rows at a time
#PICO_SCANVIDEO_48MHZ # still uses this for now
)
if (PICO_RP2350)
target_compile_definitions(popcorn PRIVATE
#PICO_SCANVIDEO_48MHZ=1
PLATYPUS_TABLES_MAIN_RAM=1 #todo not enough space in scratch (we can fixup tables tho later)
)
endif()
target_link_libraries(popcorn
pico_multicore
pico_stdlib
platypus
pico_scanvideo_dpi
pico_sd_card
pico_audio_i2s)
pico_add_extra_outputs(popcorn)
endif()
else()
add_subdirectory(converter)
endif()