mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-27 02:01:48 +01:00
25 lines
570 B
C
25 lines
570 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "unity.h"
|
|
|
|
static void print_banner(const char *text);
|
|
|
|
void app_main(void)
|
|
{
|
|
print_banner("Running all the registered tests");
|
|
UNITY_BEGIN();
|
|
unity_run_all_tests();
|
|
UNITY_END();
|
|
|
|
print_banner("Starting interactive test menu");
|
|
/* This function will not return, and will be busy waiting for UART input.
|
|
* Make sure that task watchdog is disabled if you use this function.
|
|
*/
|
|
unity_run_menu();
|
|
}
|
|
|
|
static void print_banner(const char *text)
|
|
{
|
|
printf("\n#### %s #####\n\n", text);
|
|
}
|