Home
last modified time | relevance | path

Searched refs:alarm_id (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/counter/
Drtc_mcp7940n.c155 static int encode_alarm(const struct device *dev, struct tm *time_buffer, uint8_t alarm_id) in encode_alarm() argument
161 if (alarm_id == ALARM0_ID) { in encode_alarm()
163 } else if (alarm_id == ALARM1_ID) { in encode_alarm()
332 static void mcp7940n_handle_interrupt(const struct device *dev, uint8_t alarm_id) in mcp7940n_handle_interrupt() argument
341 if (alarm_id == ALARM0_ID) { in mcp7940n_handle_interrupt()
344 } else if (alarm_id == ALARM1_ID) { in mcp7940n_handle_interrupt()
363 if (data->counter_handler[alarm_id]) { in mcp7940n_handle_interrupt()
364 cb = data->counter_handler[alarm_id]; in mcp7940n_handle_interrupt()
365 ticks = data->counter_ticks[alarm_id]; in mcp7940n_handle_interrupt()
373 cb(data->mcp7940n, 0, ticks, data->alarm_user_data[alarm_id]); in mcp7940n_handle_interrupt()
[all …]