
1. add TOS_CFG_LIBC_PRINTF_EN 1: enable printf to implement tos_kprintf when you call tos_kprintf(actually currently it's a MACRO rather than a function) , the libc will be invloved into the image, most of the time it means a larger image size. 0: disable printf, means tos_kprintf is defined as an empty MACRO most of the time, means you will not get a log output from the uart(currently we donnot have a console yet) but a smaller image size. 2. fix a bug of tos_mail_q and tos_priority_mail_q if we are post-ing a mail and there is[are] task[s] just pend-ing for the mail queue, the mail delivered to the pend-er will be a pointer, and probably it's a pointer to the local variable on the stack. Actually we should do a memcpy rather than a pointer assignment. for more details, see the patch.
64 lines
2.0 KiB
C
64 lines
2.0 KiB
C
/*----------------------------------------------------------------------------
|
|
* Tencent is pleased to support the open source community by making TencentOS
|
|
* available.
|
|
*
|
|
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
|
|
* If you have downloaded a copy of the TencentOS binary from Tencent, please
|
|
* note that the TencentOS binary is licensed under the BSD 3-Clause License.
|
|
*
|
|
* If you have downloaded a copy of the TencentOS source code from Tencent,
|
|
* please note that TencentOS source code is licensed under the BSD 3-Clause
|
|
* License, except for the third-party components listed below which are
|
|
* subject to different license terms. Your integration of TencentOS into your
|
|
* own projects may require compliance with the BSD 3-Clause License, as well
|
|
* as the other licenses applicable to the third-party components included
|
|
* within TencentOS.
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef _TOS_H_
|
|
#define _TOS_H_
|
|
|
|
#include <tos_compiler.h>
|
|
#include <tos_err.h>
|
|
#include <tos_ktypes.h>
|
|
#include <tos_cpu_def.h>
|
|
#include <tos_config.h>
|
|
#include <tos_config_default.h>
|
|
#include <tos_cpu_types.h>
|
|
#include <port_config.h>
|
|
#include <port.h>
|
|
#include <tos_cpu.h>
|
|
#include <tos_config_check.h>
|
|
#include <tos_fault.h>
|
|
#include <tos_klib.h>
|
|
#include <tos_list.h>
|
|
#include <tos_pend.h>
|
|
#include <tos_sys.h>
|
|
#include <tos_ring_queue.h>
|
|
#include <tos_char_fifo.h>
|
|
#include <tos_mail_queue.h>
|
|
#include <tos_message_queue.h>
|
|
#include <tos_binary_heap.h>
|
|
#include <tos_priority_queue.h>
|
|
#include <tos_priority_mail_queue.h>
|
|
#include <tos_priority_message_queue.h>
|
|
#include <tos_task.h>
|
|
#include <tos_robin.h>
|
|
#include <tos_mutex.h>
|
|
#include <tos_sem.h>
|
|
#include <tos_event.h>
|
|
#include <tos_countdownlatch.h>
|
|
#include <tos_completion.h>
|
|
#include <tos_timer.h>
|
|
#include <tos_time.h>
|
|
#include <tos_mmblk.h>
|
|
#include <tos_mmheap.h>
|
|
#include <tos_tick.h>
|
|
#include <tos_sched.h>
|
|
#include <tos_pm.h>
|
|
#include <tos_tickless.h>
|
|
#include <tos_global.h>
|
|
|
|
#endif /* _TOS_H_ */
|
|
|