Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
payload.cpp
- Committer:
- hi1000
- Date:
- 2019-03-23
- Revision:
- 8:6105ffbaf237
- Parent:
- 7:e0c7e624c5fa
- Child:
- 9:486f65124378
File content as of revision 8:6105ffbaf237:
#include "mbed.h" extern unsigned char rx_buffer[8], tx_buffer[8]; extern unsigned char rx_length, tx_length; void analyzePayload() { int i; printf("analyzePayload thread\r\n"); while (true) { osEvent evt = can_queue.get(); if (evt.status == osEventMessage) { CANMessage *message = (CANMessage*)evt.value.p; mpool.free(message); } } }