Skip to content

Commit e49b23f

Browse files
committed
Update pico-sdk to v1.3.0
1 parent 6bef0d6 commit e49b23f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

include/hardware/platform_defs.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#ifndef _HARDWARE_PLATFORM_DEFS_H
8+
#define _HARDWARE_PLATFORM_DEFS_H
9+
10+
// This header is included from C and assembler - intended mostly for #defines; guard other stuff with #ifdef __ASSEMBLER__
11+
12+
#ifndef _u
13+
#ifdef __ASSEMBLER__
14+
#define _u(x) x
15+
#else
16+
#define _u(x) x ## u
17+
#endif
18+
#endif
19+
20+
#define NUM_CORES _u(2)
21+
#define NUM_DMA_CHANNELS _u(12)
22+
#define NUM_DMA_TIMERS _u(4)
23+
#define NUM_IRQS _u(32)
24+
#define NUM_PIOS _u(2)
25+
#define NUM_PIO_STATE_MACHINES _u(4)
26+
#define NUM_PWM_SLICES _u(8)
27+
#define NUM_SPIN_LOCKS _u(32)
28+
#define NUM_UARTS _u(2)
29+
#define NUM_I2CS _u(2)
30+
#define NUM_SPIS _u(2)
31+
#define NUM_TIMERS _u(4)
32+
#define NUM_ADC_CHANNELS _u(5)
33+
34+
#define NUM_BANK0_GPIOS _u(30)
35+
#define NUM_QSPI_GPIOS _u(6)
36+
37+
#define PIO_INSTRUCTION_COUNT _u(32)
38+
39+
// PICO_CONFIG: XOSC_MHZ, The crystal oscillator frequency in Mhz, type=int, default=12, advanced=true, group=hardware_base
40+
#ifndef XOSC_MHZ
41+
#define XOSC_MHZ _u(12)
42+
#endif
43+
44+
#endif
45+

0 commit comments

Comments
 (0)