Microchip® Advanced Software Framework

winc3400/wifi_drv/bsp/source/nm_bsp_samd21.c File Reference

This module contains SAMD21 BSP APIs implementation.

Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.

#include "bsp/include/nm_bsp.h"
#include "bsp/include/nm_bsp_internal.h"
#include "common/include/nm_common.h"
#include "extint.h"
#include "port.h"
#include "delay.h"
#include "system_interrupt.h"
#include "conf_winc.h"

Functions

static void chip_isr (void)
 
static void init_chip_pins (void)
 Initialize reset, chip enable and wake pin. More...
 
sint8 nm_bsp_deinit (void)
 De-iInitialize BSP. More...
 
sint8 nm_bsp_init (void)
 Initialize BSP. More...
 
void nm_bsp_interrupt_ctrl (uint8 u8Enable)
 Enable/Disable interrupts from the WINC. More...
 
void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 Register the host interface interrupt service routine. More...
 
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)
 Used to put the host to sleep for the specified duration (in milliseconds). Forcing the host to sleep for extended period may lead to host not being able to respond to WINC board events. It is important to be considerate while choosing the sleep period. More...
 

Variables

static tpfNmBspIsr gpfIsr
 

static void chip_isr ( void  )
static

References gpfIsr.

Referenced by nm_bsp_register_isr().

init_chip_pins ( void  )
static

Initialize reset, chip enable and wake pin.

References port_config::direction, port_get_config_defaults(), PORT_PIN_DIR_OUTPUT, port_pin_set_config(), and port_pin_set_output_level().

Referenced by nm_bsp_init().

tpfNmBspIsr gpfIsr
static