Charles Young's development fork. Going forward I only want to push mature code to main repository.

Dependencies:   mbed

Fork of GEO_COUNTER_L432KC by Geo Electronics "Geo Counter"

Committer:
charlesdavidyoung
Date:
Tue Sep 04 19:57:31 2018 +0000
Revision:
20:fb73eaaf0894
Encapsulated rotary switch and associated LEDs code in a new class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charlesdavidyoung 20:fb73eaaf0894 1 #ifndef HwRegisters_H
charlesdavidyoung 20:fb73eaaf0894 2 #define HwRegisters_H
charlesdavidyoung 20:fb73eaaf0894 3
charlesdavidyoung 20:fb73eaaf0894 4 #include "mbed.h" // global Mbed library (always needed)
charlesdavidyoung 20:fb73eaaf0894 5
charlesdavidyoung 20:fb73eaaf0894 6 // definitions of the input/outputs (pins)
charlesdavidyoung 20:fb73eaaf0894 7 static DigitalOut AUX (D2); // AUX control for GPS module
charlesdavidyoung 20:fb73eaaf0894 8 static InterruptIn TRIG1 (D3); // Counter 1 trigger
charlesdavidyoung 20:fb73eaaf0894 9 static InterruptIn TRIG2 (D6); // Counter 2 trigger
charlesdavidyoung 20:fb73eaaf0894 10 static DigitalIn QEPB (D9); // Quadrature encoder pushbutton
charlesdavidyoung 20:fb73eaaf0894 11 static PwmOut PWM (D10); // PWM output
charlesdavidyoung 20:fb73eaaf0894 12 static DigitalOut BUZZ (D13); // Buzzer
charlesdavidyoung 20:fb73eaaf0894 13
charlesdavidyoung 20:fb73eaaf0894 14 static AnalogIn AIN0 (A0); // ADC input 0 (High Voltage)
charlesdavidyoung 20:fb73eaaf0894 15 static AnalogIn AIN1 (A1); // ADC input 1 (aux)
charlesdavidyoung 20:fb73eaaf0894 16 static DigitalOut CS2 (A2); // 74HC595 RCLK (pin 12)
charlesdavidyoung 20:fb73eaaf0894 17 static DigitalOut CS1 (A3); // MAX7219 CS (pin 12)
charlesdavidyoung 20:fb73eaaf0894 18 static DigitalOut SCK (A4); // 74HC595 SRCLK (pin 11) & MAX7219 SCK (pin 13)
charlesdavidyoung 20:fb73eaaf0894 19 static AnalogIn KEYB (A5); // Keyboard input (SW2 & SW3)
charlesdavidyoung 20:fb73eaaf0894 20 static DigitalOut MOSI (A6); // 74HC595 SER (pin 14) & MAX7219 DIN (pin 1)
charlesdavidyoung 20:fb73eaaf0894 21 static DigitalIn UN (A7); // Unused (in V1 PCB A5 and A7 must be connected)
charlesdavidyoung 20:fb73eaaf0894 22
charlesdavidyoung 20:fb73eaaf0894 23 #endif /* HwRegisters_H */