![]() |
Morse Micro IoT SDK
2.9.7
|
Porting assistant self test tool to validate hardware and HALs.
The Morse Micro Porting Assistant is a tool that assists with validating OSAL, HALs, and platform hardware necessary for communicating with a Morse Micro chip. It runs a sequence of tests and displays the results of each along with information about potential causes on failure.
This tool has been provided as an example application on the Morse Micro reference platforms. Running this application on a known-good platform should result in a 100% pass rate.
When bringing up a new platform, it is recommended to first port this example application to your new platform. It will then assist in diagnosing fundamental issues that may be more difficult to identify or debug when using other example applications.
Definition in file porting_assistant.c.
#include "porting_assistant.h"
Go to the source code of this file.
Data Structures | |
| struct | test_counters |
| Counters to track test runs. More... | |
Functions | |
| static const char * | result_code_to_string (enum test_result result) |
Convert a test_result code to string. More... | |
| static void | run_test_steps (const struct test_step *const steps[], size_t num_steps, struct test_counters *ctrs) |
| Iterate through the given list of test steps and execute until complete or until a critical failure occurs. More... | |
| void | app_init (void) |
| Main entry point to the application. More... | |
Variables | |
| const struct test_step | test_step_os_malloc |
| Test definition. | |
| const struct test_step | test_step_os_realloc |
| Test definition. | |
| const struct test_step | test_step_os_time |
| Test definition. | |
| const struct test_step | test_step_os_task_creation |
| Test definition. | |
| const struct test_step | test_step_mmhal_wlan_init |
| Test definition. | |
| const struct test_step | test_step_mmhal_wlan_hard_reset |
| Test definition. | |
| const struct test_step | test_step_mmhal_wlan_sdio_startup |
| Test definition. | |
| const struct test_step | test_step_read_chip_id |
| Test definition. | |
| const struct test_step | test_step_bulk_write_read |
| Test definition. | |
| const struct test_step | test_step_raw_tput |
| Test definition. | |
| const struct test_step | test_step_mmhal_wlan_validate_fw |
| Test definition. | |
| const struct test_step | test_step_mmhal_wlan_validate_bcf |
| Test definition. | |
| const struct test_step | test_step_verify_busy_pin |
| Test definition. | |
| static const struct test_step *const | test_steps [] |
| Array of test steps. More... | |
| void app_init | ( | void | ) |
Main entry point to the application.
This will be invoked in a thread once operating system and hardware initialization has completed. It may return, but it does not have to.
Definition at line 158 of file porting_assistant.c.
|
static |
Convert a test_result code to string.
| result | The result code. |
Definition at line 89 of file porting_assistant.c.
|
static |
Iterate through the given list of test steps and execute until complete or until a critical failure occurs.
| steps | Test steps to execute. |
| num_steps | Number of steps to execute. |
| ctrs | Test count state to be updated by this function. |
Definition at line 110 of file porting_assistant.c.
|
static |
Array of test steps.
Definition at line 55 of file porting_assistant.c.