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:
- mfwic
- Date:
- 2021-10-18
- Revision:
- 27:650cffb6c8ff
- Parent:
- 20:5de24e4ae1c5
File content as of revision 27:650cffb6c8ff:
//------------------------------------------------------------------------------- // // 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); DigitalOut fan_on(PA_15); DigitalOut vdoc(PA_4); 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); // all_on indicates that the load demanded a high amount of current and all DC-DC converters are enabled. //DigitalIn all_on(PA_0); DigitalIn ILR_enable(PA_0); DigitalIn SWDCLK(PA_14); DigitalIn fan_pwn(PB_3); DigitalIn MS(PA_1); // Analog IO // AnalogIn Vfilt48(PA_7); //AnalogIn VIN24(PC_4); AnalogIn Vfilt12(PA_6); //AnalogIn IIN48(PC_2); //AnalogIn IIN24(PC_1); AnalogIn Ifilt12(PA_5);