Skip to content
Snippets Groups Projects
Commit b11be563 authored by Fabiano Riccardi's avatar Fabiano Riccardi Committed by Federico
Browse files

Fixed a compilation problem with wandstem board

parent f63d2dd4
No related branches found
No related tags found
2 merge requests!40Update to Miosix 2.7,!17Draft: Improved miosix build system and fixed cmake scripts
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
* FIXXX ME * FIXXX ME
***************************************************************************/ ***************************************************************************/
#ifndef PORTABILITY_H #ifndef PORTABILITY_FIXME_H
#define PORTABILITY_H #define PORTABILITY_FIXME_H
namespace miosix_private{
#define DMA_CHANNEL_ADC 0 #define DMA_CHANNEL_ADC 0
...@@ -118,6 +119,6 @@ void waitRtc(int val); ...@@ -118,6 +119,6 @@ void waitRtc(int val);
void initRtc(); void initRtc();
void IRQdeepSleep(); void IRQdeepSleep();
}
#endif #endif
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "kernel/scheduler/scheduler.h" #include "kernel/scheduler/scheduler.h"
#include "kernel/scheduler/timer_interrupt.h" #include "kernel/scheduler/timer_interrupt.h"
#include <algorithm> #include <algorithm>
#include "fixme_dma.h"
#define ADCSAMPLES 1024 #define ADCSAMPLES 1024
......
...@@ -53,6 +53,9 @@ namespace miosix { ...@@ -53,6 +53,9 @@ namespace miosix {
/// Size of stack for main(). /// Size of stack for main().
const unsigned int MAIN_STACK_SIZE=4096; const unsigned int MAIN_STACK_SIZE=4096;
const unsigned int preemptionPeriodNs=1000000;
/// Frequency of tick (in Hz). The frequency of the efm32gg332f1024 timer in /// 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 board can be divided by 1000. This allows to use a 1KHz tick and
/// the minimun Thread::sleep value is 1ms /// the minimun Thread::sleep value is 1ms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment