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 // pico_cmake_set PICO_PLATFORM=rp2040
13 
14 #ifndef _BOARDS_NET8086_USB_INTERPOSER_H
15 #define _BOARDS_NET8086_USB_INTERPOSER_H
16 
17 // For board detection
18 #define NET8086_USB_INTERPOSER
19 
20 // On some samples, the xosc can take longer to stabilize than is usual
21 #ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER
22 #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
23 #endif
24 
25 //------------- UART -------------//
26 #ifndef PICO_DEFAULT_UART
27 #define PICO_DEFAULT_UART 0
28 #endif
29 
30 #ifndef PICO_DEFAULT_UART_TX_PIN
31 #define PICO_DEFAULT_UART_TX_PIN 0
32 #endif
33 
34 #ifndef PICO_DEFAULT_UART_RX_PIN
35 #define PICO_DEFAULT_UART_RX_PIN 1
36 #endif
37 
38 //------------- LED -------------//
39 #ifndef PICO_DEFAULT_LED_PIN
40 #define PICO_DEFAULT_LED_PIN 7
41 #endif
42 
43 //------------- I2C -------------//
44 #ifndef PICO_DEFAULT_I2C
45 #define PICO_DEFAULT_I2C 1
46 #endif
47 
48 #ifndef PICO_DEFAULT_I2C_SDA_PIN
49 #define PICO_DEFAULT_I2C_SDA_PIN 14
50 #endif
51 
52 #ifndef PICO_DEFAULT_I2C_SCL_PIN
53 #define PICO_DEFAULT_I2C_SCL_PIN 15
54 #endif
55 
56 //------------- FLASH -------------//
57 
58 // Use slower generic flash access
59 #define PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H 1
60 
61 #ifndef PICO_FLASH_SPI_CLKDIV
62 #define PICO_FLASH_SPI_CLKDIV 4
63 #endif
64 
65 // pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
66 #ifndef PICO_FLASH_SIZE_BYTES
67 #define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
68 #endif
69 
70 // All boards have B1 RP2040
71 #ifndef PICO_RP2040_B0_SUPPORTED
72 #define PICO_RP2040_B0_SUPPORTED 0
73 #endif
74 
75 #endif
76