summaryrefslogtreecommitdiff
path: root/components/finsh/finsh_error.h
blob: 614e02a350a7621929a08dd797a37960cd5740ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2010-03-22     Bernard      first version
 */
#ifndef __FINSH_ERROR_H__
#define __FINSH_ERROR_H__

#include <finsh.h>

int finsh_error_init(void);

/* get error number */
uint8_t finsh_errno(void);

int finsh_error_set(uint8_t type);
const char* finsh_error_string(uint8_t type);

#endif