mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-11 18:33:16 +01:00
STM8 port: Add RTOS port for IAR EWSTM8 compiler.
* Split assembler routines into -cosmic.s and -iar.s. * Split Cosmic and IAR specific code using __CSMC__ and __IAR_SYSTEMS_ICC__. * Context-switch virtual registers on IAR. * Add detailed description of IAR context-switch scheme. * Add sample IAR project. * Add support for IAR to STM8S peripheral driver modules. * Fix EWSTM8 compiler warnings.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "atom.h"
|
||||
#include "atomport-private.h"
|
||||
#include "atomport-tests.h"
|
||||
#include "atomtests.h"
|
||||
#include "atomtimer.h"
|
||||
#include "uart.h"
|
||||
@@ -104,10 +105,10 @@ extern int _stack;
|
||||
static ATOM_TCB main_tcb;
|
||||
|
||||
/* Main thread's stack area (large so place outside of the small page0 area on STM8) */
|
||||
@near static uint8_t main_thread_stack[MAIN_STACK_SIZE_BYTES];
|
||||
NEAR static uint8_t main_thread_stack[MAIN_STACK_SIZE_BYTES];
|
||||
|
||||
/* Idle thread's stack area (large so place outside of the small page0 area on STM8) */
|
||||
@near static uint8_t idle_thread_stack[IDLE_STACK_SIZE_BYTES];
|
||||
NEAR static uint8_t idle_thread_stack[IDLE_STACK_SIZE_BYTES];
|
||||
|
||||
|
||||
/* Forward declarations */
|
||||
@@ -162,9 +163,6 @@ void main ( void )
|
||||
}
|
||||
}
|
||||
|
||||
while (1)
|
||||
;
|
||||
|
||||
/* There was an error starting the OS if we reach here */
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user