mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
boot: fix trailing whitespace
This commit is contained in:
parent
6ae6c80c25
commit
967fa456ba
11 changed files with 18 additions and 18 deletions
|
@ -13,7 +13,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "boot_functions.hpp"
|
||||
|
||||
static constexpr u32 Sdmmc3VoltageBit = (1 << 13); /* SDMMC3 */
|
||||
|
|
|
@ -81,7 +81,7 @@ static constexpr u32 GpioMap[] = {
|
|||
0x00000058, /* Port L, Pin 0 */
|
||||
0x0000003E, /* Port H, Pin 6 */
|
||||
0x00000026, /* Port E, Pin 6 */
|
||||
|
||||
|
||||
/* Copper only */
|
||||
GpioInvalid, /* Invalid */
|
||||
0x00000033, /* Port G, Pin 3 */
|
||||
|
@ -99,11 +99,11 @@ static constexpr u32 GpioMap[] = {
|
|||
0x00000012, /* Port C, Pin 2 */
|
||||
0x00000042, /* Port I, Pin 2 */
|
||||
0x000000E6, /* Port CC, Pin 6 */
|
||||
|
||||
|
||||
/* 2.0.0+ Copper only */
|
||||
0x000000AC, /* Port V, Pin 4 */
|
||||
0x000000E1, /* Port CC, Pin 1 */
|
||||
|
||||
|
||||
/* 5.0.0+ Copper only (unused) */
|
||||
0x00000056, /* Port K, Pin 6 */
|
||||
};
|
||||
|
|
|
@ -191,7 +191,7 @@ static constexpr PinmuxDefinition PinmuxMap[] = {
|
|||
{0x00003288, 0x72FF, 0x01}, /* GpioPz3 */
|
||||
{0x0000328C, 0x72FF, 0x01}, /* GpioPz4 */
|
||||
{0x00003290, 0x72FF, 0x01}, /* GpioPz5 */
|
||||
|
||||
|
||||
/* 5.0.0+ only */
|
||||
{0x00003294, 0x1F2FF, 0x02}, /* Sdmmc2Dat0 */
|
||||
{0x00003298, 0x1F2FF, 0x02}, /* Sdmmc2Dat1 */
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "boot_functions.hpp"
|
||||
|
||||
static constexpr u32 SmcFunctionId_AtmosphereReadWriteRegister = 0xF0000002;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "boot_functions.hpp"
|
||||
#include "updater/updater_api.hpp"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "boot_functions.hpp"
|
||||
|
||||
HardwareType Boot::GetHardwareType() {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* 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>
|
||||
#include <stratosphere.hpp>
|
||||
|
|
|
@ -38,7 +38,7 @@ Result I2cCommandListFormatter::EnqueueSendCommand(I2cTransactionOption option,
|
|||
this->cmd_list[this->cur_index] |= ((option & I2cTransactionOption_Start) != 0) << 6;
|
||||
this->cmd_list[this->cur_index] |= ((option & I2cTransactionOption_Stop) != 0) << 7;
|
||||
this->cur_index++;
|
||||
|
||||
|
||||
this->cmd_list[this->cur_index++] = size;
|
||||
|
||||
const u8 *src_u8 = reinterpret_cast<const u8 *>(src);
|
||||
|
@ -51,12 +51,12 @@ Result I2cCommandListFormatter::EnqueueSendCommand(I2cTransactionOption option,
|
|||
Result I2cCommandListFormatter::EnqueueReceiveCommand(I2cTransactionOption option, size_t size) {
|
||||
Result rc = this->CanEnqueue(ReceiveCommandSize);
|
||||
if (R_FAILED(rc)) { return rc; }
|
||||
|
||||
|
||||
this->cmd_list[this->cur_index] = I2cCommand_Receive;
|
||||
this->cmd_list[this->cur_index] |= ((option & I2cTransactionOption_Start) != 0) << 6;
|
||||
this->cmd_list[this->cur_index] |= ((option & I2cTransactionOption_Stop) != 0) << 7;
|
||||
this->cur_index++;
|
||||
|
||||
|
||||
this->cmd_list[this->cur_index++] = size;
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
@ -64,11 +64,11 @@ Result I2cCommandListFormatter::EnqueueReceiveCommand(I2cTransactionOption optio
|
|||
Result I2cCommandListFormatter::EnqueueSleepCommand(size_t us) {
|
||||
Result rc = this->CanEnqueue(SleepCommandSize);
|
||||
if (R_FAILED(rc)) { return rc; }
|
||||
|
||||
|
||||
this->cmd_list[this->cur_index] = I2cCommand_SubCommand;
|
||||
this->cmd_list[this->cur_index] |= I2cSubCommand_Sleep << 2;
|
||||
this->cur_index++;
|
||||
|
||||
|
||||
this->cmd_list[this->cur_index++] = us;
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
|
|
@ -39,14 +39,14 @@ class I2cCommandListFormatter {
|
|||
~I2cCommandListFormatter() {
|
||||
this->cmd_list = nullptr;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
Result CanEnqueue(size_t size) const;
|
||||
public:
|
||||
size_t GetCurrentSize() const {
|
||||
return this->cur_index;
|
||||
}
|
||||
|
||||
|
||||
Result EnqueueSendCommand(I2cTransactionOption option, const void *src, size_t size);
|
||||
Result EnqueueReceiveCommand(I2cTransactionOption option, size_t size);
|
||||
Result EnqueueSleepCommand(size_t us);
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include <switch.h>
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* 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>
|
||||
#include <stratosphere.hpp>
|
||||
|
|
Loading…
Reference in a new issue