parent
ba96408f37
commit
fea4970142
3 changed files with 15 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue