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.
Dependencies: mbed
src/all_io.cpp
- Committer:
- Slord2142
- Date:
- 2019-03-12
- Revision:
- 49:65c714a5def2
- Parent:
- 47:d10bf65cb7dc
- Child:
- 52:2b3b194144da
File content as of revision 49:65c714a5def2:
//-------------------------------------------------------------------------------
//
// Treehouse Designs Inc.
// Colorado Springs, Colorado
//
// Copyright (c) 2018 by Treehouse Designs Inc.
// Copyright (c) 2018 by Agility Power Systems Inc.
//
// This code is the property of Treehouse Designs, Inc. (Treehouse) and
// Agility Power Systems Inc. (Agility) and may not be redistributed
// in any form without prior written permission from
// both copyright holders, Treehouse and Agility.
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
//
//-------------------------------------------------------------------------------
//
// REVISION HISTORY:
//
// $Author: $
// $Rev: $
// $Date: $
// $URL: $
//
//-------------------------------------------------------------------------------
#include "mbed.h"
#include "all_io.h"
#include "PortOut.h"
// Digital IO
DigitalInOut SWDIO(PA_13);
PwmOut fan_on(PA_15);
AnalogOut vdac(PA_4);
// Use extchlat to latch new wr_out signals to the external slots via ribbon cable.
//DigitalOut extchlat(PA_1);
/*DigitalOut ec2(PC_0);
DigitalOut ec15(PC_1);
DigitalOut ec28(PC_2);
DigitalOut ec6(PC_3);
DigitalOut ec12(PC_4);
DigitalOut ec25(PC_5);
DigitalOut ec36(PC_6);
DigitalOut ec31(PC_7);
DigitalOut ec9(PC_8);
DigitalOut ec5(PC_9);
DigitalOut ec24(PC_10);
DigitalOut ec11(PC_11);
DigitalOut ec1(PC_12);
DigitalOut ec10(PC_13);
DigitalOut ec23(PC_14);
DigitalOut ec7(PC_15);
DigitalOut ec18(PA_8);
DigitalOut ec14(PA_9);
DigitalOut ec27(PA_10);
DigitalOut ec19(PA_11);
DigitalOut ec32(PA_12);
DigitalOut ec35(PB_0);
DigitalOut ec21(PB_1);
DigitalOut ec30(PB_2);
DigitalOut ec33(PB_4);
DigitalOut ec20(PB_5);
DigitalOut ec34(PB_8);
DigitalOut ec29(PB_9);
DigitalOut ec8(PB_10);
DigitalOut ec4(PB_11);
DigitalOut ec17(PB_12);
DigitalOut ec13(PB_13);
DigitalOut ec26(PB_14);
DigitalOut ec22(PB_15);*/
DigitalOut ec[] = {(PC_0), (PC_1), (PC_2), (PC_3), (PC_4), (PC_5), (PC_6), (PC_7), (PC_8), (PC_9), (PC_10), (PC_11), (PC_12), (PC_13), (PC_14), (PC_15),
(PA_8), (PA_9), (PA_10), (PA_11), (PA_12), (PB_0), (PB_1), (PB_2), (PB_4), (PB_5), (PB_8), (PB_9), (PB_10), (PB_11), (PB_12), (PB_13), (PB_14), (PB_15),
(PH_0), (PH_1)};
// all_on indicates that the load demanded a high amount of current and all DC-DC converters are enabled.
//DigitalIn all_on(PA_0);
InterruptIn ILR_enable(PA_0);
DigitalIn SWDCLK(PA_14);
DigitalIn fan_pwn(PB_3);
DigitalIn MS(PA_1);
// Analog IO
//
AnalogIn VIN48(PA_7);
AnalogIn VIN12(PA_6);
AnalogIn IIN12(PA_5);