Microchip® Advanced Software Framework

nm_bsp_sam4s.c File Reference

This module contains SAM4S WILC BSP APIs implementation.

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

#include "bsp/include/nm_bsp.h"
#include "sam4s.h"
#include "common/include/nm_common.h"
#include "component/component_cmcc.h"
#include "asf.h"
#include "conf_wilc.h"

Functions

static void chip_isr (uint32_t id, uint32_t mask)
 
static void init_chip_pins (void)
 
void nm_bsp_free (void *pvMemBuffer)
 Free memory. More...
 
sint8 nm_bsp_init (void)
 Initialization for bsp (Board Support Package) such as Reset and Chip Enable Pins for WILC, delays, register ISR, enable/disable IRQ for WILC, ...etc.
You must use this function in the head of your application to enable WILC and Host Driver communicate each other. More...
 
void nm_bsp_interrupt_ctrl (uint8 u8Enable)
 Enable/Disable interrupts. More...
 
voidnm_bsp_malloc (uint32 u32Size)
 Allocate memory. More...
 
void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 
void nm_bsp_reset (void)
 Reset NMC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high. More...
 
void nm_bsp_sleep (uint32 u32TimeMsec)
 

Variables

static tpfNmBspIsr gpfIsr
 

static void chip_isr ( uint32_t  id,
uint32_t  mask 
)
static

tpfNmBspIsr gpfIsr
static