Commit 0b995d6d authored by schneider's avatar schneider

change(max32666): Update SDK to 0.2.1-12

parent 5d9cb5ec

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -188,6 +188,26 @@ $(error SDMA currently requires BTLE_APP_USE_LEGACY_API)
endif
endif
ifdef ENABLE_SDMA_UNIFIED_CONFIG
ifneq "$(ENABLE_SDMA_UNIFIED_CONFIG)" ""
ifeq "$(ENABLE_SDMA_UNIFIED_CONFIG)" "0"
ENABLE_SDMA_UNIFIED_CONFIG=
else
ifeq "$(ENABLE_SDMA_UNIFIED_CONFIG)" "FALSE"
ENABLE_SDMA_UNIFIED_CONFIG=
else
ENABLE_SDMA_UNIFIED_CONFIG=1
endif
endif
endif
endif
ifdef ENABLE_SDMA_UNIFIED_CONFIG
ifneq "$(ENABLE_SDMA_UNIFIED_CONFIG)" "0"
PROJ_CFLAGS+=-DENABLE_SDMA_UNIFIED_CONFIG=1
endif
endif
#-------------------------------------------------------------------------------
# Configuration specified here.
......@@ -239,10 +259,6 @@ include ${PERIPH_DRIVER_DIR}/periphdriver.mk
CORDIO_DIR=$(LIBS_DIR)/BTLE
include ${CORDIO_DIR}/btle.mk
# Include MAXUSB library
MAXUSB_DIR=$(LIBS_DIR)/MAXUSB
include $(MAXUSB_DIR)/maxusb.mk
################################################################################
# Include the rules for building for this target. All other makefiles should be
# included before this one.
......
## Application description
The BLE\_beacon application demonstrates a BLE beacon device that can not accept connections.
......@@ -11,9 +11,14 @@ BTLE_APP_ENABLE_PERIODIC?=0
# Unspecified -> Use default (connectable).
# DM_ADV_SCAN_UNDIRECT -> Non-connectable scannable
# DM_ADV_NONCONN_UNDIRECT -> Non-connectable non-scannable
BTLE_APP_ADV_TYPE?=
#BTLE_APP_ADV_TYPE?=
#BTLE_APP_ADV_TYPE?=DM_ADV_NONCONN_UNDIRECT
#BTLE_APP_ADV_TYPE?=DM_ADV_SCAN_UNDIRECT
BTLE_APP_ADV_TYPE?=DM_ADV_SCAN_UNDIRECT
# Run link layer using SDMA.
ENABLE_SDMA?=0
# Copy sdma config from application.
ENABLE_SDMA_UNIFIED_CONFIG?=1
......@@ -29,13 +29,14 @@
* property whatsoever. Maxim Integrated Products, Inc. retains all
* ownership rights.
*
* $Date: 2019-08-22 20:18:08 -0500 (Thu, 22 Aug 2019) $
* $Revision: 45615 $
* $Date: 2020-09-01 12:32:30 -0500 (Tue, 01 Sep 2020) $
* $Revision: 55172 $
*
******************************************************************************/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "mxc_config.h"
#include "mxc_sys.h"
#include "wsf_types.h"
......@@ -48,6 +49,8 @@
#include "app_ui.h"
#include "hci_vs.h"
#include "hci_core.h"
#include "hci_drv_sdma.h"
#include "ipc_defs.h"
#include "dm_api.h"
/**************************************************************************************************
......@@ -199,6 +202,9 @@ void SetAddress(uint8_t event)
/*************************************************************************************************/
int main(void)
{
#ifdef ENABLE_SDMA
uint8_t sdmaFlag;
#endif /* ENABLE_SDMA */
#ifndef __IAR_SYSTEMS_ICC__
setvbuf(stdout, printf_buffer, _IOLBF, PRINTF_BUF_SIZE);
......@@ -216,9 +222,22 @@ int main(void)
printf("Setup Complete\n");
#ifdef ENABLE_SDMA
sdmaFlag = SDMA_FLAG_INIT;
#endif /* ENABLE_SDMA */
while (1)
{
wsfOsDispatcher();
#ifdef ENABLE_SDMA
if (sdmaFlag == SDMA_FLAG_INIT) {
sdmaFlag = SDMAGetSDMAFlag();
}
if (sdmaFlag == SDMA_FLAG_ENOMEM) {
printf ("SDMA core ran out of allocatable memory.");
while(1);