Files
balance-board/app.overlay
T
pNexus 5492a98687 feat(gml670-v2): 添加工程骨架与构建配置
基于 V1 副本新建 V2 工程,包含 CMakeLists.txt、Kconfig、prj.conf、
app.overlay、README.md 及 ADS1256/GML670 参考数据手册。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-30 17:36:39 +08:00

67 lines
1.5 KiB
Plaintext

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
/*
* nRF5340 DK (App Core) Overlay for ADS1256
* 仅保留 SPI 和 GPIO 定义
*/
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
/* CS 引脚配置 */
cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
ads1256: ads1256@0 {
compatible = "ti,ads1256";
reg = <0>;
spi-max-frequency = <1000000>;
};
};
&pinctrl {
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
<NRF_PSEL(SPIM_MOSI, 1, 13)>,
<NRF_PSEL(SPIM_MISO, 1, 14)>;
};
};
spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
<NRF_PSEL(SPIM_MOSI, 1, 13)>,
<NRF_PSEL(SPIM_MISO, 1, 14)>;
low-power-enable;
};
};
};
/ {
aliases {
ads-cs = &ads_cs_pin;
ads-drdy = &ads_drdy_pin;
ads-reset = &ads_reset_pin;
};
ads1256_control {
compatible = "gpio-keys";
ads_cs_pin: ads_cs {
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
ads_drdy_pin: ads_drdy {
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
ads_reset_pin: ads_reset {
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
};
};
};