Go Down

Topic: Interrupt code missing. (Read 2812 times) previous topic - next topic


I'm in the middle of exploring the new core, I noticed the function attachInterrupt is short a few lines.
I realise the core is in beta, just not sure weather its known as the function isn't marked with a comment.

Code: [Select]
void attachInterrupt( uint32_t ulInterrupt, void (*pfn_UserFunc)(void), uint32_t ulMode )
  if ( ulInterrupt < EXTERNAL_NUM_INTERRUPTS )
    g_apfn_IntFunc[ulInterrupt] = pfn_UserFunc ;

    // Configure the interrupt mode (trigger on low input, any change, rising
    // edge, or falling edge).  The mode constants were chosen to correspond
    // to the configuration bits in the hardware register, so we simply shift
    // the mode into place.

    // Enable the interrupt.

Forum Mod anyone?


Rob Gray aka the GRAYnomad www.robgray.com


Forum Mod anyone?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131