1 /* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _PICO_ERROR_H 8 #define _PICO_ERROR_H 9 10 #ifndef __ASSEMBLER__ 11 12 /*! 13 * \brief Common return codes from pico_sdk methods that return a status 14 * \ingroup pico_base 15 */ 16 enum pico_error_codes { 17 PICO_OK = 0, 18 PICO_ERROR_NONE = 0, 19 PICO_ERROR_TIMEOUT = -1, 20 PICO_ERROR_GENERIC = -2, 21 PICO_ERROR_NO_DATA = -3, 22 PICO_ERROR_NOT_PERMITTED = -4, 23 PICO_ERROR_INVALID_ARG = -5, 24 PICO_ERROR_IO = -6, 25 PICO_ERROR_BADAUTH = -7, 26 PICO_ERROR_CONNECT_FAILED = -8, 27 }; 28 29 #endif // !__ASSEMBLER__ 30 31 #endif