-
Notifications
You must be signed in to change notification settings - Fork 0
/
mikroe219.overlay
36 lines (31 loc) · 826 Bytes
/
mikroe219.overlay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Copyright (c) 2023 Achim Kraus CloudCoap.net
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http:https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0 or Apache-2.0
*/
/*
* Usage:
*
* west build -d build_nrf9160dk_nrf9160_ns -b nrf9160dk_nrf9160_ns --pristine -- \
* -DOVERLAY_CONFIG="60min0-prj.conf;mikroe-prj.conf" -DDTC_OVERLAY_FILE="mikroe219.overlay"
*/
#include "mikroe.overlay"
&i2c2 {
ina219: ina219@45 {
compatible = "ti,ina219";
reg = <0x45>;
brng = <0>;
pg = <0>;
sadc = <13>;
badc = <13>;
shunt-milliohm = <010>;
lsb-microamp = <10>;
};
};