targets/plc_main_tail.c
changeset 995 5dcb361a55ef
parent 991 afc4963d8f0c
child 996 17d9c81b5ed8
equal deleted inserted replaced
994:0401295d9804 995:5dcb361a55ef
    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;