This commit is contained in:
Markus Fröschle
2012-10-16 16:02:09 +00:00
parent d1c9dc074b
commit f26c457629
5 changed files with 7 additions and 84 deletions

View File

@@ -1,26 +1,4 @@
/******************************************************************************
FILE : startcf.h
PURPOSE : startup code for ColdFire
LANGUAGE: C
Notes:
1) Default entry point is _startup.
. disable interrupts
. the SP is set to __SP_AFTER_RESET
. SP must be initialized to valid memory
in case the memory it points to is not valid using MEMORY_INIT macro
2) __initialize_hardware is called. Here you can initialize memory and some peripherics
at this point global variables are not initialized yet
3) After __initialize_hardware memory is setup; initialize SP to _SP_INIT and perform
needed initialisations for the language (clear memory, data rom copy).
4) void __initialize_system(void); is called
to allow additional hardware initialization (UART, GPIOs, etc...)
5) Jump to main
*/
/********************************************************************************/
#ifdef _NOT_USED_
#define cf_stack
//#define ii_on
@@ -39,6 +17,7 @@
#define halten_exg
#define halten_movep
#define halten_ewf
#endif /* _NOT_USED_ */
#define DIP_SWITCH (*(volatile uint8_t *)(&_MBAR[0xA2C]))
#define DIP_SWITCHa __MBAR + 0xA2C