Microchip® Advanced Software Framework

icm_example.c File Reference

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 void configure_console ( void  )
static
int main ( void  )

Application entry point for ICM example.

Returns
Unused (ANSI-C compatibility).

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 void reg_dig_mismatch_handler ( uint8_t  reg_num)
static

References ICM_REGION_NUM_0, and ICM_REGION_NUM_1.

Referenced by main().

volatile uint32_t message_sha_0[16]
Initial value:
= {
0x80636261,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x18000000
}

Referenced by main().

volatile uint32_t message_sha_1_main[16]
Initial value:
= {
0x64636261,
0x65646362,
0x66656463,
0x67666564,
0x68676665,
0x69686766,
0x6a696867,
0x6b6a6968,
0x6c6b6a69,
0x6d6c6b6a,
0x6e6d6c6b,
0x6f6e6d6c,
0x706f6e6d,
0x71706f6e,
0x00000080,
0x00000000
}

Referenced by main().

volatile uint32_t message_sha_1_sec[16]
Initial value:
= {
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0xc0010000
}

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().