From d3ff7857e7e70b702f76c276577cc6e218bea126 Mon Sep 17 00:00:00 2001 From: souldbminersmwc Date: Wed, 21 Jan 2026 18:29:59 -0500 Subject: [PATCH] sysclk: add licensed and link libultrahand as submodules --- .gitmodules | 5 +++++ README.md | 2 +- Source/sys-clk/common/include/battery.h | 20 +++++++++++++------ Source/sys-clk/common/include/cpp_util.hpp | 17 ++++++++++++++++ .../common/include/display_refresh_rate.h | 17 ++++++++++++++++ Source/sys-clk/common/include/notification.h | 17 ++++++++++++++++ Source/sys-clk/common/include/pcv_types.h | 18 +++++++++++++++++ Source/sys-clk/common/include/pwm.h | 17 ++++++++++++++++ Source/sys-clk/common/include/rgltr.h | 17 ++++++++++++++++ .../sys-clk/common/include/rgltr_services.h | 17 ++++++++++++++++ .../sys-clk/common/include/sysclk/psm_ext.h | 17 ++++++++++++++++ .../common/src/display_refresh_rate.cpp | 17 ++++++++++++++++ Source/sys-clk/common/src/i2c.cpp | 17 +++++++++++++--- Source/sys-clk/common/src/psm_ext.c | 17 ++++++++++++++++ Source/sys-clk/common/src/pwm.c | 17 ++++++++++++++++ Source/sys-clk/common/src/rgltr_services.cpp | 17 ++++++++++++++++ Source/sys-clk/overlay/src/ui/gui/cat.h | 2 +- 17 files changed, 240 insertions(+), 11 deletions(-) diff --git a/.gitmodules b/.gitmodules index e88314ee..1b61a1f1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,8 @@ [submodule "Source/Horizon-OC-Monitor/lib/libultrahand"] path = Source/Horizon-OC-Monitor/lib/libultrahand url = https://github.com/ppkantorski/libultrahand + +[submodule "Source/sys-clk/overlay/lib/libultrahand"] + path = Source/sys-clk/overlay/lib/libultrahand + url = https://github.com/ppkantorski/libultrahand + diff --git a/README.md b/README.md index 9936fae4..36f6bf9b 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Refer to COMPILATION.md * **hanai3bi (meha)** – Switch OC Suite, EOS, sys-clk-eos * **NaGaa95** – L4T-OC-kernel * **B3711 (halop)** – EOS -* **sys-clk team (m4xw, p-sam, nautalis)** – sys-clk +* **sys-clk team (m4xw, p-sam, natinusala)** – sys-clk * **b0rd2death** – Ultrahand sys-clk & Status Monitor fork * **MasaGratoR and ZachyCatGames** - General help * **MasaGratoR** - Status Monitor & Display Refresh Rate Driver diff --git a/Source/sys-clk/common/include/battery.h b/Source/sys-clk/common/include/battery.h index 0abe01a2..bff2f5b9 100644 --- a/Source/sys-clk/common/include/battery.h +++ b/Source/sys-clk/common/include/battery.h @@ -1,12 +1,20 @@ /* - * Battery Info Driver for Nintendo Switch - * Single-header library for accessing battery information + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * 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 . * - * Usage: - * #define BATTERY_INFO_IMPLEMENTATION - * #include "battery_info.h" */ - + #pragma once #include #include diff --git a/Source/sys-clk/common/include/cpp_util.hpp b/Source/sys-clk/common/include/cpp_util.hpp index 34e5621f..2e367ede 100644 --- a/Source/sys-clk/common/include/cpp_util.hpp +++ b/Source/sys-clk/common/include/cpp_util.hpp @@ -1,3 +1,20 @@ +/* + * Copyright (c) meha3945 (hanai3bi) + * + * 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 diff --git a/Source/sys-clk/common/include/display_refresh_rate.h b/Source/sys-clk/common/include/display_refresh_rate.h index 4ccacb0d..9ad9d054 100644 --- a/Source/sys-clk/common/include/display_refresh_rate.h +++ b/Source/sys-clk/common/include/display_refresh_rate.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) Souldbminer, based on reasearch by MasaGratoR and Cooler3D + * + * 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 . + * + */ + #ifndef DISPLAY_REFRESH_RATE_H #define DISPLAY_REFRESH_RATE_H diff --git a/Source/sys-clk/common/include/notification.h b/Source/sys-clk/common/include/notification.h index 479fde6c..77c595ca 100644 --- a/Source/sys-clk/common/include/notification.h +++ b/Source/sys-clk/common/include/notification.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) ppkantorski (bord2death) + * + * 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 diff --git a/Source/sys-clk/common/include/pcv_types.h b/Source/sys-clk/common/include/pcv_types.h index 4258cb9d..03899f35 100644 --- a/Source/sys-clk/common/include/pcv_types.h +++ b/Source/sys-clk/common/include/pcv_types.h @@ -1,4 +1,22 @@ +/* + * Copyright (c) ppkantorski (bord2death) + * + * 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 + /* * SDx actual min is 625 mV. Multipliers 0/1 reserved. * SD0 max is 1400 mV diff --git a/Source/sys-clk/common/include/pwm.h b/Source/sys-clk/common/include/pwm.h index aa443e7d..ccc24e02 100644 --- a/Source/sys-clk/common/include/pwm.h +++ b/Source/sys-clk/common/include/pwm.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) MasaGratoR + * + * 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 diff --git a/Source/sys-clk/common/include/rgltr.h b/Source/sys-clk/common/include/rgltr.h index dd57f4c5..30adf9c3 100644 --- a/Source/sys-clk/common/include/rgltr.h +++ b/Source/sys-clk/common/include/rgltr.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) ppkantorski (bord2death) + * + * 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 #include "pcv_types.h" diff --git a/Source/sys-clk/common/include/rgltr_services.h b/Source/sys-clk/common/include/rgltr_services.h index 963b781e..2010cc33 100644 --- a/Source/sys-clk/common/include/rgltr_services.h +++ b/Source/sys-clk/common/include/rgltr_services.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) ppkantorski (bord2death) + * + * 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 // for Service, Result, hosversionBefore(), smGetService(), serviceClose(), etc. diff --git a/Source/sys-clk/common/include/sysclk/psm_ext.h b/Source/sys-clk/common/include/sysclk/psm_ext.h index 7065efbc..8ba88c8a 100644 --- a/Source/sys-clk/common/include/sysclk/psm_ext.h +++ b/Source/sys-clk/common/include/sysclk/psm_ext.h @@ -1,3 +1,20 @@ +/* + * Copyright (c) KazushiMe + * + * 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 diff --git a/Source/sys-clk/common/src/display_refresh_rate.cpp b/Source/sys-clk/common/src/display_refresh_rate.cpp index 8a853d0a..57a981ca 100644 --- a/Source/sys-clk/common/src/display_refresh_rate.cpp +++ b/Source/sys-clk/common/src/display_refresh_rate.cpp @@ -1,3 +1,20 @@ +/* + * Copyright (c) Souldbminer, based on reasearch by MasaGratoR and Cooler3D + * + * 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 . + * + */ + #include "display_refresh_rate.h" #include #include diff --git a/Source/sys-clk/common/src/i2c.cpp b/Source/sys-clk/common/src/i2c.cpp index 6100afd0..3760efeb 100644 --- a/Source/sys-clk/common/src/i2c.cpp +++ b/Source/sys-clk/common/src/i2c.cpp @@ -1,8 +1,19 @@ /* - * Copyright (c) 2023 KazushiMe - * Licensed under the GPLv2 + * Copyright (c) KazushiMe + * + * 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 . + * */ - #include "i2c.h" Result I2cSet_U8(I2cDevice dev, u8 reg, u8 val) { diff --git a/Source/sys-clk/common/src/psm_ext.c b/Source/sys-clk/common/src/psm_ext.c index c7c8a6dd..9bb1ae0c 100644 --- a/Source/sys-clk/common/src/psm_ext.c +++ b/Source/sys-clk/common/src/psm_ext.c @@ -1,3 +1,20 @@ +/* + * Copyright (c) KazushiMe + * + * 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 . + * + */ + #include const char* PsmPowerRoleToStr(PsmPowerRole role) { diff --git a/Source/sys-clk/common/src/pwm.c b/Source/sys-clk/common/src/pwm.c index cae9c6f5..96475997 100644 --- a/Source/sys-clk/common/src/pwm.c +++ b/Source/sys-clk/common/src/pwm.c @@ -1,3 +1,20 @@ +/* + * Copyright (c) MasaGratoR + * + * 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 . + * + */ + #define NX_SERVICE_ASSUME_NON_DOMAIN #include #include "service_guard.h" diff --git a/Source/sys-clk/common/src/rgltr_services.cpp b/Source/sys-clk/common/src/rgltr_services.cpp index b104db18..142e6b5b 100644 --- a/Source/sys-clk/common/src/rgltr_services.cpp +++ b/Source/sys-clk/common/src/rgltr_services.cpp @@ -1,3 +1,20 @@ +/* + * Copyright (c) ppkantorski (bord2death) + * + * 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 . + * + */ + #include #include "rgltr.h" #include "rgltr_services.h" // for extern Service g_rgltrSrv, etc. diff --git a/Source/sys-clk/overlay/src/ui/gui/cat.h b/Source/sys-clk/overlay/src/ui/gui/cat.h index 0da7ef18..a8bb88c8 100644 --- a/Source/sys-clk/overlay/src/ui/gui/cat.h +++ b/Source/sys-clk/overlay/src/ui/gui/cat.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Lightos + * Copyright (c) Lightos and Souldbminer * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License,