finsh_error.h 447 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2010-03-22 Bernard first version
  9. */
  10. #ifndef __FINSH_ERROR_H__
  11. #define __FINSH_ERROR_H__
  12. #include <finsh.h>
  13. int finsh_error_init(void);
  14. /* get error number */
  15. uint8_t finsh_errno(void);
  16. int finsh_error_set(uint8_t type);
  17. const char* finsh_error_string(uint8_t type);
  18. #endif