Microchip® Advanced Software Framework

qs_ccl_basic.c File Reference

SAM CCL Driver Quick Start.

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

#include <asf.h>

Functions

void configure_ccl (void)
 [setup] More...
 
void configure_ccl_lut0 (void)
 
void configure_ccl_lut1 (void)
 
int main (void)
 [setup] More...
 

void configure_ccl ( void  )

[setup]

Creates a new configuration structure for the CCL.

[setup_1]

[setup_1]

Settings and fill with the default settings.

[setup_2]

[setup_2]

Initialize the CCL with the user settings.

[setup_3]

[setup_3]

References ccl_get_config_defaults(), and ccl_init().

Referenced by main().

void configure_ccl_lut0 ( void  )

Creates a new configuration structure for the LUT0.

[setup_4]

[setup_4]

Settings and fill with the default settings.

[setup_5]

[setup_5]

Set the LUT0.

[setup_6]

[setup_6]

Set up LUT0 input and output pin.

[setup_7]

[setup_7]

Initialize and enable the LUT0 with the user settings.

[setup_8]

[setup_8]

References CCL_LUT_0, ccl_lut_get_config_defaults(), CCL_LUT_INPUT_SRC_IO, ccl_lut_set_config(), system_pinmux_config::direction, ccl_lut_config::filter_sel, ccl_lut_config::input0_src_sel, ccl_lut_config::input1_src_sel, ccl_lut_config::input2_src_sel, system_pinmux_config::mux_position, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, SYSTEM_PINMUX_PIN_DIR_OUTPUT, system_pinmux_pin_set_config(), and ccl_lut_config::truth_table_value.

Referenced by main().

void configure_ccl_lut1 ( void  )

Creates a new configuration structure for the LUT1.

[setup_9]

[setup_9]

Settings and fill with the default settings.

[setup_10]

[setup_10]

Set the LUT1.

[setup_11]

[setup_11]

Set up LUT1 input and output pin.

[setup_12]

[setup_12]

Initialize and enable the LUT1 with the user settings.

[setup_13]

[setup_13]

References CCL_LUT_1, ccl_lut_get_config_defaults(), CCL_LUT_INPUT_SRC_IO, ccl_lut_set_config(), system_pinmux_config::direction, ccl_lut_config::filter_sel, ccl_lut_config::input0_src_sel, ccl_lut_config::input1_src_sel, ccl_lut_config::input2_src_sel, system_pinmux_config::mux_position, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, SYSTEM_PINMUX_PIN_DIR_OUTPUT, system_pinmux_pin_set_config(), and ccl_lut_config::truth_table_value.

Referenced by main().

int main ( void  )

[setup]

[setup_init]

Configure the sequential logic with the D flip flop mode.

[setup_14]

[setup_14] [setup_init]

[setup_enable]

Enable CCL module.

[setup_enable]

[main]

[main]

References CCL_LUT_0, CCL_LUT_1, ccl_lut_enable(), ccl_module_enable(), CCL_SEQ_0, ccl_seq_config(), CCL_SEQ_D_FLIP_FLOP, configure_ccl(), configure_ccl_lut0(), configure_ccl_lut1(), and system_init().