ICM example for SAM.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Functions | |
static void | configure_console (void) |
Configure serial console. More... | |
int | main (void) |
Application entry point for ICM example. More... | |
static void | reg_dig_mismatch_handler (uint8_t reg_num) |
Variables | |
volatile uint32_t | message_sha_0 [16] |
volatile uint32_t | message_sha_1_main [16] |
volatile uint32_t | message_sha_1_sec [16] |
uint32_t | output_sha [0x20] |
struct icm_region_descriptor_main_list | reg_descriptor [2] |
struct icm_region_descriptor_sec_list | reg_descriptor_sec |
|
static |
Configure serial console.
References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_CHAR_LENGTH, CONF_UART_PARITY, CONF_UART_STOP_BITS, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
Application entry point for ICM example.
References icm_region_descriptor_main_list::rcfg::algo, icm_config::bbc, board_init(), BOARD_NAME, icm_region_descriptor_main_list::rcfg::bus_err_int_en, icm_region_descriptor_main_list::cfg, configure_console(), delay_ms, icm_config::des_area_val, icm_region_descriptor_main_list::rcfg::dig_mis_int_en, icm_region_descriptor_main_list::rcfg::ebit_con_int_en, icm_config::hash_area_val, icm_enable(), icm_init(), ICM_INTERRUPT_RDM, ICM_REGION_NUM_0, ICM_REGION_NUM_1, icm_set_callback(), icm_set_hash_area_addr(), icm_set_reg_des_addr(), ICM_SHA_1, icm_config::is_auto_mode, icm_region_descriptor_main_list::rcfg::is_compare_mode, icm_config::is_dis_end_mon, icm_config::is_dual_buf, icm_region_descriptor_main_list::rcfg::is_end_mon, icm_region_descriptor_main_list::rcfg::is_pro_dly, icm_config::is_sec_list_branch, icm_config::is_user_hash, icm_region_descriptor_main_list::rcfg::is_wrap, icm_config::is_write_back, icm_region_descriptor_main_list::rcfg::mem_reg_val, message_sha_0, message_sha_1_main, message_sha_1_sec, icm_region_descriptor_sec_list::next_addr, icm_region_descriptor_main_list::next_addr, output_sha, reg_descriptor, reg_descriptor_sec, reg_dig_mismatch_handler(), icm_region_descriptor_main_list::rcfg::reg_hash_int_en, sleepmgr_init(), icm_region_descriptor_sec_list::start_addr, icm_region_descriptor_main_list::start_addr, icm_region_descriptor_main_list::rcfg::status_upt_con_int_en, sysclk_init(), icm_region_descriptor_sec_list::tran_size, icm_region_descriptor_main_list::tran_size, icm_config::ualgo, and icm_region_descriptor_main_list::rcfg::wrap_con_int_en.
|
static |
References ICM_REGION_NUM_0, and ICM_REGION_NUM_1.
Referenced by main().
volatile uint32_t message_sha_0[16] |
Referenced by main().
volatile uint32_t message_sha_1_main[16] |
Referenced by main().
volatile uint32_t message_sha_1_sec[16] |
Referenced by main().
uint32_t output_sha[0x20] |
Referenced by main().
struct icm_region_descriptor_main_list reg_descriptor[2] |
Referenced by main().
struct icm_region_descriptor_sec_list reg_descriptor_sec |
Referenced by main().