]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/platforms/msp430/cppbsl/src/Bsl.h
incorporate a patch from Frederik Hermans -- looks like the 2.4 kernel can not
[tinyos-2.x.git] / tools / platforms / msp430 / cppbsl / src / Bsl.h
index a7cc0b788acd60ae81d544f5329141d172318e31..7561ca195f5adb1e391dd0ab3f9b180100c6141a 100644 (file)
@@ -46,6 +46,7 @@ class Bsl {
 protected:
     BaseSerial *s;
     const char *image;
+    const int CHUNKSIZE;
     
     enum commands_t {
         MASS_ERASE = 0x18,
@@ -81,7 +82,7 @@ protected:
     int highSpeed(int *err);
     
 public:
-    Bsl(BaseSerial* ser, const char *img) : s(ser), image(img) {
+    Bsl(BaseSerial* ser, const char *img, int cs=250) : s(ser), image(img), CHUNKSIZE(cs) {
     };
 
     ~Bsl() {