Skip to content

Commit

Permalink
Merge pull request #687 from FujiNetWIFI/dma_latch
Browse files Browse the repository at this point in the history
Combine PIOs and use DMA to tighten up Floppy-DCD state switching
  • Loading branch information
jeffpiep authored Nov 23, 2023
2 parents 9b33f60 + 9707fa0 commit f130fd9
Show file tree
Hide file tree
Showing 9 changed files with 252 additions and 228 deletions.
4 changes: 1 addition & 3 deletions pico/mac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/commands.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/echo.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/latch.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/mux.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/dcd_latch.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/dcd_commands.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/dcd_mux.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/dcd_read.pio)
pico_generate_pio_header(commands ${CMAKE_CURRENT_LIST_DIR}/dcd_write.pio)
# however, alternatively you can choose to generate it somewhere else (in this case in the source tree for check in)
#pico_generate_pio_header(pio_and ${CMAKE_CURRENT_LIST_DIR}/blink.pio OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR})

# target_sources(pio_and PRIVATE pio_and.c)

target_link_libraries(commands pico_stdlib hardware_pio)
target_link_libraries(commands pico_stdlib hardware_pio hardware_dma)

# Add the standard include files to the build
target_include_directories(commands PRIVATE
Expand Down
Loading

0 comments on commit f130fd9

Please sign in to comment.