parent
48d3e1aa63
commit
e2cb525cce
@ -0,0 +1,12 @@
|
||||
|
||||
// dummy so spi_proto can be shared
|
||||
|
||||
#include "spi_pointers.h"
|
||||
|
||||
uint16_t *spi_proto_globals8[] = { };
|
||||
uint8_t *spi_proto_globals16[] = { };
|
||||
funptr_t spi_proto_funcs[] = { };
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
#ifndef __SPI_POINTERS_H
|
||||
#define __SPI_POINTERS_H
|
||||
// dummy-include so spi_proto can be shared
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef void(*funptr_t)();
|
||||
|
||||
extern uint16_t *spi_proto_globals8[];
|
||||
extern uint8_t *spi_proto_globals16[];
|
||||
extern funptr_t spi_proto_funcs[];
|
||||
|
||||
|
||||
#endif //__SPI_POINTERS_H
|
||||
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
|
||||
#include "spi_pointers.h"
|
||||
#include "main.h"
|
||||
|
||||
uint16_t *spi_proto_globals8[] = {
|
||||
&foo
|
||||
};
|
||||
uint8_t *spi_proto_globals16[] = {
|
||||
&bar
|
||||
};
|
||||
funptr_t spi_proto_funcs[] = {
|
||||
&baz
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
#ifndef __SPI_POINTERS_H
|
||||
#define __SPI_POINTERS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef void(*funptr_t)();
|
||||
|
||||
extern uint16_t *spi_proto_globals8[];
|
||||
extern uint8_t *spi_proto_globals16[];
|
||||
extern funptr_t spi_proto_funcs[];
|
||||
|
||||
|
||||
#endif //__SPI_POINTERS_H
|
||||
|
||||
|
||||
Loading…
Reference in new issue