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

@ -98,6 +98,14 @@
#define CC2530_CONF_MAC_FROM_PRIMARY 1
#endif
/* Interrupt Number 6: Shared between P2 Inputs, I2C and USB
* A single ISR handles all of the above. Leave this as is if you are not
* interested in any of the above. Define as 1 (e.g. in project-conf.h) if
* at least one of those interrupt sources will need handled */
#ifndef PORT_2_ISR_ENABLED
#define PORT_2_ISR_ENABLED 0
#endif
/*
* Sensors
* It is harmless to #define XYZ 1

View file

@ -67,6 +67,9 @@
#if MODEL_CC2531
#define USB_CONF_ENABLE 1
/* Enabled the ISR for Interrupt Num 6 */
#define PORT_2_ISR_ENABLED 1
#ifndef USB_CONF_CLASS
#define DMA_CONF_ON 1
#define DMA_USB_CHANNEL 0