-
Notifications
You must be signed in to change notification settings - Fork 938
Some README and example cleanup #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 +1,20 @@ | ||
# build a normal library | ||
# | ||
add_library(nec_receive_library nec_receive.c) | ||
add_library(nec_receive_library INTERFACE) | ||
|
||
target_sources(nec_receive_library INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/nec_receive.c) | ||
|
||
# invoke pio_asm to assemble the state machine program | ||
# | ||
pico_generate_pio_header(nec_receive_library ${CMAKE_CURRENT_LIST_DIR}/nec_receive.pio) | ||
|
||
target_link_libraries(nec_receive_library PRIVATE | ||
target_link_libraries(nec_receive_library INTERFACE | ||
pico_stdlib | ||
hardware_pio | ||
) | ||
|
||
# add the `binary` directory so that the generated headers are included in the project | ||
# | ||
target_include_directories (nec_receive_library PUBLIC | ||
target_include_directories (nec_receive_library INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
) |
This file contains hidden or 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,20 +1,21 @@ | ||
# build a normal library | ||
# | ||
add_library(nec_transmit_library nec_transmit.c) | ||
add_library(nec_transmit_library INTERFACE) | ||
|
||
target_sources(nec_transmit_library INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/nec_transmit.c) | ||
|
||
# invoke pio_asm to assemble the PIO state machine programs | ||
# | ||
pico_generate_pio_header(nec_transmit_library ${CMAKE_CURRENT_LIST_DIR}/nec_carrier_burst.pio) | ||
pico_generate_pio_header(nec_transmit_library ${CMAKE_CURRENT_LIST_DIR}/nec_carrier_control.pio) | ||
|
||
target_link_libraries(nec_transmit_library PRIVATE | ||
target_link_libraries(nec_transmit_library INTERFACE | ||
pico_stdlib | ||
hardware_pio | ||
) | ||
|
||
# add the `binary` directory so that the generated headers are included in the project | ||
# | ||
target_include_directories (nec_transmit_library PUBLIC | ||
target_include_directories (nec_transmit_library INTERFACE | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
) |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
add_executable(pio_uart_dma) | ||
pico_generate_pio_header(pio_uart_dma ${CMAKE_CURRENT_LIST_DIR}/../uart_rx/uart_rx.pio) | ||
pico_generate_pio_header(pio_uart_dma ${CMAKE_CURRENT_LIST_DIR}/../uart_tx/uart_tx.pio) | ||
target_sources(pio_uart_dma PRIVATE uart_dma.c) | ||
target_link_libraries(pio_uart_dma PRIVATE | ||
pico_stdlib | ||
hardware_pio | ||
hardware_dma | ||
) | ||
pico_add_extra_outputs(pio_uart_dma) | ||
example_auto_set_url(pio_uart_dma) |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.