you can use bsp_interrupt_vector_enable/bsp_interrupt_vector_disable

------------------ Original ------------------
From:&nbsp;"Andy James"<a.ja...@sstl.co.uk&gt;;
Date:&nbsp;Mon, Dec 16, 2019 06:27 PM
To:&nbsp;"users@rtems.org"<users@rtems.org&gt;;

Subject:&nbsp;Disabling Zynq interrupts



  
How do I mask specific fabric interrupts in RTEMS 5 on the Zynq, apart from 
disabling them in the attached peripheral??s interrupt enable register?
 
I??m looking for something similar to this, but &nbsp;for the Zynq
 
#define LEON_Mask_interrupt( _source ) \
 
&nbsp; do { \
 
&nbsp; &nbsp; uint32_t _level; \
 
&nbsp; &nbsp; \
 
&nbsp; &nbsp; _level = sparc_disable_interrupts(); \
 
&nbsp;&nbsp;&nbsp; &nbsp; LEON_REG.Interrupt_Mask &amp;= ~(1 << (_source)); \
 
&nbsp; &nbsp; sparc_enable_interrupts( _level ); \
 
&nbsp; } while (0)
 
 

 

 The information contained in this message is intended for the addressee only 
and may contain sensitive information. If you are not the addressee, please 
delete this message and notify the sender; you should not copy or distribute 
this message or disclose its contents to anyone. Any views or opinions 
expressed in this message are those of the individual(s) and not necessarily of 
the organisation. No reliance may be placed on this message without written 
confirmation from an authorised representative of its contents. No guarantee is 
implied that this message or any attachment is virus free or has not been 
intercepted and amended.
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to