equal
deleted
inserted
replaced
56 |
56 |
57 /* Log cursor : 64b |
57 /* Log cursor : 64b |
58 |63 ... 32|31 ... 0| |
58 |63 ... 32|31 ... 0| |
59 | Message | Buffer | |
59 | Message | Buffer | |
60 | counter | Index | */ |
60 | counter | Index | */ |
61 static uint64_t LogCursor[LOG_LEVELS] = {0x0,0x0,0x0,0x0}; |
61 static uint64_t LogCursor[LOG_LEVELS] LOG_BUFFER_ATTRS = {0x0,0x0,0x0,0x0}; |
62 |
62 |
63 /* Store one log message of give size */ |
63 /* Store one log message of give size */ |
64 int LogMessage(uint8_t level, uint8_t* buf, uint32_t size){ |
64 int LogMessage(uint8_t level, uint8_t* buf, uint32_t size){ |
65 if(size < LOG_BUFFER_SIZE - sizeof(mTail)){ |
65 if(size < LOG_BUFFER_SIZE - sizeof(mTail)){ |
66 uint32_t buffpos; |
66 uint32_t buffpos; |