summaryrefslogtreecommitdiff
path: root/platforms/chibios/bootloaders/custom.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-02-03 19:22:49 +1100
committerGitHub <noreply@github.com>2022-02-03 19:22:49 +1100
commit0be2eaf1745e42fc5ebf19656cef40708ca19b3c (patch)
tree2080f028442672f6aa45780596eb2eb8b64212df /platforms/chibios/bootloaders/custom.c
parent0d7ff026b1cabc6512f218b3d073832428b3942d (diff)
Create a build error if no bootloader is specified. (#16181)
* Create a build error if no bootloader is specified. * Update builddefs/bootloader.mk Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'platforms/chibios/bootloaders/custom.c')
-rw-r--r--platforms/chibios/bootloaders/custom.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/platforms/chibios/bootloaders/custom.c b/platforms/chibios/bootloaders/custom.c
new file mode 100644
index 0000000000..bba9fc4637
--- /dev/null
+++ b/platforms/chibios/bootloaders/custom.c
@@ -0,0 +1,21 @@
+/* Copyright 2021 QMK
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that 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 <http://www.gnu.org/licenses/>.
+ */
+
+#include "bootloader.h"
+
+__attribute__((weak)) void bootloader_jump(void) {}
+
+__attribute__((weak)) void enter_bootloader_mode_if_requested(void) {}