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: EthernetInterface NetworkAPI mbed-rtos mbed
Fork of NetRelais by
Diff: io.hpp
- Revision:
- 10:22d49341340c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/io.hpp Thu Jul 19 11:13:50 2012 +0000
@@ -0,0 +1,36 @@
+#ifndef _IO_HPP_
+#define _IO_HPP_
+
+#include "mbed.h"
+
+namespace io
+{
+ static DigitalOut led[4] = {
+ DigitalOut(LED1),
+ DigitalOut(LED2),
+ DigitalOut(LED3),
+ DigitalOut(LED4)
+ };
+
+ static DigitalOut ethernet[2] = {
+ DigitalOut(p30),
+ DigitalOut(p29)
+ };
+
+ static DigitalOut output[5] = {
+ DigitalOut(p9),
+ DigitalOut(p8),
+ DigitalOut(p7),
+ DigitalOut(p6),
+ DigitalOut(p5)
+ };
+
+ static DigitalIn input[4] = {
+ DigitalIn(p20),
+ DigitalIn(p19),
+ DigitalIn(p18),
+ DigitalIn(p17)
+ };
+}
+
+#endif // _IO_HPP_
\ No newline at end of file
