-
-
Notifications
You must be signed in to change notification settings - Fork 0
create Lib/Peripherals/ to house upcoming peripheral abstractions
#107
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
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d1fd7d7
rename lib/FancyLayers -> lib/Inhouse
GabeMillikan 73f2e07
add inhouse readme
GabeMillikan 1eac0a6
add demo usart project
GabeMillikan 31cc389
add usart to cmakelists
GabeMillikan 6c2fdab
use usart_example in G4HELLO
GabeMillikan 9cd08f6
move Lib/Inhouse/Peripherals -> Lib/Peripherals & undo FancyLayers re…
GabeMillikan 9f5640c
Revert "use usart_example in G4HELLO"
GabeMillikan 8e27da5
add usart example to g4pertesting
GabeMillikan 0e2d382
mention circularbuffer in readme
GabeMillikan 2f59616
stop using glob
GabeMillikan a76a4be
remove pertesting exampe
GabeMillikan f443b42
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] bfa8588
add back blank line 🙄
GabeMillikan 32bd33d
Automatic CMake Format: Standardized formatting automatically
github-actions[bot] 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Lib/Peripherals | ||
|
|
||
| These abstract peripheral interfaces intend on satisfying the following goals: | ||
|
|
||
| 1. Reduce boilerplate in application code | ||
| 2. Share similar APIs across different peripherals, so we can (relatively) easily swap between two | ||
| 3. Support interrupt-based TX/RX so we don't need to busy-wait while transferring large packets | ||
| 4. Queue outgoing and incoming messages in a [CircularBuffer](/Lib/Utils/CircularBuffer/README.md) | ||
|
|
||
| See each subdirectory for specific details about that peripheral. |
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,10 @@ | ||
| add_library(PERIPHERAL_USART_LIB INTERFACE) | ||
|
|
||
| target_sources(PERIPHERAL_USART_LIB INTERFACE ${CMAKE_CURRENT_LIST_DIR}/usart.c) | ||
|
|
||
| # Make headers accessible as #include "Peripherals/USART/usart.h" | ||
| target_include_directories( | ||
| PERIPHERAL_USART_LIB | ||
| INTERFACE | ||
| ${CMAKE_CURRENT_LIST_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,6 @@ | ||
| #include "usart.h" | ||
|
|
||
| void usart_example(void) | ||
| { | ||
| // this is where I would keep my USART implementation... IF I HAD ONE!! | ||
| } |
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 @@ | ||
| void usart_example(void); |
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.