@@ -253,26 +253,21 @@ void posix_irq_full_unlock(void)
253253	hw_irq_ctrl_change_lock (false);
254254}
255255
256- void  z_arch_irq_enable (unsigned int   irq )
256+ void  posix_irq_enable (unsigned int   irq )
257257{
258258	hw_irq_ctrl_enable_irq (irq );
259259}
260260
261- void  z_arch_irq_disable (unsigned int   irq )
261+ void  posix_irq_disable (unsigned int   irq )
262262{
263263	hw_irq_ctrl_disable_irq (irq );
264264}
265265
266- int  z_arch_irq_is_enabled (unsigned int   irq )
266+ int  posix_irq_is_enabled (unsigned int   irq )
267267{
268268	return  hw_irq_ctrl_is_irq_enabled (irq );
269269}
270270
271- void  z_arch_isr_direct_header (void )
272- {
273- 	/* Nothing to be done */ 
274- }
275- 
276271int  posix_get_current_irq (void )
277272{
278273	return  currently_running_irq ;
@@ -281,8 +276,8 @@ int posix_get_current_irq(void)
281276/** 
282277 * Configure a static interrupt. 
283278 * 
284-  * z_isr_declare  will populate the interrupt table table with the interrupt's  
285-  * parameters, the vector table and the software ISR table. 
279+  * posix_isr_declare  will populate the interrupt table table with the 
280+  * interrupt's  parameters, the vector table and the software ISR table. 
286281 * 
287282 * We additionally set the priority in the interrupt controller at 
288283 * runtime. 
@@ -293,7 +288,7 @@ int posix_get_current_irq(void)
293288 * @param isr_param_p ISR parameter 
294289 * @param flags_p IRQ options 
295290 */ 
296- void  z_isr_declare (unsigned int   irq_p , int  flags , void  isr_p (void  * ),
291+ void  posix_isr_declare (unsigned int   irq_p , int  flags , void  isr_p (void  * ),
297292		void  * isr_param_p )
298293{
299294	irq_vector_table [irq_p ].irq    =  irq_p ;
@@ -311,35 +306,11 @@ void z_isr_declare(unsigned int irq_p, int flags, void isr_p(void *),
311306 * 
312307 * @return N/A 
313308 */ 
314- void  z_irq_priority_set (unsigned int   irq , unsigned int   prio , uint32_t  flags )
309+ void  posix_irq_priority_set (unsigned int   irq , unsigned int   prio , uint32_t  flags )
315310{
316311	hw_irq_ctrl_prio_set (irq , prio );
317312}
318313
319- #ifdef  CONFIG_DYNAMIC_INTERRUPTS 
320- /** 
321-  * Configure a dynamic interrupt. 
322-  * 
323-  * Use this instead of IRQ_CONNECT() if arguments cannot be known at build time. 
324-  * 
325-  * @param irq IRQ line number 
326-  * @param priority Interrupt priority 
327-  * @param routine Interrupt service routine 
328-  * @param parameter ISR parameter 
329-  * @param flags Arch-specific IRQ configuration flags 
330-  * 
331-  * @return The vector assigned to this interrupt 
332-  */ 
333- int  z_arch_irq_connect_dynamic (unsigned int   irq , unsigned int   priority ,
334- 			     void  (* routine )(void  * parameter ), void  * parameter ,
335- 			     u32_t  flags )
336- {
337- 	z_isr_declare (irq , (int )flags , routine , parameter );
338- 	z_irq_priority_set (irq , priority , flags );
339- 	return  irq ;
340- }
341- #endif  /* CONFIG_DYNAMIC_INTERRUPTS */ 
342- 
343314/** 
344315 * Similar to ARM's NVIC_SetPendingIRQ 
345316 * set a pending IRQ from SW 
@@ -382,14 +353,14 @@ static void offload_sw_irq_handler(void *a)
382353 * 
383354 * Raise the SW IRQ assigned to handled this 
384355 */ 
385- void  z_arch_irq_offload (irq_offload_routine_t  routine , void  * parameter )
356+ void  posix_irq_offload (irq_offload_routine_t  routine , void  * parameter )
386357{
387358	off_routine  =  routine ;
388359	off_parameter  =  parameter ;
389- 	z_isr_declare (OFFLOAD_SW_IRQ , 0 , offload_sw_irq_handler , NULL );
390- 	z_arch_irq_enable (OFFLOAD_SW_IRQ );
360+ 	posix_isr_declare (OFFLOAD_SW_IRQ , 0 , offload_sw_irq_handler , NULL );
361+ 	posix_irq_enable (OFFLOAD_SW_IRQ );
391362	posix_sw_set_pending_IRQ (OFFLOAD_SW_IRQ );
392- 	z_arch_irq_disable (OFFLOAD_SW_IRQ );
363+ 	posix_irq_disable (OFFLOAD_SW_IRQ );
393364}
394365
395366/** 
0 commit comments