53 lines
842 B
C
53 lines
842 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);
|
||
|
}
|
||
|
|
||
|
extern void dmaTest(void);
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
sysInit();
|
||
|
devInit();
|
||
|
|
||
|
dmaTest();
|
||
|
}
|