Microchip® Advanced Software Framework

qs_events_interrupt_hook.c File Reference

SAM Event System Driver Quick Start.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "conf_qs_events_interrupt_hook.h"

Functions

static void configure_event_channel (struct events_resource *resource)
 
static void configure_event_interrupt (struct events_resource *resource, struct events_hook *hook)
 
static void configure_event_user (struct events_resource *resource)
 
static void configure_tc (struct tc_module *tc_instance)
 
void event_counter (struct events_resource *resource)
 [setup_14] More...
 
int main (void)
 [setup_14] More...
 

Variables

static volatile uint32_t event_count = 0
 [setup] More...
 

static void configure_event_channel ( struct events_resource resource)
static
static void configure_event_interrupt ( struct events_resource resource,
struct events_hook hook 
)
static

[setup_12]

[setup_12]

[setup_13]

[setup_13]

References event_counter(), events_add_hook(), events_create_hook(), events_enable_interrupt_source(), and EVENTS_INTERRUPT_DETECT.

Referenced by main().

static void configure_event_user ( struct events_resource resource)
static

[setup_5]

[setup_5]

References events_attach_user().

Referenced by main().

static void configure_tc ( struct tc_module tc_instance)
static
int main ( void  )

[setup_14]

[setup]

[setup_init]

[setup_init]

[main]

[main_1]

[main_1]

[main_2]

[main_2]

[main]

References configure_event_channel(), configure_event_interrupt(), configure_event_user(), configure_tc(), events_is_busy(), system_init(), system_interrupt_enable_global(), and tc_start_counter().

volatile uint32_t event_count = 0
static

[setup]

Referenced by event_counter().