1
0
Fork 0

Support for Chibios compilation

Remove some warnings, change the include paths.
This commit is contained in:
Fred Sundvik 2016-02-21 23:17:59 +02:00
parent 8cbfe79dd9
commit 6873b17117
19 changed files with 79 additions and 42 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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();

View file

@ -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;