mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-20 18:05:11 -04:00
boot: split out gpio, pinmux.
This commit is contained in:
parent
6d1d226842
commit
804e5d49bb
29 changed files with 52 additions and 51 deletions
|
@ -15,9 +15,10 @@
|
|||
*/
|
||||
|
||||
#include "boot_fan_enable.hpp"
|
||||
#include "boot_gpio_utils.hpp"
|
||||
#include "boot_spl_utils.hpp"
|
||||
|
||||
#include "gpio/gpio_utils.hpp"
|
||||
|
||||
namespace sts::boot {
|
||||
|
||||
namespace {
|
||||
|
@ -28,7 +29,7 @@ namespace sts::boot {
|
|||
}
|
||||
|
||||
void SetFanEnabled() {
|
||||
if (GetHardwareType() == spl::HardwareType::Copper) {
|
||||
if (spl::GetHardwareType() == spl::HardwareType::Copper) {
|
||||
gpio::Configure(GpioPadName_FanEnable);
|
||||
gpio::SetDirection(GpioPadName_FanEnable, GpioDirection_Output);
|
||||
gpio::SetValue(GpioPadName_FanEnable, GpioValue_High);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue