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