HW_Lib/main.c

31 lines
679 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"
2024-06-21 05:25:01 +00:00
#include "t_list.h"
2024-06-22 03:08:31 +00:00
#include "t_key.h"
2024-06-02 04:57:33 +00:00
#include "tool.h"
2024-05-20 13:53:19 +00:00
#include <time.h>
2024-05-10 05:47:39 +00:00
2024-06-02 04:57:33 +00:00
2024-05-09 05:56:55 +00:00
int main() {
2024-06-02 04:57:33 +00:00
srand((unsigned) time(NULL));
int i = 1;
2024-06-21 09:42:02 +00:00
POUT((++i) + (++i));
2024-06-02 04:57:33 +00:00
2024-06-21 09:42:02 +00:00
char str[] = "123.456";
float result = Str2Float(str);
printf("Result: %.3f\n", result);
Test_RunTime("SPI", Test_spi);
Test_RunTime("IIC", Test_iic);
Test_RunTime("ArgPase", Test_argpase);
Test_RunTime("List", Test_List);
2024-06-21 07:21:42 +00:00
Test_RunTime("Queue", Test_Queue);
2024-06-22 03:08:31 +00:00
// Test_RunTime("Task", Test_task);
Test_RunTime("Key", Test_Key);
2024-05-09 05:56:55 +00:00
return 0;
}