Skip to content

Commit 00a530f

Browse files
committed
Add rpi pico overlay file
Add rpi pico overlay file to the mtp sample
1 parent c164410 commit 00a530f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2024 Kelly Lord
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
storage_partition: partition@100000 {
14+
label = "storage";
15+
reg = <0x100000 DT_SIZE_M(1)>;
16+
};
17+
};
18+
};
19+
20+
/ {
21+
fstab {
22+
compatible = "zephyr,fstab";
23+
lfs1: lfs1 {
24+
compatible = "zephyr,fstab,littlefs";
25+
read-size = <32>;
26+
prog-size = <32>;
27+
cache-size = <256>;
28+
lookahead-size = <64>;
29+
block-cycles = <512>;
30+
partition = <&storage_partition>;
31+
mount-point = "/lfs1";
32+
automount;
33+
mtp-enabled;
34+
};
35+
};
36+
};

0 commit comments

Comments
 (0)