HIT Project #3 https://community.freescale.com/docs/DOC-99621
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
MonkeyDo!
These are the demo files for Freescale HIT project #3: Monkey Do. It uses a FRDM-AUTO + a FRDM-K64F to demo websockets for a simple IoT application.
See the main MonkeyDo page for all of the schematics, videos, GitHub links, etc for everything else!
https://community.freescale.com/docs/DOC-99621
GLUE/IO.h@0:29f58b9daa2c, 2014-07-04 (annotated)
- Committer:
- emh203
- Date:
- Fri Jul 04 22:55:47 2014 +0000
- Revision:
- 0:29f58b9daa2c
1st add
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emh203 | 0:29f58b9daa2c | 1 | #include "System.h" |
emh203 | 0:29f58b9daa2c | 2 | #include "EthernetInterface.h" |
emh203 | 0:29f58b9daa2c | 3 | |
emh203 | 0:29f58b9daa2c | 4 | #ifndef _IO_H |
emh203 | 0:29f58b9daa2c | 5 | #define _IO_H |
emh203 | 0:29f58b9daa2c | 6 | |
emh203 | 0:29f58b9daa2c | 7 | |
emh203 | 0:29f58b9daa2c | 8 | extern DigitalOut SSR_HIGH_CURRENT_1; |
emh203 | 0:29f58b9daa2c | 9 | extern DigitalOut SSR_HIGH_CURRENT_2; |
emh203 | 0:29f58b9daa2c | 10 | |
emh203 | 0:29f58b9daa2c | 11 | extern DigitalOut SSR_LOW_CURRENT_1; |
emh203 | 0:29f58b9daa2c | 12 | extern DigitalOut SSR_LOW_CURRENT_2; |
emh203 | 0:29f58b9daa2c | 13 | |
emh203 | 0:29f58b9daa2c | 14 | extern AnalogIn TempSensor; |
emh203 | 0:29f58b9daa2c | 15 | |
emh203 | 0:29f58b9daa2c | 16 | #define ENABLE_HIGH_CURRENT_RELAY SSR_HIGH_CURRENT_1 = 1; SSR_HIGH_CURRENT_2 = 1; |
emh203 | 0:29f58b9daa2c | 17 | #define DISABLE_HIGH_CURRENT_RELAY SSR_HIGH_CURRENT_1 = 0; SSR_HIGH_CURRENT_2 = 0; |
emh203 | 0:29f58b9daa2c | 18 | |
emh203 | 0:29f58b9daa2c | 19 | #define ENABLE_LOW_CURRENT_RELAY SSR_LOW_CURRENT_1 = 1; SSR_LOW_CURRENT_2 = 1; |
emh203 | 0:29f58b9daa2c | 20 | #define DISABLE_LOW_CURRENT_RELAY SSR_LOW_CURRENT_1 = 0; SSR_LOW_CURRENT_2 = 0; |
emh203 | 0:29f58b9daa2c | 21 | |
emh203 | 0:29f58b9daa2c | 22 | |
emh203 | 0:29f58b9daa2c | 23 | extern Serial PC; |
emh203 | 0:29f58b9daa2c | 24 | |
emh203 | 0:29f58b9daa2c | 25 | extern EthernetInterface eth; |
emh203 | 0:29f58b9daa2c | 26 | |
emh203 | 0:29f58b9daa2c | 27 | |
emh203 | 0:29f58b9daa2c | 28 | #endif |