results: add i2c results

This commit is contained in:
Michael Scire 2019-05-01 23:20:55 -07:00
parent 9dfe7709d9
commit a189071537
2 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "results/fatal_results.hpp" #include "results/fatal_results.hpp"
#include "results/fs_results.hpp" #include "results/fs_results.hpp"
#include "results/hipc_results.hpp" #include "results/hipc_results.hpp"
#include "results/i2c_results.hpp"
#include "results/kernel_results.hpp" #include "results/kernel_results.hpp"
#include "results/kvdb_results.hpp" #include "results/kvdb_results.hpp"
#include "results/loader_results.hpp" #include "results/loader_results.hpp"

View File

@ -0,0 +1,26 @@
/*
* Copyright (c) 2018-2019 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <switch.h>
static constexpr u32 Module_I2c = 101;
static constexpr Result ResultI2cNoAck = MAKERESULT(Module_I2c, 1);
static constexpr Result ResultI2cBusBusy = MAKERESULT(Module_I2c, 2);
static constexpr Result ResultI2cFullCommandList = MAKERESULT(Module_I2c, 3);
static constexpr Result ResultI2cTimedOut = MAKERESULT(Module_I2c, 4);
static constexpr Result ResultI2cUnknownDevice = MAKERESULT(Module_I2c, 5);