Jump to content
reaper7

[Energia Library] StellarPad rc-switch library (info only)

Recommended Posts

Is anybody has success check functionality on lm4f120?

Door sensor has 2262 proc, 

receiver data pin connected to PB_5 = 2,

but no success result :(

Share this post


Link to post
Share on other sites

I adopt your code in clear C code IAR project by adding wiring.h

 

In my configuration i use pin PB5

void Init_rcswitch(void){

  ROM_GPIOPinTypeGPIOInput(GPIO_PORTB_BASE, GPIO_PIN_5); // configure PIN
  ROM_GPIOIntTypeSet(GPIO_PORTB_BASE, GPIO_PIN_5, GPIO_BOTH_EDGES); // invoke on any changes
  ROM_GPIOPinIntEnable(GPIO_PORTB_BASE, GPIO_PIN_5); // PB5
  IntEnable(INT_GPIOB); //sets the interrupt controller to interrupt on GPIO port B 
}
 
// our isr handle
void recv_PortPin(void){
        ROM_GPIOPinIntClear(GPIO_PORTB_BASE, GPIO_PIN_5);
 

 ....

last string is important :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×