| 369 | } |
| 370 | |
| 371 | static uint8_t |
| 372 | get_crc8(uint8_t *message, int length) |
| 373 | { |
| 374 | uint8_t crc = 0; |
| 375 | int i; |
| 376 | |
| 377 | for (i = 0; i < length; i++) |
| 378 | crc = crc8_table[crc ^ message[i]]; |
| 379 | return crc; |
| 380 | } |
| 381 | |
| 382 | /* |
| 383 | * The atomic exchange test sets up a token in memory and |
no outgoing calls
no test coverage detected