didn't save any pin memory as classes ar ealwasys rounded up to even 4 byte boundarie...
authorJim Morris <morris@wolfman.com>
Sun, 23 Nov 2014 23:24:28 +0000 (15:24 -0800)
committerJim Morris <morris@wolfman.com>
Sun, 23 Nov 2014 23:24:28 +0000 (15:24 -0800)
src/libs/Pin.h
src/modules/utils/simpleshell/SimpleShell.cpp

index fd694a9..f93934a 100644 (file)
@@ -60,9 +60,9 @@ class Pin {
         // these should be private, and use getters
         LPC_GPIO_TypeDef* port;
 
+        unsigned char pin;
+        char port_number;
         struct {
-            unsigned char pin:6;
-            char port_number:3;
             bool inverting:1;
             bool valid:1;
         };
index 3942503..3f8275e 100644 (file)
@@ -476,8 +476,6 @@ void SimpleShell::mem_command( string parameters, StreamOutput *stream)
         AHB0.debug(stream);
         AHB1.debug(stream);
     }
-
-    //stream->printf("overruns: %lu\n", THEKERNEL->step_ticker->overruns);
 }
 
 static uint32_t getDeviceType()