Sep 12, 2020
12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 12, 2020
12:32 PM
void led_timer_cb (
uint8_t port,
timer_id_t id)
{
(void)port;
(void)id;
gpio_set_value (FW_LED_GRREN_GPIO_PORT_PIN, !(gpio_read_value (FW_LED_GRREN_GPIO_PORT_PIN)));
timer_start (0, LED_TIMER_ID, LED_TIMER_PERIOD, led_timer_cb);
}
if i put more code i have stack overflow for example send I2C master and expeted recieve answer from slave
Labels
1 Reply
Sep 13, 2020
10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 13, 2020
10:59 PM
Hi ,
It should be no issue to add send I2C master (Write or read) in the timer call back function. Could you please kindly screen shot the error you have been met for stack overflow?
Best Regards,
Lisa