added ifdefs guards for includes.

This commit is contained in:
Martin Preuss
2025-04-21 00:46:46 +02:00
parent 30654509b1
commit 15199a17a5
14 changed files with 79 additions and 2 deletions

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_CRC8_H
#define COMMON_CRC8_H
.cseg
@@ -44,3 +47,7 @@ crc8Calc_withoutPoly:
ret
; @end
#endif ; COMMON_CRC8_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_M_FIXEDBUFFERS_H
#define COMMON_M_FIXEDBUFFERS_H
; ---------------------------------------------------------------------------
; @macro m_fixedbuf_init
@@ -135,5 +138,5 @@ l_end:
#endif ; COMMON_M_FIXEDBUFFERS_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_M_RINGBUFFER_H
#define COMMON_M_RINGBUFFER_H
; ---------------------------------------------------------------------------
@@ -107,3 +110,5 @@ l_end:
#endif ; COMMON_M_RINGBUFFER_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_M_RINGBUFFER_Y_H
#define COMMON_M_RINGBUFFER_Y_H
; ---------------------------------------------------------------------------
@@ -149,4 +152,4 @@ l_end:
#endif ; COMMON_M_RINGBUFFER_Y_H

View File

@@ -7,6 +7,8 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_RINGBUFFER_H
#define COMMON_RINGBUFFER_H
@@ -253,3 +255,6 @@ RINGBUFFER_END:
.equ MODULE_SIZE_RINGBUFFER = RINGBUFFER_END-RINGBUFFER_BEGIN
#endif ; COMMON_RINGBUFFER_H

View File

@@ -7,6 +7,12 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_RINGBUFFER_Y_H
#define COMMON_RINGBUFFER_Y_H
.include "common/m_ringbuffer_y.asm"
.equ RINGBUFFERY_OFFS_MAXSIZE = 0
.equ RINGBUFFERY_OFFS_USED = 1
@@ -196,3 +202,5 @@ RingBufferY_WriteByteGuarded_error:
#endif ; COMMON_RINGBUFFER_Y_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_H
#define COMMON_UTILS_H
@@ -554,3 +557,6 @@ Utils_TranslateByTable_found:
UTILS_END:
.equ MODULE_SIZE_UTILS = UTILS_END-UTILS_BEGIN
#endif ; COMMON_UTILS_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_COPYFROMFLASH_H
#define COMMON_UTILS_COPYFROMFLASH_H
; ***************************************************************************
; code
@@ -33,3 +36,5 @@ Utils_CopyFromFlash:
ret
#endif ; COMMON_UTILS_COPYFROMFLASH_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_COPYSDRAM_H
#define COMMON_UTILS_COPYSDRAM_H
; ***************************************************************************
; code
@@ -32,3 +35,6 @@ Utils_Copy_SDRAM:
ret
#endif ; COMMON_UTILS_COPYSDRAM_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_WAIT_H
#define COMMON_UTILS_WAIT_H
@@ -59,3 +62,5 @@
#endif ; COMMON_UTILS_WAIT_H

View File

@@ -7,6 +7,12 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_WAIT_FIXED_H
#define COMMON_UTILS_WAIT_FIXED_H
.include "common/utils_wait.asm"
@@ -54,3 +60,5 @@ Utils_WaitFor100MicroSecs:
#endif ; COMMON_UTILS_WAIT_FIXED_H

View File

@@ -7,6 +7,10 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_UTILS_WAIT_PIN_H
#define COMMON_UTILS_WAIT_PIN_H
; ***************************************************************************
; code
@@ -52,3 +56,5 @@ com2WaitForDataState1ms_ret:
#endif ; COMMON_UTILS_WAIT_PIN_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef COMMON_WATCHDOG_H
#define COMMON_WATCHDOG_H
; ***************************************************************************
@@ -46,3 +49,5 @@ watchdogOff:
#endif ; COMMON_WATCHDOG_H

View File

@@ -7,6 +7,9 @@
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef BASETIMER_MAIN_H
#define BASETIMER_MAIN_H
;
; The base timer makes sure that "onSystemTimerTick" is called about every
; 100ms.
@@ -198,3 +201,5 @@ BASETIMER_END:
#endif ; BASETIMER_MAIN_H