From b16e783aaed6f30f1e276d68bcebc0cac7ed644a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 17 Mar 2018 21:44:30 +0000 Subject: [PATCH] Typo. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11804 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/simulator/posix/hal_lld.c | 2 +- os/hal/ports/simulator/win32/hal_lld.c | 2 +- os/lib/include/chlib.h | 4 ++-- os/lib/include/{chheap.h => chmemheaps.h} | 10 +++++----- os/lib/include/{chfifo.h => chobjfifos.h} | 8 ++++---- os/lib/lib.mk | 4 ++-- os/lib/src/{chheap.c => chmemheaps.c} | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) rename os/lib/include/{chheap.h => chmemheaps.h} (95%) rename os/lib/include/{chfifo.h => chobjfifos.h} (96%) rename os/lib/src/{chheap.c => chmemheaps.c} (96%) diff --git a/os/hal/ports/simulator/posix/hal_lld.c b/os/hal/ports/simulator/posix/hal_lld.c index 449fd8e98..0015f5b24 100755 --- a/os/hal/ports/simulator/posix/hal_lld.c +++ b/os/hal/ports/simulator/posix/hal_lld.c @@ -74,7 +74,7 @@ void _sim_check_for_interrupts(void) { #if HAL_USE_SERIAL if (sd_lld_interrupt_pending()) { - int_occured = true; + int_occurred = true; } #endif diff --git a/os/hal/ports/simulator/win32/hal_lld.c b/os/hal/ports/simulator/win32/hal_lld.c index e00aab428..6a0220b91 100644 --- a/os/hal/ports/simulator/win32/hal_lld.c +++ b/os/hal/ports/simulator/win32/hal_lld.c @@ -87,7 +87,7 @@ void _sim_check_for_interrupts(void) { /* Interrupt Timer simulation (10ms interval).*/ QueryPerformanceCounter(&n); if (n.QuadPart > nextcnt.QuadPart) { - int_occured = true; + int_occurred = true; nextcnt.QuadPart += slice.QuadPart; CH_IRQ_PROLOGUE(); diff --git a/os/lib/include/chlib.h b/os/lib/include/chlib.h index 6a1944e53..674561cb8 100644 --- a/os/lib/include/chlib.h +++ b/os/lib/include/chlib.h @@ -210,9 +210,9 @@ #include "chbsem.h" #include "chmboxes.h" #include "chmemcore.h" -#include "chheap.h" +#include "chmemheaps.h" #include "chmempools.h" -#include "chfifo.h" +#include "chobjfifos.h" //#include "chpipes.h" #include "chfactory.h" diff --git a/os/lib/include/chheap.h b/os/lib/include/chmemheaps.h similarity index 95% rename from os/lib/include/chheap.h rename to os/lib/include/chmemheaps.h index 24e8e4761..59248a89e 100644 --- a/os/lib/include/chheap.h +++ b/os/lib/include/chmemheaps.h @@ -18,15 +18,15 @@ */ /** - * @file chheap.h - * @brief Heaps macros and structures. + * @file chmemheaps.h + * @brief Memory heaps macros and structures. * * @addtogroup heaps * @{ */ -#ifndef CHHEAP_H -#define CHHEAP_H +#ifndef CHMEMHEAPS_H +#define CHMEMHEAPS_H #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__) @@ -173,6 +173,6 @@ static inline size_t chHeapGetSize(const void *p) { #endif /* CH_CFG_USE_HEAP == TRUE */ -#endif /* CHHEAP_H */ +#endif /* CHMEMHEAPS_H */ /** @} */ diff --git a/os/lib/include/chfifo.h b/os/lib/include/chobjfifos.h similarity index 96% rename from os/lib/include/chfifo.h rename to os/lib/include/chobjfifos.h index 066de53e6..51e7bf0a8 100644 --- a/os/lib/include/chfifo.h +++ b/os/lib/include/chobjfifos.h @@ -18,7 +18,7 @@ */ /** - * @file chfifo.h + * @file chobjfifos.h * @brief Objects FIFO structures and macros. * @details This module implements a generic FIFO queue of objects by * coupling a Guarded Memory Pool (for objects storage) and @@ -41,8 +41,8 @@ * @{ */ -#ifndef CHFIFO_H -#define CHFIFO_H +#ifndef CHOBJFIFOS_H +#define CHOBJFIFOS_H #if (CH_CFG_USE_OBJ_FIFOS == TRUE) || defined(__DOXYGEN__) @@ -333,6 +333,6 @@ static inline msg_t chFifoReceiveObjectTimeout(objects_fifo_t *ofp, } #endif /* CH_CFG_USE_OBJ_FIFOS == TRUE */ -#endif /* CHFIFO_H */ +#endif /* CHOBJFIFOS_H */ /** @} */ diff --git a/os/lib/lib.mk b/os/lib/lib.mk index f515b0315..c84dd322f 100644 --- a/os/lib/lib.mk +++ b/os/lib/lib.mk @@ -17,7 +17,7 @@ ifneq ($(findstring CH_CFG_USE_MEMCORE TRUE,$(CHLIBCONF)),) LIBSRC += $(CHIBIOS)/os/lib/src/chmemcore.c endif ifneq ($(findstring CH_CFG_USE_HEAP TRUE,$(CHLIBCONF)),) -LIBSRC += $(CHIBIOS)/os/lib/src/chheap.c +LIBSRC += $(CHIBIOS)/os/lib/src/chmemheaps.c endif ifneq ($(findstring CH_CFG_USE_MEMPOOLS TRUE,$(CHLIBCONF)),) LIBSRC += $(CHIBIOS)/os/lib/src/chmempools.c @@ -28,7 +28,7 @@ endif else LIBSRC := $(CHIBIOS)/os/lib/src/chmboxes.c \ $(CHIBIOS)/os/lib/src/chmemcore.c \ - $(CHIBIOS)/os/lib/src/chheap.c \ + $(CHIBIOS)/os/lib/src/chmemheaps.c \ $(CHIBIOS)/os/lib/src/chmempools.c \ $(CHIBIOS)/os/lib/src/chfactory.c endif diff --git a/os/lib/src/chheap.c b/os/lib/src/chmemheaps.c similarity index 96% rename from os/lib/src/chheap.c rename to os/lib/src/chmemheaps.c index d3d25458f..ebbd46bad 100644 --- a/os/lib/src/chheap.c +++ b/os/lib/src/chmemheaps.c @@ -18,10 +18,10 @@ */ /** - * @file chheap.c - * @brief Heaps code. + * @file chmemheaps.c + * @brief Memory heaps code. * - * @addtogroup heaps + * @addtogroup memheaps * @details Heap Allocator related APIs. *

Operation mode

* The heap allocator implements a first-fit strategy and its APIs