Skip to content

Commit b45632b

Browse files
authored
Add 8086 USB Interposer board (#1767)
1 parent 5ec4071 commit b45632b

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
// -----------------------------------------------------
8+
// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLER SO
9+
// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES
10+
// -----------------------------------------------------
11+
12+
#ifndef _BOARDS_NET8086_USB_INTERPOSER_H
13+
#define _BOARDS_NET8086_USB_INTERPOSER_H
14+
15+
// For board detection
16+
#define NET8086_USB_INTERPOSER
17+
18+
// On some samples, the xosc can take longer to stabilize than is usual
19+
#ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER
20+
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
21+
#endif
22+
23+
//------------- UART -------------//
24+
#ifndef PICO_DEFAULT_UART
25+
#define PICO_DEFAULT_UART 0
26+
#endif
27+
28+
#ifndef PICO_DEFAULT_UART_TX_PIN
29+
#define PICO_DEFAULT_UART_TX_PIN 0
30+
#endif
31+
32+
#ifndef PICO_DEFAULT_UART_RX_PIN
33+
#define PICO_DEFAULT_UART_RX_PIN 1
34+
#endif
35+
36+
//------------- LED -------------//
37+
#ifndef PICO_DEFAULT_LED_PIN
38+
#define PICO_DEFAULT_LED_PIN 7
39+
#endif
40+
41+
//------------- I2C -------------//
42+
#ifndef PICO_DEFAULT_I2C
43+
#define PICO_DEFAULT_I2C 1
44+
#endif
45+
46+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
47+
#define PICO_DEFAULT_I2C_SDA_PIN 14
48+
#endif
49+
50+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
51+
#define PICO_DEFAULT_I2C_SCL_PIN 15
52+
#endif
53+
54+
//------------- FLASH -------------//
55+
56+
// Use slower generic flash access
57+
#define PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H 1
58+
59+
#ifndef PICO_FLASH_SPI_CLKDIV
60+
#define PICO_FLASH_SPI_CLKDIV 4
61+
#endif
62+
63+
#ifndef PICO_FLASH_SIZE_BYTES
64+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
65+
#endif
66+
67+
// All boards have B1 RP2040
68+
#ifndef PICO_RP2040_B0_SUPPORTED
69+
#define PICO_RP2040_B0_SUPPORTED 0
70+
#endif
71+
72+
#endif

0 commit comments

Comments
 (0)