Skip to content

Commit

Permalink
samples: Add board support
Browse files Browse the repository at this point in the history
For esp32s3 DevKitC, via dts overlay.

Signed-off-by: Vinicius Miguel <vmiguel1@gmail.com>
  • Loading branch information
viniciusmiguel committed Sep 18, 2024
1 parent 6f9d0f8 commit 41e9445
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions samples/mf4005_shell/boards/esp32s3_devkitc_procpu.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 Vinicius Miguel
*
* SPDX-License-Identifier: Apache-2.0
*/


&twai {
bus-speed = <1000000>;
status = "okay";

#address-cells = <1>;
#size-cells = <0>;
mf4005_motor0: mf4005_motor@141 {
compatible = "lkm,mf4005";
reg = <0x141>;
max-current-ma = <240>;
encoder-resolution-bits = <16>;
max-speed-dps = <12000>;
status = "okay";
};

mf4005_motor1: mf4005_motor@142 {
compatible = "lkm,mf4005";
reg = <0x142>;
max-current-ma = <240>;
encoder-resolution-bits = <16>;
max-speed-dps = <12000>;
status = "okay";
};
};

0 comments on commit 41e9445

Please sign in to comment.