Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GEO_COUNTER_L432KC by
HwRegisters.hpp
00001 #ifndef HwRegisters_H 00002 #define HwRegisters_H 00003 00004 #include "mbed.h" // global Mbed library (always needed) 00005 00006 // definitions of the input/outputs (pins) 00007 static DigitalOut AUX (D2); // AUX control for GPS module 00008 static InterruptIn TRIG1 (D3); // Counter 1 trigger 00009 static InterruptIn TRIG2 (D6); // Counter 2 trigger 00010 static DigitalIn QEPB (D9); // Quadrature encoder pushbutton 00011 static PwmOut PWM (D10); // PWM output 00012 static DigitalOut BUZZ (D13); // Buzzer 00013 00014 static AnalogIn AIN0 (A0); // ADC input 0 (High Voltage) 00015 static AnalogIn AIN1 (A1); // ADC input 1 (aux) 00016 static DigitalOut CS2 (A2); // 74HC595 RCLK (pin 12) 00017 static DigitalOut CS1 (A3); // MAX7219 CS (pin 12) 00018 static DigitalOut SCK (A4); // 74HC595 SRCLK (pin 11) & MAX7219 SCK (pin 13) 00019 static AnalogIn KEYB (A5); // Keyboard input (SW2 & SW3) 00020 static DigitalOut MOSI (A6); // 74HC595 SER (pin 14) & MAX7219 DIN (pin 1) 00021 static DigitalIn UN (A7); // Unused (in V1 PCB A5 and A7 must be connected) 00022 00023 #endif /* HwRegisters_H */
Generated on Sun Jul 24 2022 06:22:38 by
1.7.2
