Bridle API
4.4.99
A Zephyr based application framework
Loading...
Searching...
No Matches
grove.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2026 TiaC Systems
3
* SPDX-License-Identifier: Apache-2.0
4
*
5
* Grove position indices — THE single source of truth shared by: board
6
* socket gpio-map/pwm-map/io-channel-map child pins, shield plug
7
* references, binding docs. (Pattern: include/dt-bindings/connector/mikrobus.h;
8
* no upstream dt-bindings header exists for Grove position indices either,
9
* so bridle is the one true source for its own typed socket clones.
10
* rigc reads this header directly, not a copy of its own.)
11
*
12
* A Grove connector is 4 pins: two signal + VCC + GND. The two signal pins
13
* are the claimable positions (they double as SCL/SDA on an I2C Grove
14
* socket, D(n)/D(n+1) on a digital one, or PWM/ADC on a dual-function one —
15
* the dual-function copper is discovered at the board binding, not declared
16
* here).
17
*/
18
#ifndef DT_BINDINGS_CONNECTOR_GROVE_H_
19
#define DT_BINDINGS_CONNECTOR_GROVE_H_
20
21
/* pin 1 (yellow) = SIG0, pin 2 (white) = SIG1, then VCC, GND */
22
#define GROVE_SIG0 0
23
#define GROVE_SIG1 1
24
#define GROVE_VCC 2
25
#define GROVE_GND 3
26
27
#endif
include
dt-bindings
connector
grove.h
Generated on
for Bridle API by
1.16.1