- typedef void (*irqCallback) (void);
- irqCallback timerCBArray[] ={ timerCB0 };
- void ARDUINO_ISR_ATTR timerCB0(){
- portENTER_CRITICAL_ISR(&lock0);
- //manipulate class private and public variables
- portEXIT_CRITICAL_ISR(&lock0);
- }
- hw_timer_t * timer[3] = NULL;
- class myClass
- {
- private:
- irqCallback timmerCB;
- volatile uint8_t pri_var1,pri_var2;
- static uint8_t class_instance_number=0;
- public:
- volatile uint8_t pub_var1,pub_var2;
- myClass(/* args */);
- ~myClass();
- };
any help really appreciated