2013-04-01 00:18:52 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
*
|
2014-11-09 15:06:25 +01:00
|
|
|
* 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-04-01 00:18:52 +02:00
|
|
|
*/
|
2014-02-11 18:15:43 +01:00
|
|
|
|
2013-11-27 16:28:31 +01:00
|
|
|
/**
|
2013-11-27 17:54:30 +01:00
|
|
|
* @defgroup mc1322x Freescale MC1322x
|
|
|
|
* @ingroup cpu
|
|
|
|
* @brief Freescale MC1322x specific code
|
2014-11-30 21:46:31 +01:00
|
|
|
* @{
|
2013-11-27 16:28:31 +01:00
|
|
|
*/
|
2013-04-01 00:18:52 +02:00
|
|
|
|
|
|
|
#ifndef CPU_H
|
2014-02-11 18:15:43 +01:00
|
|
|
#define CPU_H
|
2013-04-01 00:18:52 +02:00
|
|
|
|
2013-10-24 13:53:09 +02:00
|
|
|
#include <stdbool.h>
|
2013-04-02 02:06:24 +02:00
|
|
|
#include "arm_cpu.h"
|
2013-04-01 02:11:43 +02:00
|
|
|
#include "mc1322x.h"
|
2013-04-01 00:18:52 +02:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 16:45:34 +02:00
|
|
|
/**
|
|
|
|
* @brief End of user stack memory
|
|
|
|
*/
|
|
|
|
extern uintptr_t __stack_start;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Install a interrupt service routine
|
|
|
|
*
|
|
|
|
* @param[in] int_number interrupt source
|
|
|
|
* @param[in] handler_addr interrupt function
|
|
|
|
* @param[in] priority interrupt priority
|
|
|
|
*
|
|
|
|
* @return true on success
|
|
|
|
* @return false on error
|
|
|
|
*/
|
2013-10-24 13:53:09 +02:00
|
|
|
bool install_irq(int int_number, void *handler_addr, int priority);
|
2013-04-01 00:18:52 +02:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-04-01 00:18:52 +02:00
|
|
|
#endif /* CPU_H */
|
2015-05-26 16:45:34 +02:00
|
|
|
/** @} */
|