summaryrefslogtreecommitdiff
path: root/controller/fw/src/sr_global.h
blob: abbad930c8ff90ec057fa949fb9c23f552f98219 (plain)
1
2
3
4
5
6
7
8
9
#ifndef __SR_GLOBAL_H__
#define __SR_GLOBAL_H__

#define UNUSED(x) ((void) x)
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0]))

static inline uint16_t htole(uint16_t val) { return val; }

#endif /* __SR_GLOBAL_H__ */