2010-03-22 07:49:57 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2010-03-22 07:49:57 +08:00
|
|
|
*
|
2018-10-14 19:28:18 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2010-03-22 07:49:57 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2010-03-22 Bernard first version
|
|
|
|
*/
|
2009-07-03 06:48:23 +08:00
|
|
|
#ifndef __FINSH_ERROR_H__
|
|
|
|
#define __FINSH_ERROR_H__
|
|
|
|
|
|
|
|
#include <finsh.h>
|
|
|
|
|
|
|
|
int finsh_error_init(void);
|
|
|
|
|
|
|
|
/* get error number */
|
2017-10-10 14:27:34 +08:00
|
|
|
uint8_t finsh_errno(void);
|
2009-07-03 06:48:23 +08:00
|
|
|
|
2017-10-10 14:27:34 +08:00
|
|
|
int finsh_error_set(uint8_t type);
|
|
|
|
const char* finsh_error_string(uint8_t type);
|
2009-07-03 06:48:23 +08:00
|
|
|
|
|
|
|
#endif
|