From a1890715371cd3e171130d951907f1afb11b08b8 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 1 May 2019 23:20:55 -0700 Subject: [PATCH] results: add i2c results --- include/stratosphere/results.hpp | 1 + include/stratosphere/results/i2c_results.hpp | 26 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/stratosphere/results/i2c_results.hpp diff --git a/include/stratosphere/results.hpp b/include/stratosphere/results.hpp index a2aac9ac..3957e467 100644 --- a/include/stratosphere/results.hpp +++ b/include/stratosphere/results.hpp @@ -23,6 +23,7 @@ #include "results/fatal_results.hpp" #include "results/fs_results.hpp" #include "results/hipc_results.hpp" +#include "results/i2c_results.hpp" #include "results/kernel_results.hpp" #include "results/kvdb_results.hpp" #include "results/loader_results.hpp" diff --git a/include/stratosphere/results/i2c_results.hpp b/include/stratosphere/results/i2c_results.hpp new file mode 100644 index 00000000..3f6d7c34 --- /dev/null +++ b/include/stratosphere/results/i2c_results.hpp @@ -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 . + */ + +#pragma once +#include + +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);