Pages: [1]   Go Down
Author Topic: Interrupt code missing.  (Read 1603 times)
0 Members and 1 Guest are viewing this topic.
North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 53
Posts: 1786
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.

  }
}
Logged


nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8453
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep, see here

http://arduino.cc/forum/index.php/topic,128525.0.html

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 53
Posts: 1786
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

haha, cheers
Logged


Pages: [1]   Go Up
Jump to: