Build blinkt and piface in gcc pipeline to prevent bit rot. (#842)

This commit is contained in:
Steve Karg
2024-10-31 21:52:22 -05:00
committed by GitHub
parent 6d9cff2312
commit 97213c3a13
5 changed files with 53 additions and 9 deletions
+4
View File
@@ -39,8 +39,12 @@ MCP23S17_LIB = libmcp23s17
CFLAGS += -I$(PIFACE_INCLUDE)
ifeq (${BUILD},pipeline)
CFLAGS += -DBUILD_PIPELINE
else
LDPIFACE = -Wl,-L$(PIFACE_LIB),-lpifacedigital,-L$(MCP23S17_LIB),-lmcp23s17
LFLAGS += $(LDPIFACE)
endif
OBJS += ${SRC:.c=.o}
+12 -5
View File
@@ -1,11 +1,10 @@
/**
* @file
* @brief
* @brief Example server application using the BACnet Stack on a Raspberry Pi
* with a PiFace Digital I/O card.
* @author Steve Karg <skarg@users.sourceforge.net>
* @date January 2023
*
* SPDX-License-Identifier: MIT
*
* @copyright SPDX-License-Identifier: MIT
*/
#include <stddef.h>
#include <stdint.h>
@@ -37,7 +36,6 @@
#include "bacnet/basic/object/bi.h"
#include "bacnet/basic/object/blo.h"
#include "bacnet/basic/object/bo.h"
#include "pifacedigital.h"
/** @file server/main.c Example server application using the BACnet Stack. */
@@ -59,6 +57,15 @@ static struct mstimer BACnet_Object_Timer;
/* track the state of of the output */
static bool PiFace_Output_State[PIFACE_OUTPUTS_MAX];
#ifndef BUILD_PIPELINE
#include "pifacedigital.h"
#else
#define pifacedigital_digital_write(a, b) printf("PiFace write[%u]=%d\n", a, b)
#define pifacedigital_digital_read(a) printf("PiFace read[%u]\n", a)
#define pifacedigital_open(a) printf("PiFace Open=%d\n", a)
#define pifacedigital_close(a) printf("PiFace Close=%d\n", a)
#endif
/**
* @brief output write value request
* @param index - 0..N index of the output