Permalink
Browse files

changes

  • Loading branch information...
1 parent 545c8bf commit 5d36fdf525dc9b704dada7ee214b900f1cb513c2 @technocake technocake committed Mar 24, 2013
View
@@ -29,8 +29,8 @@ def color(i):
-num_ports = 4
-num_cores = 2
+num_ports = pnmp.config['num_distro_ports']
+num_cores = pnmp.config['num_cores']
distros_in_core = [2,3]
View
@@ -8,6 +8,17 @@
from serial.tools import list_ports
import time
+
+
+config = {
+ 'num_cores' : 2,
+ 'num_distro_ports': 4,
+ 'num_bits_per_shiftregister': 8
+}
+
+
+
+
class api():
""" The Pizza-Netmap Network Monitoring Protocol api """
@@ -105,6 +116,11 @@ def pushState(self, statemap):
returns:
0 on success -1 on error.
"""
+ if len(statemap) <= 1:
+ pass #error
+
+
+
pass
@@ -157,4 +173,3 @@ def clean_the_mess_up_after_you(self):
self.arduino.close()
-
View
Binary file not shown.
@@ -24,7 +24,7 @@ int MR_Pin = 7; // Master Reset
#define RE_PULSE 8 // Repulse - timeslots between retransmitting pulse.
#define MAX_NODE_COUNT 512 // if no BKTRK is connected.
#define number_of_cores 2 // Core switches in use
-#define n_74hc595_per_distro 2 // Shift registers per distro
+#define n_74hc595_per_distro 4 // Shift registers per distro
#define n_shiftregister_pins 8 // Number of output pins on shiftreg.
/*____________________________________________________________

0 comments on commit 5d36fdf

Please sign in to comment.