cc253x: Configurable linkage for the P2 ISR

See Pull Request #18
This commit is contained in:
George Oikonomou 2012-08-16 14:53:43 +01:00
parent ba96408f37
commit fea4970142
3 changed files with 15 additions and 0 deletions

View file

@ -45,7 +45,11 @@ void cc253x_p2_register_handler(struct cc253x_p2_handler *h);
void cc253x_p2_unregister_handler(struct cc253x_p2_handler *h);
/* When the ISR is not needed, hide its prototype from the module containing
* main() to prevent linking it */
#if PORT_2_ISR_ENABLED
void cc253x_p2_int(void) __interrupt(P2INT_VECTOR);
#endif
#define cc253x_p2_irq_disable(flag) do { flag = IEN2 & 0x2; IEN2 &= ~0x2; } while(0)
#define cc253x_p2_irq_enable(flag) do { IEN2 |= flag; } while(0)