@@ -33,29 +33,29 @@ mod inner {
3333 }
3434
3535 /// Placeholder function to check if an IRQ is pending
36- pub fn check_irq_pending ( irq : rp235x_pac:: Interrupt ) -> bool {
36+ pub fn interrrupt_is_pending ( irq : rp235x_pac:: Interrupt ) -> bool {
3737 cortex_m:: peripheral:: NVIC :: is_pending ( irq)
3838 }
3939
40- /// Placeholder function to enable an IRQ
40+ /// Enable an RP235x IRQ
4141 ///
4242 /// This function is unsafe because it can break mask-based critical sections.
43- pub unsafe fn enable_irq ( irq : rp235x_pac:: Interrupt ) {
43+ pub unsafe fn interrupt_unmask ( irq : rp235x_pac:: Interrupt ) {
4444 unsafe { cortex_m:: peripheral:: NVIC :: unmask ( irq) }
4545 }
4646
47- /// Placeholder function to disable an IRQ
48- pub fn disable_irq ( irq : rp235x_pac:: Interrupt ) {
47+ /// Disable an RP235x IRQ
48+ pub fn interrupt_mask ( irq : rp235x_pac:: Interrupt ) {
4949 cortex_m:: peripheral:: NVIC :: mask ( irq)
5050 }
5151
52- /// Placeholder function to check if an IRQ is enabled
53- pub fn is_irq_enabled ( irq : rp235x_pac:: Interrupt ) -> bool {
52+ /// Check if an RP235x IRQ is enabled
53+ pub fn interrupt_is_enabled ( irq : rp235x_pac:: Interrupt ) -> bool {
5454 cortex_m:: peripheral:: NVIC :: is_enabled ( irq)
5555 }
5656
57- /// Placeholder function to mark an IRQ as pending
58- pub fn set_pending ( irq : rp235x_pac:: Interrupt ) {
57+ /// Mark an RP235x IRQ as pending
58+ pub fn interrupt_pend ( irq : rp235x_pac:: Interrupt ) {
5959 cortex_m:: peripheral:: NVIC :: pend ( irq)
6060 }
6161}
@@ -67,8 +67,8 @@ mod inner {
6767
6868 /// Enable interrupts
6969 ///
70- /// Our version is sure to enable Machine External interrupt as well as the
71- /// global interrupt flag.
70+ /// Enable the Machine External interrupt as well as the global interrupt
71+ /// flag.
7272 #[ inline( always) ]
7373 pub fn interrupt_enable ( ) {
7474 unsafe {
@@ -109,7 +109,8 @@ mod inner {
109109 }
110110
111111 pub use crate :: xh3irq:: {
112- check_irq_pending, disable_irq, enable_irq, is_irq_enabled, set_pending,
112+ is_enabled as interrupt_is_enabled, is_pending as interrrupt_is_pending,
113+ mask as interrupt_mask, pend as interrupt_pend, unmask as interrupt_unmask,
113114 } ;
114115
115116 #[ no_mangle]
@@ -512,25 +513,25 @@ mod inner {
512513 pub fn sev ( ) { }
513514
514515 /// Placeholder function to check if an IRQ is pending
515- pub fn check_irq_pending ( irq : rp235x_pac:: Interrupt ) -> bool {
516+ pub fn interrrupt_is_pending ( irq : rp235x_pac:: Interrupt ) -> bool {
516517 false
517518 }
518519
519520 /// Placeholder function to enable an IRQ
520521 ///
521522 /// This function is unsafe because it can break mask-based critical sections.
522- pub unsafe fn enable_irq ( irq : rp235x_pac:: Interrupt ) { }
523+ pub unsafe fn interrupt_mask ( irq : rp235x_pac:: Interrupt ) { }
523524
524525 /// Placeholder function to disable an IRQ
525- pub fn disable_irq ( irq : rp235x_pac:: Interrupt ) { }
526+ pub fn interrupt_unmask ( irq : rp235x_pac:: Interrupt ) { }
526527
527528 /// Placeholder function to check if an IRQ is enabled
528- pub fn is_irq_enabled ( irq : rp235x_pac:: Interrupt ) -> bool {
529+ pub fn interrupt_is_enabled ( irq : rp235x_pac:: Interrupt ) -> bool {
529530 false
530531 }
531532
532533 /// Placeholder function to mark an IRQ as pending
533- pub fn set_pending ( irq : rp235x_pac:: Interrupt ) { }
534+ pub fn interrupt_pend ( irq : rp235x_pac:: Interrupt ) { }
534535}
535536
536537pub use inner:: * ;
0 commit comments