Skip to content
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

refactor(Examples): Update examples with CLI to use new CLI library #770

Merged
merged 14 commits into from
Feb 10, 2024

Conversation

Jacob-Scheiffler
Copy link
Contributor

@Jacob-Scheiffler Jacob-Scheiffler commented Oct 13, 2023

This PR will eventually update all Flash_CLI, WearLeveling, and SDHC_FAT examples to use the new CLI library. For now, I have updated one of each of these examples. Once I have initial approval of these updated examples and #769 has been approved and merged, then I will add these updates to the remainder of the chips which support the examples.

@Jacob-Scheiffler Jacob-Scheiffler added the WIP work in progress label Oct 13, 2023
@github-actions github-actions bot added MAX32650 Related to the MAX32650 (ME10) MAX32670 Related to the MAX32670 (ME15) labels Oct 13, 2023
@@ -6,8 +6,8 @@ Below is a list of the supported commands:
* help: Prints out the list of available commands and describes how each command is used.
* stop: Ends the example.
* read: Reads data from a file and prints it to the terminal.
* write: Writes data to a file and can optionally create the file to write to if it does not already exist.
* swl: Stands for "show wear leveling". This command performs a specified number of writes (passed as an argument on the command line) to a test file and prints out the number of times each filesystem block was written to. Users should see the writes occur somewhat evenly across most filesystem blocks.
* write: Writes a characterstring to a file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space in characterstring?

Comment on lines +63 to +60
// Macro to call MXC_UART_Init function with appropriate parameters
#if (TARGET_NUM == 32520 || TARGET_NUM == 32570 || TARGET_NUM == 32650)
#define UART_INIT(uart) MXC_UART_Init(uart, UART_BAUD)
#elif TARGET_NUM == 32660
#define UART_INIT(uart) MXC_UART_Init(uart, UART_BAUD, MAP_A)
#elif TARGET_NUM == 32662
#define UART_INIT(uart) MXC_UART_Init(uart, UART_BAUD, MXC_UART_APB_CLK, MAP_A)
#else
#define UART_INIT(uart) MXC_UART_Init(uart, UART_BAUD, MXC_UART_APB_CLK)
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sad to see this :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good example related to #787

@Jake-Carter Jake-Carter force-pushed the dev/update_cli_examples branch from c453a4b to b4ae16b Compare February 10, 2024 00:52
@Jake-Carter Jake-Carter merged commit bfabe6f into main Feb 10, 2024
9 checks passed
@Jake-Carter Jake-Carter deleted the dev/update_cli_examples branch February 10, 2024 04:09
EricB-ADI pushed a commit that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAX32650 Related to the MAX32650 (ME10) MAX32670 Related to the MAX32670 (ME15) WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants