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: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
v2hardware.h
00001 #ifndef V2_HARDWARE_H 00002 #define V2_HARDWARE_H 00003 00004 #include "mbed.h" 00005 #include "settings.h" 00006 #include "LM75B.h" 00007 00008 #ifdef TEST_MODE 00009 DigitalOut ledPowerON(LED1); 00010 DigitalOut ledNetwork(LED1); 00011 DigitalOut ledMeter(LED1); 00012 DigitalOut ledLoad(LED1); 00013 DigitalOut ledBox(LED2); 00014 DigitalOut reset_relay(LED3); 00015 DigitalOut set_relay(LED3); 00016 DigitalOut isopowerDisable(PTE24); 00017 DigitalIn boxSensor(D2); 00018 Serial ggsStream(PTE22, PTE23); 00019 Serial meter(D14, D15); 00020 AnalogIn voltage[] = {PTE20, PTE29, PTE20}; 00021 LM75B lineTemperature(PTB3, PTB2, LM75B::ADDRESS_0); 00022 LM75B loadTemperature(PTB3, PTB2, LM75B::ADDRESS_1); 00023 LM75B cpuTemperature(PTB3, PTB2, LM75B::ADDRESS_2); 00024 #else 00025 DigitalOut ledPowerON(PTB0); 00026 DigitalOut ledNetwork(PTA2); 00027 DigitalOut ledMeter(PTA4); 00028 DigitalOut ledLoad(PTE25); 00029 DigitalOut ledBox(PTA1); 00030 #ifdef RELES_INVERTIDOS 00031 DigitalOut reset_relay(PTB16); 00032 DigitalOut set_relay(PTB17); 00033 #else 00034 DigitalOut reset_relay(PTB17); 00035 DigitalOut set_relay(PTB16); 00036 #endif 00037 DigitalOut isopowerDisable(PTE24); 00038 DigitalIn boxSensor(PTE30); 00039 Serial ggsStream(PTD3, PTD2); 00040 Serial meter(NC, PTE21); 00041 AnalogIn voltage[] = {PTE20, PTE29, PTB1}; 00042 LM75B lineTemperature(PTB3, PTB2, LM75B::ADDRESS_0); 00043 LM75B loadTemperature(PTB3, PTB2, LM75B::ADDRESS_1); 00044 LM75B cpuTemperature(PTB3, PTB2, LM75B::ADDRESS_2); 00045 #endif // TEST_MODE 00046 00047 #endif // V2_HARDWARE_H
Generated on Thu Jul 14 2022 00:24:57 by
1.7.2
