-
Notifications
You must be signed in to change notification settings - Fork 11
/
ectocore_compile_definitions_v0.3.cmake
88 lines (75 loc) · 1.89 KB
/
ectocore_compile_definitions_v0.3.cmake
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
target_compile_definitions(${PROJECT_NAME} PRIVATE
# hardware specific
USE_AUDIO_I2S=1
SDCARD_USE_CD=false
SDCARD_CD_GPIO=21 # not used...
PICO_XOSC_STARTUP_DELAY_MULTIPLIER=4
# # ecto
SDCARD_CMD_GPIO=25
SDCARD_D0_GPIO=26
AUDIO_CLK_GPIO=21 # LCK=17
AUDIO_DIN_GPIO=23
INCLUDE_ECTOCORE=1
INCLUDE_FILTER=1
INCLUDE_MIDI=1
INCLUDE_RGBLED=1
# utilize core1 for audio to avoid dropouts
CORE1_PROCESS_I2S_CALLBACK=1
DO_OVERCLOCK=1
# pin definitions
MCP_KNOB_AMEN=0
MCP_ATTEN_AMEN=1
MCP_CV_AMEN=2
MCP_KNOB_BREAK=3
MCP_ATTEN_BREAK=4
MCP_CV_BREAK=5
MCP_KNOB_SAMPLE=6
MCP_CV_SAMPLE=7
GPIO_BTN_MODE=0
GPIO_BTN_MULT=1
GPIO_BTN_BANK=20
GPIO_BTN_TAPTEMPO=2
GPIO_LED_TAPTEMPO=3
GPIO_INPUTDETECT=16
GPIO_CLOCK_IN=14
GPIO_MIDI_IN=15
GPIO_CLOCK_OUT=19
GPIO_TRIG_OUT=18
GPIO_MODE_LEDA=12
GPIO_MODE_LEDB=13
GPIO_WS2812=7
INCLUDE_CUEDSOUNDS=1
# ARCADE DEFINITIONS
MCP23017_ADDR1=0x20
MCP23017_ADDR2=0x21
ADS7830_ADDR=0x48
# debug printing
# PRINT_AUDIO_USAGE=1
# PRINT_AUDIO_OVERLOADS=1
# PRINT_AUDIO_CPU_USAGE=1
# PRINT_MEMORY_USAGE=1
# PRINT_SDCARD_TIMING=1
# PRINT_AUDIOBLOCKDROPS=1
# turn off gpio for leds
LEDS_NO_GPIO=1
# file variations
FILE_VARIATIONS=2
# basics
# INCLUDE_KEYBOARD=1
# INCLUDE_RGBLED=1
# INCLUDE_SINEBASS=1
USBD_PID=0x1837
SKIP_SDIO_CHECKSUMS=1
ECTOCORE_VERSION_3=1
# DEBUG_AUDIO_WITH_SINE_WAVE=1
)
# uncomment these lines to include midi
target_link_libraries(${PROJECT_NAME}
tinyusb_device
tinyusb_board
)
pico_enable_stdio_usb(${PROJECT_NAME} 0)
pico_enable_stdio_uart(${PROJECT_NAME} 1)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR})
# pico_enable_stdio_usb(${PROJECT_NAME} 1)
# pico_enable_stdio_uart(${PROJECT_NAME} 1)