summaryrefslogtreecommitdiff
path: root/firmware/src/picc/opicc_reg.h
blob: 34020570bfc5cf65180501b7b982b6a447ae6238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _OPCD_REG_H
#define _OPCD_REG_H

#include <openpicc.h>
#include <sys/types.h>

#ifdef DEBUG
uint16_t opicc_reg_read(enum opicc_reg reg);
void opicc_reg_write(enum opicc_reg reg, uint16_t val);
#else
uint16_t opicc_regs[_OPICC_NUM_REGS];
#define opicc_reg_read(x)	(opicc_regs[x])
#define opicc_reg_write(x, y)	(opicc_regs[x] = y)
#endif

void opicc_usbapi_init(void);

#endif
personal git repositories of Harald Welte. Your mileage may vary