Generalized-Core-Counter 3.20
Particle-based generalized core counter firmware
Loading...
Searching...
No Matches
device_pinout.h File Reference

Pinout definitions for the carrier board and sensors. More...

#include "Particle.h"

Go to the source code of this file.

Functions

bool initializePinModes ()
bool initializePowerCfg ()

Variables

const pin_t BLUE_LED
const pin_t BUTTON_PIN
const pin_t disableModule
const pin_t intPin
const pin_t ledPower
const pin_t TMP36_SENSE_PIN
const pin_t WAKEUP_PIN

Detailed Description

Pinout definitions for the carrier board and sensors.

Author
Chip McClelland

Logical pin names used by the firmware are defined here so the rest of the code does not depend on specific pin numbers. This makes it easy to swap sensors or carrier revisions by changing only this file.

Carrier board header (PIR sensor on carrier)

Left Side (16 pins) !RESET - 3.3V - !MODE - GND - D19 - A0 - D18 - A1 - D17 - A2 - D16 - A3 - D15 - A4 - TMP32 temp sensor on carrier D14 - A5 / SPI SS - D13 - S2 - SCK - SPI Clock - intPin (PIR interrupt) D12 - S0 - MOSI - SPI MOSI - disableModule (enable line to sensor) D11 - S1 - MISO - SPI MISO - ledPower (indicator LED power) D10 - UART RX - D9 - UART TX -

Right Side (12 pins) Li+ ENABLE VUSB - D8 - wakeUpPin (watchdog wake) D7 - blueLED (status LED) D6 - deep-sleep enable (to EN) D5 - watchdog DONE pin D4 - userSwitch (front-panel button) D3 - D2 - D1 - SCL - I2C Clock - FRAM / RTC / I2C bus D0 - SDA - I2C Data - FRAM / RTC / I2C bus

Definition in file device_pinout.h.

Function Documentation

◆ initializePinModes()

bool initializePinModes ( )

Definition at line 60 of file device_pinout.cpp.

References BLUE_LED, BUTTON_PIN, and WAKEUP_PIN.

Referenced by setup().

◆ initializePowerCfg()

bool initializePowerCfg ( )

Definition at line 70 of file device_pinout.cpp.

Variable Documentation

◆ BLUE_LED

◆ BUTTON_PIN

const pin_t BUTTON_PIN
extern

◆ disableModule

const pin_t disableModule
extern

◆ intPin

const pin_t intPin
extern

◆ ledPower

const pin_t ledPower
extern

◆ TMP36_SENSE_PIN

const pin_t TMP36_SENSE_PIN
extern

Definition at line 21 of file device_pinout.cpp.

Referenced by SensorManager::batteryState().

◆ WAKEUP_PIN

const pin_t WAKEUP_PIN
extern

Definition at line 28 of file device_pinout.cpp.

Referenced by initializePinModes().