From 411a650e6274a291891f3a66a3897c42fb929e8b Mon Sep 17 00:00:00 2001 From: polymurph Date: Fri, 12 Nov 2021 09:53:47 +0100 Subject: [PATCH] added comments to code --- bsl/csl/interfaces/pin.h | 1 + bsl/csl/stm32f042/Device/hardwareDescription.h | 4 ++++ bsl/csl/stm32f042/Src/pin.c | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bsl/csl/interfaces/pin.h b/bsl/csl/interfaces/pin.h index 76e7283..3c538ad 100644 --- a/bsl/csl/interfaces/pin.h +++ b/bsl/csl/interfaces/pin.h @@ -29,6 +29,7 @@ extern "C" { #endif #include +// include the target device definitions -> CMAKE chooses the correct file #include "hardwareDescription.h" #ifdef RASPBERRY diff --git a/bsl/csl/stm32f042/Device/hardwareDescription.h b/bsl/csl/stm32f042/Device/hardwareDescription.h index 7a8b9eb..5171ed8 100644 --- a/bsl/csl/stm32f042/Device/hardwareDescription.h +++ b/bsl/csl/stm32f042/Device/hardwareDescription.h @@ -1,6 +1,10 @@ /*! Enum of the awailable pins for this package */ #include "stm32f042x6.h" +// this file contains all the specific hardware definitions for the given chip stm32f042x6. +// Its used for the interfaces for the CSL. + + #define PACKAGE_LQFP32 1 #define MAX_USART_CHANNEL_COUNT 2 diff --git a/bsl/csl/stm32f042/Src/pin.c b/bsl/csl/stm32f042/Src/pin.c index 037858e..5697267 100644 --- a/bsl/csl/stm32f042/Src/pin.c +++ b/bsl/csl/stm32f042/Src/pin.c @@ -21,7 +21,6 @@ */ #include "pin.h" - #include #define MODER_IN 0x0UL