mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 23:59:49 -04:00
strat: fix board namespacing for nintendo::nx
This commit is contained in:
parent
a26e8ac54f
commit
30e70e20d8
46 changed files with 57 additions and 57 deletions
|
@ -19,7 +19,7 @@
|
|||
#include "powctl_battery_driver.hpp"
|
||||
#include "powctl_max17050_driver.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
#include "../../../powctl_i_power_control_driver.hpp"
|
||||
#include "powctl_interrupt_event_handler.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
class BatteryDevice : public powctl::impl::IDevice {
|
||||
NON_COPYABLE(BatteryDevice);
|
||||
NON_MOVEABLE(BatteryDevice);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo_nx::BatteryDevice, ::ams::powctl::impl::IDevice);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo::nx::BatteryDevice, ::ams::powctl::impl::IDevice);
|
||||
private:
|
||||
bool use_event_handler;
|
||||
std::optional<BatteryInterruptEventHandler> event_handler;
|
||||
|
@ -43,7 +43,7 @@ namespace ams::powctl::impl::board::nintendo_nx {
|
|||
class BatteryDriver : public IPowerControlDriver {
|
||||
NON_COPYABLE(BatteryDriver);
|
||||
NON_MOVEABLE(BatteryDriver);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo_nx::BatteryDriver, ::ams::powctl::impl::IPowerControlDriver);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo::nx::BatteryDriver, ::ams::powctl::impl::IPowerControlDriver);
|
||||
public:
|
||||
BatteryDriver(bool ev) : IPowerControlDriver(ev) { /* ... */ }
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "powctl_battery_driver.hpp"
|
||||
#include "powctl_charger_driver.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "powctl_interrupt_event_handler.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
void Initialize(bool use_event_handlers);
|
||||
void Finalize();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <stratosphere.hpp>
|
||||
#include "powctl_bq24193_driver.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace bq24193 {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace bq24193 {
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "powctl_charger_driver.hpp"
|
||||
#include "powctl_bq24193_driver.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
#include "../../../powctl_i_power_control_driver.hpp"
|
||||
#include "powctl_interrupt_event_handler.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
class ChargerDevice : public powctl::impl::IDevice {
|
||||
NON_COPYABLE(ChargerDevice);
|
||||
NON_MOVEABLE(ChargerDevice);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo_nx::ChargerDevice, ::ams::powctl::impl::IDevice);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo::nx::ChargerDevice, ::ams::powctl::impl::IDevice);
|
||||
private:
|
||||
gpio::GpioPadSession gpio_pad_session;
|
||||
bool watchdog_timer_enabled;
|
||||
|
@ -54,7 +54,7 @@ namespace ams::powctl::impl::board::nintendo_nx {
|
|||
class ChargerDriver : public IPowerControlDriver {
|
||||
NON_COPYABLE(ChargerDriver);
|
||||
NON_MOVEABLE(ChargerDriver);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo_nx::ChargerDriver, ::ams::powctl::impl::IPowerControlDriver);
|
||||
AMS_DDSF_CASTABLE_TRAITS(ams::powctl::impl::board::nintendo::nx::ChargerDriver, ::ams::powctl::impl::IPowerControlDriver);
|
||||
public:
|
||||
ChargerDriver(bool ev) : IPowerControlDriver(ev) { /* ... */ }
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <stratosphere.hpp>
|
||||
#include "powctl_interrupt_event_handler.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
void ChargerInterruptEventHandler::SignalEvent(IDevice *device) {
|
||||
/* TODO */
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <stratosphere.hpp>
|
||||
#include "../../../powctl_i_power_control_driver.hpp"
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
template<typename Derived>
|
||||
class InterruptEventHandler : public ddsf::IEventHandler {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <arm_neon.h>
|
||||
#endif
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace max17050 {
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::powctl::impl::board::nintendo_nx {
|
||||
namespace ams::powctl::impl::board::nintendo::nx {
|
||||
|
||||
namespace max17050 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue