Parallel bus emulation by GPIO ports

Dependencies:   mbed parallel_bus

Files at this revision

API Documentation at this revision

Comitter:
nxp_ip
Date:
Tue Jul 10 05:39:46 2012 +0000
Child:
1:84f14b88a570
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
parallel_bus.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jul 10 05:39:46 2012 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "hardware_abs.h"
+
+#define ADDR    0xC3
+
+char    data[]  =   { 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9, 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, 0xF0, 0xEF };
+char    v;
+
+int main() {
+    hardware_initialize();
+    reset( 10, 1000 );
+
+    write_data( 0xCA, 0x55 );
+    write_data( 0xDA, 0xAA );
+    v   = read_data( 0xCA );
+    v   = read_data( 0xDA );
+
+    write_data_burst( 0xC3, data, sizeof( data ) );
+
+    while (1)
+        ;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jul 10 05:39:46 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel_bus.lib	Tue Jul 10 05:39:46 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/nxp_ip/code/parallel_bus/#2d9795162649