|
Generalized-Core-Counter 3.20
Particle-based generalized core counter firmware
|
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 |
Pinout definitions for the carrier board and sensors.
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.
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.
| bool initializePinModes | ( | ) |
Definition at line 60 of file device_pinout.cpp.
References BLUE_LED, BUTTON_PIN, and WAKEUP_PIN.
Referenced by setup().
| bool initializePowerCfg | ( | ) |
Definition at line 70 of file device_pinout.cpp.
|
extern |
Definition at line 27 of file device_pinout.cpp.
Referenced by countSignalTimerISR(), handleCountingMode(), handleOccupancyMode(), handleSleepingState(), initializePinModes(), setup(), and updateOccupancyState().
|
extern |
Definition at line 26 of file device_pinout.cpp.
Referenced by handleFirmwareUpdateState(), handleSleepingState(), initializePinModes(), and setup().
|
extern |
Definition at line 45 of file device_pinout.cpp.
Referenced by SensorManager::onEnterSleep(), PIRSensor::onSleep(), PIRSensor::onWake(), and PIRSensor::setup().
|
extern |
Definition at line 44 of file device_pinout.cpp.
Referenced by handleSleepingState(), PIRSensor::onSleep(), PIRSensor::onWake(), and PIRSensor::setup().
|
extern |
Definition at line 46 of file device_pinout.cpp.
Referenced by SensorManager::onEnterSleep(), PIRSensor::onSleep(), PIRSensor::onWake(), PIRSensor::setup(), and setup().
|
extern |
Definition at line 21 of file device_pinout.cpp.
Referenced by SensorManager::batteryState().
|
extern |
Definition at line 28 of file device_pinout.cpp.
Referenced by initializePinModes().