HW_Lib/main.c

23 lines
477 B
C
Raw Normal View History

2024-05-09 05:56:55 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "t_spi.h"
2024-05-09 06:38:55 +00:00
#include "t_iic.h"
2024-05-10 05:47:39 +00:00
#include "t_task.h"
#include "t_arg.h"
void Test(char *name, void (*pFunction)()) {
printf("\n------< %s TEST >------\n", name);
pFunction();
printf("\n------< %s END >------\n", name);
}
2024-05-09 06:38:55 +00:00
2024-05-09 05:56:55 +00:00
int main() {
srand((unsigned)time(NULL));
2024-05-10 05:47:39 +00:00
Test("SPI", Test_spi);
Test("IIC", Test_iic);
Test("ArgPase", Test_argpase);
Test("Task", Test_task);
2024-05-09 05:56:55 +00:00
return 0;
}