forked from xuos/xiuos
fix compile error include watchdog and uart configure error
This commit is contained in:
parent
c14f2f73e0
commit
80e08450fe
|
@ -87,6 +87,17 @@ static const struct WdtDevDone dev_done =
|
||||||
NONE,
|
NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: Watchdog function
|
||||||
|
* @return success: EOK, failure: other
|
||||||
|
*/
|
||||||
|
int StartWatchdog(void)
|
||||||
|
{
|
||||||
|
//add feed watchdog task function
|
||||||
|
|
||||||
|
return EOK;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function Watchdog initialization
|
* This function Watchdog initialization
|
||||||
*
|
*
|
||||||
|
|
|
@ -65,6 +65,17 @@ static const struct WdtDevDone dev_done =
|
||||||
NONE,
|
NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: Watchdog function
|
||||||
|
* @return success: EOK, failure: other
|
||||||
|
*/
|
||||||
|
int StartWatchdog(void)
|
||||||
|
{
|
||||||
|
//add feed watchdog task function
|
||||||
|
|
||||||
|
return EOK;
|
||||||
|
}
|
||||||
|
|
||||||
int HwWdtInit(void)
|
int HwWdtInit(void)
|
||||||
{
|
{
|
||||||
wdt_device_number_t id;
|
wdt_device_number_t id;
|
||||||
|
|
|
@ -118,6 +118,7 @@ static uint32 SerialInit(struct SerialDriver *serial_drv, struct BusConfigureInf
|
||||||
|
|
||||||
struct SerialHardwareDevice *serial_dev = (struct SerialHardwareDevice *)serial_drv->driver.owner_bus->owner_haldev;
|
struct SerialHardwareDevice *serial_dev = (struct SerialHardwareDevice *)serial_drv->driver.owner_bus->owner_haldev;
|
||||||
struct SerialDevParam *dev_param = (struct SerialDevParam *)serial_dev->haldev.private_data;
|
struct SerialDevParam *dev_param = (struct SerialDevParam *)serial_dev->haldev.private_data;
|
||||||
|
struct SerialCfgParam *serial_cfg = (struct SerialCfgParam *)serial_drv->private_data;
|
||||||
|
|
||||||
// config serial receive sem timeout
|
// config serial receive sem timeout
|
||||||
dev_param->serial_timeout = serial_cfg->data_cfg.serial_timeout;
|
dev_param->serial_timeout = serial_cfg->data_cfg.serial_timeout;
|
||||||
|
|
|
@ -119,6 +119,7 @@ static uint32 SerialInit(struct SerialDriver *serial_drv, struct BusConfigureInf
|
||||||
|
|
||||||
struct SerialHardwareDevice *serial_dev = (struct SerialHardwareDevice *)serial_drv->driver.owner_bus->owner_haldev;
|
struct SerialHardwareDevice *serial_dev = (struct SerialHardwareDevice *)serial_drv->driver.owner_bus->owner_haldev;
|
||||||
struct SerialDevParam *dev_param = (struct SerialDevParam *)serial_dev->haldev.private_data;
|
struct SerialDevParam *dev_param = (struct SerialDevParam *)serial_dev->haldev.private_data;
|
||||||
|
struct SerialCfgParam *serial_cfg = (struct SerialCfgParam *)serial_drv->private_data;
|
||||||
|
|
||||||
// config serial receive sem timeout
|
// config serial receive sem timeout
|
||||||
dev_param->serial_timeout = serial_cfg->data_cfg.serial_timeout;
|
dev_param->serial_timeout = serial_cfg->data_cfg.serial_timeout;
|
||||||
|
|
|
@ -66,6 +66,17 @@ static const struct WdtDevDone dev_done =
|
||||||
NONE,
|
NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: Watchdog function
|
||||||
|
* @return success: EOK, failure: other
|
||||||
|
*/
|
||||||
|
int StartWatchdog(void)
|
||||||
|
{
|
||||||
|
//add feed watchdog task function
|
||||||
|
|
||||||
|
return EOK;
|
||||||
|
}
|
||||||
|
|
||||||
int HwWdtInit(void)
|
int HwWdtInit(void)
|
||||||
{
|
{
|
||||||
wdt_device_number_t id;
|
wdt_device_number_t id;
|
||||||
|
|
|
@ -66,6 +66,17 @@ static const struct WdtDevDone dev_done =
|
||||||
NONE,
|
NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: Watchdog function
|
||||||
|
* @return success: EOK, failure: other
|
||||||
|
*/
|
||||||
|
int StartWatchdog(void)
|
||||||
|
{
|
||||||
|
//add feed watchdog task function
|
||||||
|
|
||||||
|
return EOK;
|
||||||
|
}
|
||||||
|
|
||||||
int HwWdtInit(void)
|
int HwWdtInit(void)
|
||||||
{
|
{
|
||||||
wdt_device_number_t id;
|
wdt_device_number_t id;
|
||||||
|
|
|
@ -86,6 +86,17 @@ static const struct WdtDevDone dev_done =
|
||||||
NONE,
|
NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: Watchdog function
|
||||||
|
* @return success: EOK, failure: other
|
||||||
|
*/
|
||||||
|
int StartWatchdog(void)
|
||||||
|
{
|
||||||
|
//add feed watchdog task function
|
||||||
|
|
||||||
|
return EOK;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function Watchdog initialization
|
* This function Watchdog initialization
|
||||||
*
|
*
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
#include "connect_usb.h"
|
#include "connect_usb.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BSP_USING_WDT
|
|
||||||
#include "connect_wdt.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef KERNEL_USER_MAIN
|
#ifdef KERNEL_USER_MAIN
|
||||||
#ifndef MAIN_KTASK_STACK_SIZE
|
#ifndef MAIN_KTASK_STACK_SIZE
|
||||||
#define MAIN_KTASK_STACK_SIZE 2048
|
#define MAIN_KTASK_STACK_SIZE 2048
|
||||||
|
@ -44,6 +40,10 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BSP_USING_WDT
|
||||||
|
extern int StartWatchdog(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
extern void CreateKServiceKTask(void);
|
extern void CreateKServiceKTask(void);
|
||||||
extern int main(void);
|
extern int main(void);
|
||||||
void InitBoardHardware(void);
|
void InitBoardHardware(void);
|
||||||
|
|
Loading…
Reference in New Issue