/**************************************************************************//**
 * @item     CosyOS-III Kernel
 * @file     os_stack.h
 * @brief    main stack and task stack check
 * @author   迟凯峰
 * @version  v3.0.0
 * @date     2026.07.21
 ******************************************************************************/

#ifndef __OS_STACK_H
#define __OS_STACK_H

#include "os_redef.h"

#if   defined ( __C51__ )
typedef s_u8_t  idata *STACK_ADDR_T;
typedef s_u8_t  STACK_SIZE_T;

#elif defined ( __C251__ )
typedef s_u8_t  edata *STACK_ADDR_T;
typedef s_u16_t STACK_SIZE_T;

#else
typedef s_u8_t *STACK_ADDR_T;
typedef s_u32_t STACK_SIZE_T;
#endif


        void s_stack_check_init(STACK_ADDR_T addr, STACK_SIZE_T size);
STACK_SIZE_T s_stack_check     (STACK_ADDR_T addr, STACK_SIZE_T size);


#endif
