2019-02-12 22:18:17 +00:00
|
|
|
// Copyright 2019 SoloKeys Developers
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
|
|
|
|
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
|
|
|
|
// http://opensource.org/licenses/MIT>, at your option. This file may not be
|
|
|
|
// copied, modified, or distributed except according to those terms.
|
2018-09-10 20:27:15 +00:00
|
|
|
#include <stdint.h>
|
2018-04-28 17:40:28 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
void dump_hex(uint8_t * buf, int size)
|
|
|
|
{
|
|
|
|
while(size--)
|
|
|
|
{
|
|
|
|
printf("%02x ", *buf++);
|
|
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
}
|