Support for Chibios compilation
Remove some warnings, change the include paths.
This commit is contained in:
parent
8cbfe79dd9
commit
6873b17117
19 changed files with 79 additions and 42 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
CC = gcc
|
||||
CFLAGS =
|
||||
INCLUDES = -I. -I../
|
||||
INCLUDES = -I. -I../../
|
||||
LDFLAGS = -L$(BUILDDIR)/cgreen/build-c/src -shared
|
||||
LDLIBS = -lcgreen
|
||||
UNITOBJ = $(BUILDDIR)/serialtest/unitobj
|
||||
|
|
|
@ -24,10 +24,10 @@ SOFTWARE.
|
|||
|
||||
#include <cgreen/cgreen.h>
|
||||
#include <cgreen/mocks.h>
|
||||
#include "protocol/byte_stuffer.h"
|
||||
#include "protocol/byte_stuffer.c"
|
||||
#include "protocol/frame_validator.h"
|
||||
#include "protocol/physical.h"
|
||||
#include "serial_link/protocol/byte_stuffer.h"
|
||||
#include "serial_link/protocol/byte_stuffer.c"
|
||||
#include "serial_link/protocol/frame_validator.h"
|
||||
#include "serial_link/protocol/physical.h"
|
||||
|
||||
static uint8_t sent_data[MAX_FRAME_SIZE*2];
|
||||
static uint16_t sent_data_size;
|
||||
|
|
|
@ -24,10 +24,10 @@ SOFTWARE.
|
|||
|
||||
#include <cgreen/cgreen.h>
|
||||
#include <cgreen/mocks.h>
|
||||
#include "protocol/byte_stuffer.c"
|
||||
#include "protocol/frame_validator.c"
|
||||
#include "protocol/frame_router.c"
|
||||
#include "protocol/transport.h"
|
||||
#include "serial_link/protocol/byte_stuffer.c"
|
||||
#include "serial_link/protocol/frame_validator.c"
|
||||
#include "serial_link/protocol/frame_router.c"
|
||||
#include "serial_link/protocol/transport.h"
|
||||
|
||||
static uint8_t received_data[256];
|
||||
static uint16_t received_data_size;
|
||||
|
|
|
@ -24,7 +24,7 @@ SOFTWARE.
|
|||
|
||||
#include <cgreen/cgreen.h>
|
||||
#include <cgreen/mocks.h>
|
||||
#include "protocol/frame_validator.c"
|
||||
#include "serial_link/protocol/frame_validator.c"
|
||||
|
||||
void route_incoming_frame(uint8_t link, uint8_t* data, uint16_t size) {
|
||||
mock(data, size);
|
||||
|
|
|
@ -24,8 +24,8 @@ SOFTWARE.
|
|||
|
||||
#include <cgreen/cgreen.h>
|
||||
#include <cgreen/mocks.h>
|
||||
#include "protocol/transport.c"
|
||||
#include "protocol/triple_buffered_object.c"
|
||||
#include "serial_link/protocol/transport.c"
|
||||
#include "serial_link/protocol/triple_buffered_object.c"
|
||||
|
||||
void signal_data_written(void) {
|
||||
mock();
|
||||
|
|
|
@ -23,7 +23,7 @@ SOFTWARE.
|
|||
*/
|
||||
|
||||
#include <cgreen/cgreen.h>
|
||||
#include "protocol/triple_buffered_object.c"
|
||||
#include "serial_link/protocol/triple_buffered_object.c"
|
||||
|
||||
typedef struct {
|
||||
uint8_t state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue