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.
Diff: pinmap.cpp
- Revision:
- 0:00669618559e
- Child:
- 1:8f545f45d899
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pinmap.cpp Thu Nov 24 16:37:00 2016 +0000 @@ -0,0 +1,53 @@ +#include "pinmap.h" + +/****************************************** + * + * Pin In/Outs + * + ******************************************/ +/*=== Analog In ===*/ +AnalogIn atrialIn (A0); // Pin A0 +AnalogIn ventricleIn (A1); // Pin A1 +AnalogIn leadImpedence (A2); // Pin A2 +AnalogIn atr_rect_signal (A3); // Pin A3 +AnalogIn vent_rect_signal (A4); // Pin A4 + +/*=== Digital In ===*/ +DigitalIn atria_cmp_detect (PTC16); // Pin D0 +DigitalIn vent_cmp_detect (PTC17); // Pin D1 + +/*=== PWM Out ===*/ +/* DigitalOut is used for the REF Signal + * due to absence of PWM capabilities of Pins D2 and D4 + * on the FRDM-K64F Board + */ +DigitalOut pacing_ref_pwm (PTB9); // Pin D2 (PTB9) +PwmOut vent_ref_pwm (PTA1); // Pin D3 +DigitalOut atria_ref_pwm (PTB23); // Pin D4 + + +/*=== Digital Out ===*/ +DigitalOut pace_charge_ctrl (PTA2); // Pin D5 +DigitalOut z_atria_ctrl (PTC2); // Pin D6 +DigitalOut z_vent_ctrl (PTC3); // Pin D7 + +DigitalOut atr_pace_ctrl (PTC12); // Pin D8 +DigitalOut vent_pace_ctrl (PTC4); // Pin D9 +DigitalOut pace_grnd_ctrl (PTD0); // Pin D10 +DigitalOut atr_grnd_ctrl (PTD2); // Pin D11 +DigitalOut vent_grnd_ctrl (PTD3); // Pin D12 +DigitalOut frontend_ctrl (PTD1); // Pin D13 + + + + + +/*=== On-Board Tri-LED ===*/ +DigitalOut rled (LED_RED); +DigitalOut gled (LED_GREEN); +DigitalOut bled (LED_BLUE); + + +void setPins() { + /*PWM Setup*/ +} \ No newline at end of file