31 lines
679 B
C
31 lines
679 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include "t_spi.h"
|
|
#include "t_iic.h"
|
|
#include "t_task.h"
|
|
#include "t_arg.h"
|
|
#include "t_list.h"
|
|
#include "t_key.h"
|
|
#include "tool.h"
|
|
#include <time.h>
|
|
|
|
|
|
int main() {
|
|
srand((unsigned) time(NULL));
|
|
int i = 1;
|
|
POUT((++i) + (++i));
|
|
|
|
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);
|
|
Test_RunTime("Queue", Test_Queue);
|
|
// Test_RunTime("Task", Test_task);
|
|
Test_RunTime("Key", Test_Key);
|
|
return 0;
|
|
}
|