2014-10-18 18:54:12 +02:00
|
|
|
/**
|
|
|
|
* Copyright (C) 2014 Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
2013-11-09 00:43:35 +01:00
|
|
|
#ifndef CPU_H
|
|
|
|
#define CPU_H
|
|
|
|
|
|
|
|
/**
|
2014-02-11 18:15:43 +01:00
|
|
|
* @defgroup lpc1768 NXP LPC1768
|
2014-05-24 15:56:57 +02:00
|
|
|
* @brief NXP LPC1768 specific code
|
2014-05-24 15:57:29 +02:00
|
|
|
* @ingroup cpu
|
2013-11-09 00:43:35 +01:00
|
|
|
* @{
|
2014-10-18 18:54:12 +02:00
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
2013-11-09 00:43:35 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LPC17xx.h"
|
|
|
|
#include "core_cm3.h"
|
|
|
|
#include "core_cmFunc.h"
|
|
|
|
|
|
|
|
extern void dINT(void);
|
|
|
|
extern void eINT(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Save the thread's context
|
|
|
|
*/
|
|
|
|
void save_context(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Restores the before saved context of a thread
|
|
|
|
*/
|
|
|
|
void restore_context(void);
|
|
|
|
|
|
|
|
/**
|
2014-10-18 01:24:49 +02:00
|
|
|
* @brief Let the scheduler yield
|
2013-11-09 00:43:35 +01:00
|
|
|
*/
|
2014-10-18 01:24:49 +02:00
|
|
|
void thread_yield_higher(void);
|
2013-11-09 00:43:35 +01:00
|
|
|
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#endif /* CPU_H */
|