2018-04-16 19:03:33 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Ken Rabold
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_fe310
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief CPU specific definitions for internal peripheral handling
|
|
|
|
*
|
|
|
|
* @author Ken Rabold
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PERIPH_CPU_H
|
|
|
|
#define PERIPH_CPU_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Length of the CPU_ID in octets
|
|
|
|
*/
|
|
|
|
#define CPUID_LEN (12U)
|
|
|
|
|
2018-09-07 22:15:13 +02:00
|
|
|
/**
|
|
|
|
* @brief Prevent shared timer functions from being used
|
|
|
|
*/
|
|
|
|
#define PERIPH_TIMER_PROVIDES_SET
|
|
|
|
|
2018-04-16 19:03:33 +02:00
|
|
|
/**
|
|
|
|
* @brief Timer ISR
|
|
|
|
*/
|
|
|
|
void timer_isr(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief External ISR callback
|
|
|
|
*/
|
|
|
|
typedef void (*external_isr_ptr_t)(int intNum);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set External ISR callback
|
|
|
|
*/
|
|
|
|
void set_external_isr_cb(int intNum, external_isr_ptr_t cbFunc);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PERIPH_CPU_H */
|
|
|
|
/** @} */
|