From b11be56334418c3610e2519deac5d60e11fedb26 Mon Sep 17 00:00:00 2001 From: Fabiano Riccardi <fabiuz4@hotmail.it> Date: Mon, 19 Sep 2016 02:25:10 -0700 Subject: [PATCH] Fixed a compilation problem with wandstem board Signed-off-by: Fabiano Riccardi <fabiuz4@hotmail.it> --- .../cortexM3_efm32gg/common/interfaces-impl/fixme_dma.h | 7 ++++--- .../common/interfaces-impl/portability.cpp | 1 + .../efm32gg332f1024_wandstem/board_settings.h | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/fixme_dma.h b/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/fixme_dma.h index 87587c1c..95c9b444 100644 --- a/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/fixme_dma.h +++ b/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/fixme_dma.h @@ -2,9 +2,10 @@ * FIXXX ME ***************************************************************************/ -#ifndef PORTABILITY_H -#define PORTABILITY_H +#ifndef PORTABILITY_FIXME_H +#define PORTABILITY_FIXME_H +namespace miosix_private{ #define DMA_CHANNEL_ADC 0 @@ -118,6 +119,6 @@ void waitRtc(int val); void initRtc(); void IRQdeepSleep(); - +} #endif diff --git a/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/portability.cpp b/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/portability.cpp index 4efe0740..6b542995 100644 --- a/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/portability.cpp +++ b/miosix/arch/cortexM3_efm32gg/common/interfaces-impl/portability.cpp @@ -33,6 +33,7 @@ #include "kernel/scheduler/scheduler.h" #include "kernel/scheduler/timer_interrupt.h" #include <algorithm> +#include "fixme_dma.h" #define ADCSAMPLES 1024 diff --git a/miosix/config/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/board_settings.h b/miosix/config/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/board_settings.h index 20cb611b..44ff1253 100644 --- a/miosix/config/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/board_settings.h +++ b/miosix/config/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/board_settings.h @@ -53,6 +53,9 @@ namespace miosix { /// Size of stack for main(). const unsigned int MAIN_STACK_SIZE=4096; +const unsigned int preemptionPeriodNs=1000000; + + /// Frequency of tick (in Hz). The frequency of the efm32gg332f1024 timer in /// the board can be divided by 1000. This allows to use a 1KHz tick and /// the minimun Thread::sleep value is 1ms -- GitLab