Skip to content

Commit 0bdd463

Browse files
authored
Add DatanoiseTV DSP Board. (#866)
1 parent 7daa20c commit 0bdd463

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright (c) 2022 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+
//------------------------------------------------------------------------------------------
13+
// Board definition for the DatanoiseTV RP2040 DSP Board
14+
//
15+
// This header may be included by other board headers as "boards/datanoisetv_rp2040_dsp.h"
16+
17+
#ifndef _BOARDS_DATANOISETV_RP2040_DSP_H
18+
#define _BOARDS_DATANOISETV_RP2040_DSP_H
19+
20+
// For board detection
21+
#define DATANOISETV_RP2040_DSP
22+
23+
// --- I2C ---
24+
#ifndef PICO_DEFAULT_I2C
25+
#define PICO_DEFAULT_I2C 0
26+
#endif
27+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
28+
#define PICO_DEFAULT_I2C_SDA_PIN 24
29+
#endif
30+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
31+
#define PICO_DEFAULT_I2C_SCL_PIN 25
32+
#endif
33+
34+
// -- FLASH --
35+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
36+
37+
#ifndef PICO_FLASH_SPI_CLKDIV
38+
#define PICO_FLASH_SPI_CLKDIV 2
39+
#endif
40+
41+
#ifndef PICO_FLASH_SIZE_BYTES
42+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
43+
#endif
44+
45+
#ifndef PICO_RP2040_B0_SUPPORTED
46+
#define PICO_RP2040_B0_SUPPORTED 0
47+
#endif
48+
49+
50+
// --- I2S ---
51+
#ifndef PICO_AUDIO_I2S_DATA_PIN
52+
#define PICO_AUDIO_I2S_DATA_PIN 16
53+
#endif
54+
#ifndef PICO_AUDIO_I2S_CLOCK_PIN_BASE
55+
#define PICO_AUDIO_I2S_CLOCK_PIN_BASE 17
56+
#endif
57+
58+
#include "boards/pico.h"
59+
60+
#endif

0 commit comments

Comments
 (0)