mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-28 01:01:34 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
37
Living_SDK/device/sal/sal_device.c
Normal file
37
Living_SDK/device/sal/sal_device.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <aos/aos.h>
|
||||
|
||||
#define TAG "SAL_DEVICE"
|
||||
|
||||
#ifdef DEV_SAL_MK3060
|
||||
extern int mk3060_sal_init(void);
|
||||
#endif
|
||||
|
||||
int sal_device_init()
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
#ifdef DEV_SAL_MK3060
|
||||
ret = mk3060_sal_init();
|
||||
#endif
|
||||
|
||||
#ifdef DEV_SAL_GT202
|
||||
ret = gt202_sal_init();
|
||||
#endif
|
||||
|
||||
#ifdef DEV_SAL_SIM800
|
||||
extern int sim800_sal_init(void);
|
||||
ret = sim800_sal_init();
|
||||
#endif
|
||||
if (ret){
|
||||
LOGE(TAG, "device init fail ret is %d\n", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue