/** * initialize NFC peripheral and reset NAND chip(s) */ void nand_init(void) { NFC_Init(); nfc_reset_cmd(0); #if (NFC_NCHIPS == 2) nfc_reset_cmd(1); #endif }
/******************************************************************************* ** ** Function NFA_Init ** ** Description This function initializes control blocks for NFA ** ** p_hal_entry_tbl points to a table of HAL entry points ** ** NOTE: the buffer that p_hal_entry_tbl points must be ** persistent until NFA is disabled. ** ** Returns none ** *******************************************************************************/ void NFA_Init(tHAL_NFC_ENTRY *p_hal_entry_tbl) { NFA_TRACE_API0 ("NFA_Init ()"); nfa_sys_init(); nfa_dm_init(); nfa_p2p_init(); nfa_cho_init(); nfa_snep_init(FALSE); nfa_rw_init(); nfa_ce_init(); nfa_ee_init(); if (nfa_ee_max_ee_cfg != 0) { nfa_dm_cb.get_max_ee = p_hal_entry_tbl->get_max_ee; nfa_hci_init(); } /* Initialize NFC module */ NFC_Init (p_hal_entry_tbl); }