59 lines
933 B
C
59 lines
933 B
C
#include "Config.h"
|
|
#include "ls1x_gpio.h"
|
|
#include "ls1x_pmu.h"
|
|
#include "ls1x_clock.h"
|
|
#include "ls1x_common.h"
|
|
#include "ls1x_uart.h"
|
|
#include "ls1x_wdg.h"
|
|
#include "ls1x_string.h"
|
|
#include "UserGpio.h"
|
|
#include "../case/SHT-31/1c102_dev_SHT31.h"
|
|
#include "../private/ls1c102/1c102_mytimer.h"
|
|
#include "../private/ls1c102/1c102_myGPIO.h"
|
|
|
|
#define TEST_GPIO 63
|
|
extern uint32_t SystemFreq;
|
|
|
|
|
|
int task1()
|
|
{
|
|
GPIOMode_TypeDef test_mode = GPIO_Mode_Out;
|
|
printf("1s\n");
|
|
Set_gpio_value(TEST_GPIO, test_mode, 1);
|
|
return 0;
|
|
}
|
|
|
|
int task2()
|
|
{
|
|
printf("2s\n");
|
|
return 0;
|
|
}
|
|
|
|
int task3()
|
|
{
|
|
printf("3s\n");
|
|
return 0;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
char reg_result = 0;
|
|
/* Required initialization modules */
|
|
SystemClockInit();
|
|
SystemFreq = CLOCK_GetClocksFreq();
|
|
GPIOInit();
|
|
WdgInit();
|
|
|
|
/* */
|
|
DisableInt();
|
|
|
|
UartInit();
|
|
|
|
EnableInt();
|
|
|
|
ls1x_logo();
|
|
|
|
Get_TandRH();
|
|
|
|
while(1);
|
|
} |