1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu: unify naming of ISR stacksize macro

This commit is contained in:
MohmadAyman 2016-06-01 19:37:40 +02:00 committed by Martine Lenders
parent 4a70299d6a
commit 720136491a
7 changed files with 10 additions and 6 deletions

View File

@ -30,6 +30,7 @@ extern "C" {
#define THREAD_EXTRA_STACKSIZE_PRINTF (8192)
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (8192)
#define THREAD_STACKSIZE_MINIMUM (8192)
#define ISR_STACKSIZE (0)
#ifdef __cplusplus
}

View File

@ -40,6 +40,7 @@ extern "C" {
#endif
#define THREAD_STACKSIZE_IDLE (128)
#define ISR_STACKSIZE (0)
/** @} */
#ifdef __cplusplus

View File

@ -51,6 +51,8 @@ extern "C" {
#endif
#define THREAD_STACKSIZE_IDLE (160)
#define ISR_STACKSIZE (0)
/** @} */
/**

View File

@ -75,7 +75,7 @@ extern volatile int __irq_is_in;
/**
* @brief Memory used as stack for the interrupt context
*/
extern char __isr_stack[MSP430_ISR_STACK_SIZE];
extern char __isr_stack[ISR_STACKSIZE];
/**
* @brief Save the current thread context from inside an ISR
@ -126,7 +126,7 @@ static inline void __attribute__((always_inline)) __restore_context(void)
static inline void __attribute__((always_inline)) __enter_isr(void)
{
__save_context();
__asm__("mov.w %0,r1" : : "i"(__isr_stack + MSP430_ISR_STACK_SIZE));
__asm__("mov.w %0,r1" : : "i"(__isr_stack + ISR_STACKSIZE));
__irq_is_in = 1;
}

View File

@ -25,7 +25,7 @@ extern "C" {
#endif
#define THREAD_STACKSIZE_IDLE (96)
#define MSP430_ISR_STACK_SIZE (256)
#define ISR_STACKSIZE (256)
#ifndef GNRC_PKTBUF_SIZE
#define GNRC_PKTBUF_SIZE (2560) /* TODO: Make this value

View File

@ -24,7 +24,7 @@
volatile int __irq_is_in = 0;
char __isr_stack[MSP430_ISR_STACK_SIZE];
char __isr_stack[ISR_STACKSIZE];
unsigned int irq_disable(void)
{

View File

@ -36,7 +36,7 @@ extern "C" {
#define THREAD_STACKSIZE_MINIMUM (163840)
/* native internal */
#define THREAD_STACKSIZE_MINIMUM (163840)
#define NATIVE_ISR_STACKSIZE (163840)
#define ISR_STACKSIZE (163840)
#else /* Linux etc. */
#define THREAD_STACKSIZE_DEFAULT (8192)
@ -46,7 +46,7 @@ extern "C" {
/* for core/include/thread.h */
#define THREAD_STACKSIZE_MINIMUM (8192)
/* native internal */
#define NATIVE_ISR_STACKSIZE (8192)
#define ISR_STACKSIZE (8192)
#endif /* OS */
/** @} */