Require bacdef.h as first bacnet header to include (#598) (#600)

* Require bacdeps.h as first bacnet header to include

BACnet headers need to pull in optional configuration and
optional ecosystem overrides to allow integrators to control
builds.  This commit changes bacnet header files to first
include bacnet/bacdep.h to consistently introduce integrator
header files.

Verified by:

1. make clean all test

2. ./zephyr/scripts/twister -p unit_testing \
        -T bacnet-stack/zephyr/tests/



* Migrate BACNET_UNSIGNED_INTEGER defn to bacdef.h

Verified by:

1. make clean all test

2. ./zephyr/scripts/twister -p unit_testing \
        -T bacnet-stack/zephyr/tests/



---------

Signed-off-by: Gregory Shue <gregory.shue@legrand.com>
Co-authored-by: Greg Shue <32416235+gregshue@users.noreply.github.com>
Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
Steve Karg
2024-03-13 16:27:56 -05:00
committed by GitHub
parent a5f4ab3c88
commit f0760e2b96
214 changed files with 285 additions and 169 deletions
+1 -1
View File
@@ -27,8 +27,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
/* specific defines for ARCNET */
+1
View File
@@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
/* MS/TP Auto MAC address functionality */
/* starting number available for AutoMAC */
+1 -1
View File
@@ -39,8 +39,8 @@
#include <stdbool.h>
#include <stdint.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/bacenum.h"
typedef struct BACnet_Security_Wrapper {
+1 -1
View File
@@ -27,8 +27,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
#include "bacnet/datalink/bvlc.h"
+1 -1
View File
@@ -16,8 +16,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
#include "bacnet/datalink/bvlc6.h"
+1 -1
View File
@@ -27,7 +27,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h"
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/npdu.h"
/**
+1 -1
View File
@@ -12,8 +12,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
/**
+1
View File
@@ -26,6 +26,7 @@
#include <stddef.h>
#include <stdint.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
/* number of bytes needed for COBS encoded CRC */
+1
View File
@@ -26,6 +26,7 @@
#include <stddef.h>
#include <stdint.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#ifdef __cplusplus
+1 -1
View File
@@ -24,9 +24,9 @@
#ifndef DATALINK_H
#define DATALINK_H
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/config.h"
#include "bacnet/bacdef.h"
#if defined(BACDL_ETHERNET)
#include "bacnet/datalink/ethernet.h"
+1
View File
@@ -27,6 +27,7 @@
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/datalink/bvlc.h"
#include "bacnet/bacnet_stack_exports.h"
+1 -1
View File
@@ -27,10 +27,10 @@
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/basic/sys/ringbuf.h"
#include "bacnet/datalink/mstpdef.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
/* defines specific to MS/TP */
+1 -1
View File
@@ -27,8 +27,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/bacdef.h"
#include "bacnet/npdu.h"
/* specific defines for Ethernet */
+1
View File
@@ -28,6 +28,7 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#include "bacnet/datalink/mstpdef.h"
#include "bacnet/config.h"
+1 -1
View File
@@ -27,7 +27,7 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "bacnet/bacdef.h"
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
/* The value 255 is used to denote broadcast when used as a */
/* destination address but is not allowed as a value for a station. */
+1
View File
@@ -24,6 +24,7 @@
#ifndef MSTPTEXT_H
#define MSTPTEXT_H
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
#include "bacnet/bacnet_stack_exports.h"
#ifdef __cplusplus