|
|
|
@ -33,32 +33,11 @@ extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @name Kernel configuration
|
|
|
|
|
*
|
|
|
|
|
* The absolute minimum stack size is 140 byte (68 byte for the tcb + 72 byte
|
|
|
|
|
* for a complete context save).
|
|
|
|
|
*
|
|
|
|
|
* TODO: measure and adjust for the Cortex-M0
|
|
|
|
|
* @brief ARM Cortex-M specific CPU configuration
|
|
|
|
|
* @{
|
|
|
|
|
*/
|
|
|
|
|
#define THREAD_EXTRA_STACKSIZE_PRINTF (512)
|
|
|
|
|
|
|
|
|
|
#ifndef THREAD_STACKSIZE_DEFAULT
|
|
|
|
|
#define THREAD_STACKSIZE_DEFAULT (512)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define THREAD_STACKSIZE_IDLE (192)
|
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @name UART0 buffer size definition for compatibility reasons
|
|
|
|
|
*
|
|
|
|
|
* TODO: remove once the remodeling of the uart0 driver is done
|
|
|
|
|
* @{
|
|
|
|
|
*/
|
|
|
|
|
#ifndef UART0_BUFSIZE
|
|
|
|
|
#define UART0_BUFSIZE (128)
|
|
|
|
|
#endif
|
|
|
|
|
#define CPU_DEFAULT_IRQ_PRIO (1U)
|
|
|
|
|
#define CPU_IRQ_NUMOF (31U)
|
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -66,15 +45,6 @@ extern "C" {
|
|
|
|
|
*/
|
|
|
|
|
#define CPUID_ID_LEN (12)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Definition of different panic modes
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
HARD_FAULT, /**< hard fault */
|
|
|
|
|
NMI_HANDLER, /**< non maskable interrupt */
|
|
|
|
|
DUMMY_HANDLER /**< dummy interrupt handler */
|
|
|
|
|
} panic_t;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|