|
|
@ -27,7 +27,6 @@ extern "C" {
|
|
|
|
/*! interrupt callback type for the handler */
|
|
|
|
/*! interrupt callback type for the handler */
|
|
|
|
typedef void (*intHandler_t)(void);
|
|
|
|
typedef void (*intHandler_t)(void);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: showe this into hardware description
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Initialize Interrupt
|
|
|
|
* @brief Initialize Interrupt
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -47,7 +46,7 @@ typedef void (*intHandler_t)(void);
|
|
|
|
* @param priority the interrupt priority
|
|
|
|
* @param priority the interrupt priority
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void intInit(
|
|
|
|
void intInit(
|
|
|
|
intType_t intType,
|
|
|
|
intrType_t intType,
|
|
|
|
intHandler_t handler,
|
|
|
|
intHandler_t handler,
|
|
|
|
uint8_t priority);
|
|
|
|
uint8_t priority);
|
|
|
|
|
|
|
|
|
|
|
@ -77,7 +76,7 @@ void intDisableAll();
|
|
|
|
* @param intType interrupt type
|
|
|
|
* @param intType interrupt type
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void intEnable(
|
|
|
|
void intEnable(
|
|
|
|
intType_t intType);
|
|
|
|
intrType_t intType);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -91,7 +90,7 @@ void intEnable(
|
|
|
|
* @param intType interrupt type
|
|
|
|
* @param intType interrupt type
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void intDisable(
|
|
|
|
void intDisable(
|
|
|
|
intType_t intType);
|
|
|
|
intrType_t intType);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
}
|
|
|
|