kopia lustrzana https://github.com/solokeys/solo1
18 wiersze
499 B
C
18 wiersze
499 B
C
// 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.
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
void dump_hex(uint8_t * buf, int size)
|
|
{
|
|
while(size--)
|
|
{
|
|
printf("%02x ", *buf++);
|
|
}
|
|
printf("\n");
|
|
}
|