-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7771a4
commit 5786cd9
Showing
15 changed files
with
749 additions
and
142 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
pico_sdk_init() | ||
add_definitions(-DSPADE_EMBEDDED -DSPADE_AUDIO -DPICO_NO_BI_PROGRAM_BUILD_DATE) | ||
set(DCMAKE_BUILD_TYPE Release) | ||
add_definitions(-DSPADE_EMBEDDED -DSPADE_AUDIO -DPICO_NO_BI_PROGRAM_BUILD_DATE -DPICO_USE_STACK_GUARDS) | ||
set(DCMAKE_BUILD_TYPE Debug) | ||
target_compile_definitions(spade PRIVATE | ||
# compile time configuration of I2S | ||
PICO_AUDIO_I2S_MONO_INPUT=1 | ||
USE_AUDIO_I2S=1 | ||
PICO_AUDIO_I2S_DATA_PIN=9 | ||
PICO_AUDIO_I2S_CLOCK_PIN_BASE=10 | ||
# PICO_DEFAULT_UART=0 | ||
# PICO_DEFAULT_UART_TX_PIN=28 | ||
# PICO_DEFAULT_UART_RX_PIN=29 | ||
# compile time configuration of I2S | ||
PICO_AUDIO_I2S_MONO_INPUT=1 | ||
USE_AUDIO_I2S=1 | ||
PICO_AUDIO_I2S_DATA_PIN=9 | ||
PICO_AUDIO_I2S_CLOCK_PIN_BASE=10 | ||
# PICO_DEFAULT_UART=0 | ||
# PICO_DEFAULT_UART_TX_PIN=28 | ||
# PICO_DEFAULT_UART_RX_PIN=29 | ||
) | ||
|
||
target_link_libraries(spade PRIVATE | ||
pico_stdlib | ||
pico_audio_i2s | ||
pico_multicore | ||
hardware_spi | ||
hardware_timer | ||
hardware_pwm | ||
hardware_adc | ||
pico_stdlib | ||
pico_audio_i2s | ||
pico_multicore | ||
hardware_spi | ||
hardware_timer | ||
hardware_pwm | ||
hardware_adc | ||
) | ||
|
||
pico_enable_stdio_usb(spade 1) | ||
pico_enable_stdio_uart(spade 0) | ||
|
||
# create map/bin/hex file etc. | ||
pico_add_extra_outputs(spade) | ||
|
||
pico_add_extra_outputs(spade) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.