mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
50 lines
990 B
C
50 lines
990 B
C
/*
|
|
* Copyright (C) 2013 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.
|
|
*/
|
|
|
|
/**
|
|
* @defgroup mc1322x Freescale MC1322x
|
|
* @ingroup cpu
|
|
* @brief Freescale MC1322x specific code
|
|
* @{
|
|
*/
|
|
|
|
#ifndef CPU_H
|
|
#define CPU_H
|
|
|
|
#include <stdbool.h>
|
|
#include "arm_cpu.h"
|
|
#include "mc1322x.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @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
|
|
*/
|
|
bool install_irq(int int_number, void *handler_addr, int priority);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CPU_H */
|
|
/** @} */
|