blob: 84869c3185b101a4c9b5fdcae6986b8a8079f0b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <hal.h>
#include <hal_internal.h>
int main (int argc, char *argv[])
{
uint32_t version;
#define check(op) { hal_error_t err; if ((err = (op)) != HAL_OK) { printf("%s: %s\n", #op, hal_error_string(err)); return 1; } }
check(hal_rpc_client_init());
check(hal_rpc_get_version(&version));
printf("%08x\n", version);
return 0;
}
|