mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-03-19 11:12:55 +00:00
63 lines
1.2 KiB
C
63 lines
1.2 KiB
C
|
/*
|
||
|
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||
|
*/
|
||
|
|
||
|
#ifndef AOS_AOS_H
|
||
|
#define AOS_AOS_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include <aos/types.h>
|
||
|
#include <aos/cli.h>
|
||
|
#include <aos/cloud.h>
|
||
|
#include <aos/debug.h>
|
||
|
#include <aos/kernel.h>
|
||
|
#include <aos/kv.h>
|
||
|
#include <aos/list.h>
|
||
|
#include <aos/log.h>
|
||
|
#include <aos/vfs.h>
|
||
|
#include <aos/version.h>
|
||
|
#include <aos/yloop.h>
|
||
|
#include <aos/errno.h>
|
||
|
#include <aos/init.h>
|
||
|
|
||
|
/*
|
||
|
#include <aos/alink.h>
|
||
|
#include <aos/network.h>
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Transmit data on a UART interface
|
||
|
*
|
||
|
* @param data pointer to the start of data
|
||
|
* @param size number of bytes to transmit
|
||
|
* @param timeout time to wait
|
||
|
*
|
||
|
* @return 0 success, EIO if an error occurred with any step
|
||
|
*/
|
||
|
int32_t aos_uart_send(void *data, uint32_t size, uint32_t timeout);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Recv data on a UART interface
|
||
|
*
|
||
|
* @param data pointer to the start of recv buf
|
||
|
* @param expect_size number of bytes expect to recv
|
||
|
* @param recv_size number of bytes trully received
|
||
|
* @param timeout time to wait
|
||
|
*
|
||
|
* @return 0 success, EIO if an error occurred with any step
|
||
|
*/
|
||
|
int32_t aos_uart_recv(void *data, uint32_t expect_size, uint32_t *recv_size, uint32_t timeout);
|
||
|
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* AOS_AOS_H */
|
||
|
|