mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-28 12:42:00 +00:00
* Start portduino_config refactor * refactor GPIOs to new portduino_config * More portduino_config work * More conversion to portduino_config * Finish portduino_config transition * trunk * yaml output work * Simplify the GPIO config * Trunk
36 lines
731 B
C
36 lines
731 B
C
#pragma once
|
|
|
|
#define ARCH_PORTDUINO 1
|
|
|
|
//
|
|
// set HW_VENDOR
|
|
//
|
|
|
|
#define HW_VENDOR meshtastic_HardwareModel_PORTDUINO
|
|
|
|
#ifndef HAS_BUTTON
|
|
#define HAS_BUTTON 1
|
|
#endif
|
|
#ifndef HAS_WIFI
|
|
#define HAS_WIFI 1
|
|
#endif
|
|
#ifndef HAS_RADIO
|
|
#define HAS_RADIO 1
|
|
#endif
|
|
#ifndef HAS_RTC
|
|
#define HAS_RTC 1
|
|
#endif
|
|
#ifndef HAS_TELEMETRY
|
|
#define HAS_TELEMETRY 1
|
|
#endif
|
|
#ifndef HAS_SENSOR
|
|
#define HAS_SENSOR 1
|
|
#endif
|
|
#ifndef HAS_TRACKBALL
|
|
#define HAS_TRACKBALL 1
|
|
#define TB_DOWN (uint8_t) portduino_config.tbDownPin.pin
|
|
#define TB_UP (uint8_t) portduino_config.tbUpPin.pin
|
|
#define TB_LEFT (uint8_t) portduino_config.tbLeftPin.pin
|
|
#define TB_RIGHT (uint8_t) portduino_config.tbRightPin.pin
|
|
#define TB_PRESS (uint8_t) portduino_config.tbPressPin.pin
|
|
#endif |