This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
class GenericAddressBacking { | |
public: | |
template<unsigned Tbitpos, unsigned Tbitwidth, typename size_type> | |
static void bitfield_set(size_type &loc, size_type val) { | |
const size_type val_mask = (1 << Tbitwidth) - 1; | |
const size_type bit_mask = val_mask << Tbitpos; | |
loc = (loc & ~bit_mask) | ((val & val_mask) << Tbitpos); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FTFL_FlashConfig { /* Flash Memory Interface */ | |
uint8_t backkey3; /* 0: Backdoor Comparison Key 3. */ | |
uint8_t backkey2; /* 0x1: Backdoor Comparison Key 2. */ | |
uint8_t backkey1; /* 0x2: Backdoor Comparison Key 1. */ | |
uint8_t backkey0; /* 0x3: Backdoor Comparison Key 0. */ | |
uint8_t backkey7; /* 0x4: Backdoor Comparison Key 7. */ | |
uint8_t backkey6; /* 0x5: Backdoor Comparison Key 6. */ | |
uint8_t backkey5; /* 0x6: Backdoor Comparison Key 5. */ | |
uint8_t backkey4; /* 0x7: Backdoor Comparison Key 4. */ | |
uint8_t fprot3; /* 0x8: Non-volatile P-Flash Protection 1 - Low Register */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FTFL_FlashConfig { /* Flash Memory Interface */ | |
uint8_t backkey3; /* 0: Backdoor Comparison Key 3. */ | |
uint8_t backkey2; /* 0x1: Backdoor Comparison Key 2. */ | |
uint8_t backkey1; /* 0x2: Backdoor Comparison Key 1. */ | |
uint8_t backkey0; /* 0x3: Backdoor Comparison Key 0. */ | |
uint8_t backkey7; /* 0x4: Backdoor Comparison Key 7. */ | |
uint8_t backkey6; /* 0x5: Backdoor Comparison Key 6. */ | |
uint8_t backkey5; /* 0x6: Backdoor Comparison Key 5. */ | |
uint8_t backkey4; /* 0x7: Backdoor Comparison Key 4. */ | |
uint8_t fprot3; /* 0x8: Non-volatile P-Flash Protection 1 - Low Register */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FTFL_FlashConfig { | |
uint8_t BACKKEY3; /* 0: Backdoor Comparison Key 3. */ | |
uint8_t BACKKEY2; /* 0x1: Backdoor Comparison Key 2. */ | |
uint8_t BACKKEY1; /* 0x2: Backdoor Comparison Key 1. */ | |
uint8_t BACKKEY0; /* 0x3: Backdoor Comparison Key 0. */ | |
uint8_t BACKKEY7; /* 0x4: Backdoor Comparison Key 7. */ | |
uint8_t BACKKEY6; /* 0x5: Backdoor Comparison Key 6. */ | |
uint8_t BACKKEY5; /* 0x6: Backdoor Comparison Key 5. */ | |
uint8_t BACKKEY4; /* 0x7: Backdoor Comparison Key 4. */ | |
uint8_t FPROT3; /* 0x8: Non-volatile P-Flash Protection 1 - Low Register */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/russdill/a051d2c4754bc41513e2 | |
https://gist.github.com/russdill/3250a3be338c935d5688 | |
https://gist.github.com/russdill/cf9e899fea45622d8ed2 | |
https://gist.github.com/russdill/20be7ffba426ef6dae63 | |
https://gist.github.com/russdill/a37b8ffe02808fdc7f01 | |
https://gist.github.com/russdill/b3046eb811b8f9d0593c | |
https://gist.github.com/russdill/8667d1293445ec2250b7 | |
https://gist.github.com/russdill/e0be29661387e8440354 | |
https://gist.github.com/russdill/7c0fbaab6d51bd6016a1 | |
https://gist.github.com/russdill/d5b42ad76d2e2a342b04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:29:28 herb:~/relayr/master-firmware master | |
% git diff | |
diff --git a/contrib/paho b/contrib/paho | |
--- a/contrib/paho | |
+++ b/contrib/paho | |
@@ -1 +1 @@ | |
-Subproject commit 9b4b0c486be626e81c0d6b6fec34f8c9dba26eb0 | |
+Subproject commit 9b4b0c486be626e81c0d6b6fec34f8c9dba26eb0-dirty | |
diff --git a/platform/posix/network.cc b/platform/posix/network.cc | |
index 6555cbb..add0399 100644 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstdio> | |
using namespace std; | |
struct F { | |
F(const char *arg) : mys(strdup(arg)) { cout << "construct F" << endl; } | |
~F() { cout << "destruct F" << endl; free(mys); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-12-05 17:11:59 DEBUG [read] reading tls 1 bytes, timeout 29931 | |
2014-12-05 17:12:29 DEBUG [read] timeout | |
2014-12-05 17:12:29 DEBUG [write] writing tls 2 bytes, timeout 999 | |
2014-12-05 17:12:29 DEBUG [write] 0000 b0 00 .. | |
2014-12-05 17:12:29 DEBUG [read] reading tls 1 bytes, timeout 10073 | |
2014-12-05 17:12:29 DEBUG [read] 0000 c0 . | |
2014-12-05 17:12:29 DEBUG [read] reading tls 1 bytes, timeout 999 | |
2014-12-05 17:12:29 DEBUG [read] 0000 00 . | |
2014-12-05 17:12:29 DEBUG [read] reading tls 1 bytes, timeout 10009 | |
2014-12-05 17:12:39 DEBUG [close] closing tls session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-12-05 16:39:47 DEBUG [read] reading tls 1 bytes, timeout 29938 | |
2014-12-05 16:40:17 DEBUG [read] timeout | |
2014-12-05 16:40:17 DEBUG [write] writing tls 2 bytes, timeout 999 | |
2014-12-05 16:40:17 DEBUG [write] 0000 b0 00 .. | |
2014-12-05 16:40:17 DEBUG [read] reading tls 1 bytes, timeout 29999 | |
2014-12-05 16:40:17 DEBUG [read] 0000 c0 . | |
2014-12-05 16:40:17 DEBUG [read] reading tls 1 bytes, timeout 999 | |
2014-12-05 16:40:17 DEBUG [read] 0000 00 . | |
2014-12-05 16:40:17 DEBUG [read] reading tls 1 bytes, timeout 29920 | |
2014-12-05 16:40:47 DEBUG [read] timeout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%start Startup1::PowerOn | |
%class startup | |
%map Startup1 | |
%% | |
PowerOn | |
{ | |
NoConfig Unconfigured { | |
} |