cc253x: Renamed the P2 ISR

This is mainly a naming convention thing, we want to have 'isr'
as part of the name, instead of 'int'. We also want port_2 instead
of p2 because we already had port_1

See Pull Request #18
This commit is contained in:
George Oikonomou 2012-08-16 14:56:35 +01:00
parent fea4970142
commit d9d4fa168d
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static struct cc253x_p2_handler *handlers = NULL;
void
cc253x_p2_int(void) __interrupt(P2INT_VECTOR)
port_2_isr(void) __interrupt(P2INT_VECTOR)
{
struct cc253x_p2_handler *h;
uint8_t handled = 0;

View file

@ -48,7 +48,7 @@ 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);
void port_2_isr(void) __interrupt(P2INT_VECTOR);
#endif
#define cc253x_p2_irq_disable(flag) do { flag = IEN2 & 0x2; IEN2 &= ~0x2; } while(0)