STM8 - SDUINO - INTERRUPTS

Arduino on the STM8 (8 bit processor)
Post Reply
cfb95
Posts: 2
Joined: Wed Jun 13, 2018 4:37 pm

STM8 - SDUINO - INTERRUPTS

Post by cfb95 » Wed Jun 13, 2018 5:15 pm

Hi,
i'm trying to use SDUINO on a cheap STM8S103F3 with external interrupts.
for example interrupt on pin 0 = PA1
Is possible to use attachInterrupt as Arduino does? parameters?
or i need to use StdPeriph api like this:

Code: Select all

  GPIO_Init(GPIOA,GPIO_PIN_1,GPIO_MODE_IN_FL_IT);
  EXTI_SetExtIntSensitivity(EXTI_PORT_GPIOA, EXTI_SENSITIVITY_RISE_ONLY);
  EXTI_SetTLISensitivity(EXTI_TLISENSITIVITY_RISE_ONLY);
  enableInterrupts();
or combination of both Arduino style + StdPeriph ?

Any example, doc, etc are welcome!
Thanks

dannyf
Posts: 331
Joined: Wed May 11, 2016 4:29 pm

Re: STM8 - SDUINO - INTERRUPTS

Post by dannyf » Sun Jun 17, 2018 2:52 pm

it cannot be that difficult to just set/clear a few bits to get exti work.

ElDominio
Posts: 12
Joined: Wed Feb 28, 2018 9:32 pm

Re: STM8 - SDUINO - INTERRUPTS

Post by ElDominio » Tue Dec 04, 2018 11:48 pm

This would be nice for sure! This would be great now that EEPROM has been implemented

Post Reply