Skip to content

Commit 205983e

Browse files
Adds Degz Mizu board (#904)
1 parent 1e7098c commit 205983e

File tree

6 files changed

+692
-0
lines changed

6 files changed

+692
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ See https://arduino-pico.readthedocs.io/en/latest/ along with the examples for m
2222
* Arduino Nano RP2040 Connect
2323
* Cytron Maker Pi RP2040
2424
* Cytron Maker Nano RP2040
25+
* Degz Mizu
2526
* DeRuiLab FlyBoard2040 Core
2627
* DFRobot Beetle RP2040
2728
* ElectronicCats Hunter Cat NFC

boards.txt

Lines changed: 592 additions & 0 deletions
Large diffs are not rendered by default.

package/package_pico_index.template.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
{
5454
"name": "Cytron Maker Pi RP2040"
5555
},
56+
{
57+
"name": "Degz Mizu"
58+
},
5659
{
5760
"name": "DeRuiLab FlyBoard2040Core"
5861
},

tools/json/degz_mizu.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"earlephilhower": {
5+
"boot2_source": "boot2_generic_03h_4_padded_checksum.S",
6+
"usb_vid": "0x2E8A",
7+
"usb_pid": "0x000A"
8+
}
9+
},
10+
"core": "earlephilhower",
11+
"cpu": "cortex-m0plus",
12+
"extra_flags": "-D ARDUINO_DEGZ_MIZU -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250",
13+
"f_cpu": "133000000L",
14+
"hwids": [
15+
[
16+
"0x2E8A",
17+
"0x00C0"
18+
],
19+
[
20+
"0x2E8A",
21+
"0x000A"
22+
]
23+
],
24+
"mcu": "rp2040",
25+
"variant": "degz_mizu"
26+
},
27+
"debug": {
28+
"jlink_device": "RP2040_M0_0",
29+
"openocd_target": "rp2040.cfg",
30+
"svd_path": "rp2040.svd"
31+
},
32+
"frameworks": [
33+
"arduino"
34+
],
35+
"name": "Mizu",
36+
"upload": {
37+
"maximum_ram_size": 270336,
38+
"maximum_size": 8388608,
39+
"require_upload_port": true,
40+
"native_usb": true,
41+
"use_1200bps_touch": true,
42+
"wait_for_upload_port": false,
43+
"protocol": "picotool",
44+
"protocols": [
45+
"cmsis-dap",
46+
"jlink",
47+
"raspberrypi-swd",
48+
"picotool",
49+
"picoprobe"
50+
]
51+
},
52+
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
53+
"vendor": "Degz"
54+
}

tools/makeboards.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
323323
MakeBoard("cytron_maker_nano_rp2040", "Cytron", "Maker Nano RP2040", "0x2e8a", "0x100f", 250, "CYTRON_MAKER_NANO_RP2040", 2, "boot2_w25q080_2_padded_checksum")
324324
MakeBoard("cytron_maker_pi_rp2040", "Cytron", "Maker Pi RP2040", "0x2e8a", "0x1000", 250, "CYTRON_MAKER_PI_RP2040", 2, "boot2_w25q080_2_padded_checksum")
325325

326+
# Degz
327+
MakeBoard("degz_mizu", "Degz", "Mizu", "0x2e8a", "0x000a", 250, "DEGZ_MIZU", 8, "boot2_generic_03h_4_padded_checksum")
328+
326329
# DeRuiLab
327330
MakeBoard("flyboard2040_core", "DeRuiLab", "FlyBoard2040Core", "0x2e8a", "0x008a", 500, "FLYBOARD2040_CORE", 4, "boot2_generic_03h_4_padded_checksum")
328331

variants/degz_mizu/pins_arduino.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#pragma once
2+
3+
// Pin definitions taken from:
4+
// https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
5+
6+
7+
// LEDs
8+
#define PIN_LED (25u)
9+
10+
// Serial
11+
#define PIN_SERIAL1_TX (0u)
12+
#define PIN_SERIAL1_RX (1u)
13+
14+
#define PIN_SERIAL2_TX (8u)
15+
#define PIN_SERIAL2_RX (9u)
16+
17+
// SPI
18+
#define PIN_SPI0_MISO (16u)
19+
#define PIN_SPI0_MOSI (7u)
20+
#define PIN_SPI0_SCK (6u)
21+
#define PIN_SPI0_SS (17u)
22+
23+
#define PIN_SPI1_MISO (12u)
24+
#define PIN_SPI1_MOSI (11u)
25+
#define PIN_SPI1_SCK (10u)
26+
#define PIN_SPI1_SS (13u)
27+
28+
// Wire
29+
#define PIN_WIRE0_SDA (4u)
30+
#define PIN_WIRE0_SCL (5u)
31+
32+
#define PIN_WIRE1_SDA (2u)
33+
#define PIN_WIRE1_SCL (3u)
34+
35+
#define SERIAL_HOWMANY (3u)
36+
#define SPI_HOWMANY (2u)
37+
#define WIRE_HOWMANY (2u)
38+
39+
#include "../generic/common.h"

0 commit comments

Comments
 (0)