-
Notifications
You must be signed in to change notification settings - Fork 89
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
Conversation
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space in characterstring?
// 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sad to see this :(
There was a problem hiding this comment.
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
c453a4b
to
b4ae16b
Compare
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.