aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pico-sdk/hardware
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-10-25 21:54:31 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-11-14 11:17:52 -0500
commit64ba37c02e3bfa290321713aa4e5a082993ff65e (patch)
tree6d6cd17ed24fdc4703c64a7f2bcfbf288244f1d2 /lib/pico-sdk/hardware
parent06bb49f135ccedcebf7aa01896cba13f0d5d1145 (diff)
downloadkutter-64ba37c02e3bfa290321713aa4e5a082993ff65e.tar.gz
kutter-64ba37c02e3bfa290321713aa4e5a082993ff65e.tar.xz
kutter-64ba37c02e3bfa290321713aa4e5a082993ff65e.zip
lib: Update rp2040_flash to upstream picotool.git v2.0.0
This is in preparation for adding rp2350 flash support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/pico-sdk/hardware')
-rw-r--r--lib/pico-sdk/hardware/platform_defs.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/pico-sdk/hardware/platform_defs.h b/lib/pico-sdk/hardware/platform_defs.h
new file mode 100644
index 00000000..924336a9
--- /dev/null
+++ b/lib/pico-sdk/hardware/platform_defs.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _HARDWARE_PLATFORM_DEFS_H
+#define _HARDWARE_PLATFORM_DEFS_H
+
+#define NUM_CORES 2u
+
+#define NUM_DMA_CHANNELS 12u
+
+#define NUM_GENERIC_TIMERS 1u
+#define NUM_ALARMS 4u
+
+#define NUM_IRQS 32u
+
+#define NUM_SPIN_LOCKS 32u
+
+#define XOSC_HZ 12000000u
+
+#define NUM_SPIN_LOCKS 32u
+
+#define NUM_BANK0_GPIOS 30
+
+#ifndef _u
+#define _u(x) x ## u
+#endif
+
+#endif