bleSDK_expansion_board/examples/_blank/src/main.c

61 lines
907 B
C

/**
****************************************************************************************
*
* @file main.c
*
* @brief Main Entry of the application.
*
****************************************************************************************
*/
#include "b6x.h"
#include "drvs.h"
#include "dbg.h"
/*
* DEFINES
****************************************************************************************
*/
/*
* FUNCTIONS
****************************************************************************************
*/
static void sysInit(void)
{
// Todo config, if need
}
static void devInit(void)
{
uint16_t rsn = rstrsn();
iwdt_disable();
dbgInit();
debug("Start(rsn:0x%X)...\r\n", rsn);
}
static void userProc(void)
{
// Todo user procedure
}
int main(void)
{
sysInit();
devInit();
while (1)
{
userProc();
}
}