aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pico-sdk/hardware/platform_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pico-sdk/hardware/platform_defs.h')
-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