reformat the coding style in rthw.h

This commit is contained in:
yiyue.fang 2013-06-29 13:33:06 +08:00
parent cf0db957f2
commit 62c5115282
1 changed files with 11 additions and 10 deletions

View File

@ -56,13 +56,14 @@ rt_uint8_t *rt_hw_stack_init(void *entry,
*/ */
typedef void (*rt_isr_handler_t)(int vector, void *param); typedef void (*rt_isr_handler_t)(int vector, void *param);
struct rt_irq_desc { struct rt_irq_desc
rt_isr_handler_t handler; {
void *param; rt_isr_handler_t handler;
void *param;
#ifdef RT_USING_INTERRUPT_INFO #ifdef RT_USING_INTERRUPT_INFO
char name[RT_NAME_MAX]; char name[RT_NAME_MAX];
rt_uint32_t counter; rt_uint32_t counter;
#endif #endif
}; };
@ -72,10 +73,10 @@ struct rt_irq_desc {
void rt_hw_interrupt_init(void); void rt_hw_interrupt_init(void);
void rt_hw_interrupt_mask(int vector); void rt_hw_interrupt_mask(int vector);
void rt_hw_interrupt_umask(int vector); void rt_hw_interrupt_umask(int vector);
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t rt_hw_interrupt_install(int vector,
rt_isr_handler_t handler, rt_isr_handler_t handler,
void *param, void *param,
char *name); char *name);
rt_base_t rt_hw_interrupt_disable(void); rt_base_t rt_hw_interrupt_disable(void);
void rt_hw_interrupt_enable(rt_base_t level); void rt_hw_interrupt_enable(rt_base_t level);
@ -95,7 +96,7 @@ void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size);
/* /*
* Exception interfaces * Exception interfaces
*/ */
void rt_hw_exception_install(rt_err_t (*exception_handle)(void* context)); void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context));
#ifdef __cplusplus #ifdef __cplusplus
} }