dm36x: Move ISR registration to header available from application code.

This commit is contained in:
Kelvin Lawson
2013-11-02 17:42:49 +00:00
parent 4cf4d722ea
commit 9f5e709ba2
2 changed files with 6 additions and 4 deletions

View File

@@ -30,12 +30,8 @@
#ifndef __ATOM_PORT_PRIVATE_H
#define __ATOM_PORT_PRIVATE_H
/* ISR handler prototype used for registration of interuppt handlers */
typedef void (*ISR_FUNC)(void);
/* Function prototypes */
extern void archIRQHandler (void);
extern int archISRInstall (int int_vector, ISR_FUNC isr_func);
/* Platform-specific interrupt dispatcher called on receipt of IRQ */
extern void __interrupt_dispatcher (void);

View File

@@ -56,6 +56,12 @@ extern void archUsleep (int32_t microsecs);
extern int32_t archUsleepStart (void);
extern int archUsleepCheckExpired (int32_t start_time, int32_t delay_usecs);
/**
* ISR handler registration (optional, not available on all ports)
*/
typedef void (*ISR_FUNC)(void);
extern int archISRInstall (int int_vector, ISR_FUNC isr_func);
/**
*
* Functions defined in atomport_arm.asm