Commit da3a0a5b authored by urexb's avatar urexb 🎵
Browse files

TivaWare API hinzugefügt

parent 5c0f22ae
#******************************************************************************
#
# Makefile - A convenience makefile for internal use building IQmath.
#
# Copyright (c) 2010-2017 Texas Instruments Incorporated. All rights reserved.
# Software License Agreement
#
# Texas Instruments (TI) is supplying this software for use solely and
# exclusively on TI's microcontroller products. The software is owned by
# TI and/or its suppliers, and is protected under applicable copyright
# laws. You may not combine this software with "viral" open-source
# software in order to form a larger program.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
# NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
# NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
# CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
# DAMAGES, FOR ANY REASON WHATSOEVER.
#
# This is part of revision 2.1.4.178 of the Tiva IQmath Library.
#
#******************************************************************************
all:
@make -f Makefile.IQmathLib
clean:
@make -f Makefile.IQmathLib clean
realclean:
@make -f Makefile.IQmathLib realclean
@make -f Makefile.lmi clean
Manifest for Texas Instruments TivaWare Clickwrap License Agreement
TivaWare version 2.1.4.178
Legend (explanation of the fields in the Manifest table below)
Software Name: The name of the application or file
Version: Version of the application or file
License Type: Type of license(s) under which TI will be providing software to
the licensee (e.g. BSD, GPLv2, TI TSPA License, TI Commercial License). See
Open Source Reference License Disclaimer in the Disclaimers Section.
Location: The directory name and path on the media (or in an archive) where the
Software is located.
Delivered As: This field will either be "Source", "Binary" or "Source and
Binary" and is the form the content of the Software is delivered in. If the
Software is delivered in an archive format, this field applies to the contents
of the archive. If the word Limited is used with Source, as in "Limited Source"
or "Limited Source and Binary" then only portions of the Source for the
application are provided.
Modified by TI: This field will either be "Yes" or "No". A "Yes" means TI has
made changes to the Software. A "No" means TI has not made any changes. Note:
This field is not applicable for Software "Obtained from" TI.
Obtained from: This field specifies from where or from whom TI obtained the
Software. It may be a URL to an Open Source site, a 3rd party licensor, or TI
(if TI developed the software). If this field contains a link to Open Source
software, the date TI downloaded the Software is also recorded. See Links
Disclaimer in the Disclaimers Section.
DISCLAIMERS
Export Control Classification Number (ECCN)
Any use of ECCNs listed in the Manifest is at the user's risk and without
recourse to TI. Your company, as the exporter of record, is responsible for
determining the correct classification of any item at the time of export. Any
export classification by TI of Software is for TI's internal use only and shall
not be construed as a representation or warranty regarding the proper export
classification for such Software or whether an export license or other
documentation is required for exporting such Software.
Links in the Manifest
Any links appearing on this Manifest (for example in the "Obtained from" field)
were verified at the time the Manifest was created. TI makes no guarantee that
any listed links will remain active in the future.
Open Source License Reference
Your company is responsible for confirming the applicable license terms for any
open source Software listed in this Manifest that was not "Obtained from" TI.
Any open source license specified in this Manifest for Software that was not
"Obtained from" TI is for TI's internal use only and shall not be construed as
a representation or warranty regarding the proper open source license terms for
such Software.
Export Information
ECCN for Software included in this release: Publicly Available
ECCN for Technology (e.g., user documentation, specifications) included in this
release: Publicly Available
Manifest
See Legend above for a description of the fields and possible values.
Software Name: TivaWare make definitions
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./makedefs
Obtained From: TI
Software Name: TivaWare master Makefile
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./Makefile
Obtained From: TI
Software Name: Tiva Boot Loader
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./boot_loader
Obtained From: TI
Software Name: JSON Parser
Version: N/A
License Type: MIT
Delivered As: Source
Modified by TI: Yes
Location: ./cc3100-sdk/examples/common
Obtained From: https://bitbucket.org/zserge/jsmn/src/http://zserge.com/jsmn.html
Software Name: HTTP Client Library
Version: 1.00.01.04
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./cc3100-sdk/netapps/http
Obtained From: TI
Software Name: MQTT Library
Version: 1.1.0
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./cc3100-sdk/netapps/mqtt
Obtained From: TI
Software Name: CC3100 Drivers
Version: 1.1.0
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./cc3100-sdk/platform
Obtained From: TI
Software Name: CC3100 Host Driver
Version: N/A
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./cc3100-sdk/simplelink
Obtained From: TI
Software Name: Simplelink Extlib
Version: 1.1.0
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./cc3100-sdk/simplelink_extlib
Obtained From: TI
Software Name: Tiva Peripheral Driver Library
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./driverlib
Obtained From: TI
Software Name: Tiva Examples Makefile
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./examples/Makefile
Obtained From: TI
Software Name: Tiva Board Examples
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./examples/boards
Obtained From: TI
Software Name: Tiva Peripheral Examples
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./examples/peripherals
Obtained From: TI
Software Name: Tiva Project Example
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./examples/project
Obtained From: TI
Software Name: Tiva Graphics Library
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./grlib
Obtained From: TI
Software Name: Tiva Device Header Files
Version: 2.1.4.178
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: N/A
Location: ./inc
Obtained From: TI
Software Name: TI IQmath Fixed Point Library
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Binary
Modified by TI: N/A
Location: ./IQmath
Obtained From: TI
Software Name: TI NFC Network Stack
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./nfclib
Obtained From: TI
Software Name: Tiva Sensor Library
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./sensorlib
Obtained From: TI
Software Name: Host tools
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./tools
Obtained From: TI
Software Name: Tiva USB Library
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./usblib
Obtained From: TI
Software Name: Utility Functions
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./utils
Obtained From: TI
Software Name: Custom Windows Drivers
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Binary
Modified by TI: N/A
Location: ./windows_drivers
Obtained From: TI
Software Name: BGET Heap Allocator
Version: October 1995
License Type: Public domain
Delivered As: Source
Modified by TI: No
Location: ./third_party/bget
Obtained From: http://www.fourmilab.ch/bget/
Software Name: Exosite Library
Version: N/A
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: Yes
Location: ./third_party/exosite
Obtained From: Exosite LLC
Software Name: FatFs FAT File System
Version: 0.04b
License Type: FatFS
Delivered As: Source
Modified by TI: Yes - porting code added
Location: ./third_party/fatfs
Obtained From: http://elm-chan.org/fsw/ff/00index_e.html
Software Name: Firefly Sung Font
Version: 1.3.0
License Type: Arphic Public License
Delivered As: Source
Modified by TI: No
Location: ./third_party/fonts/apl
Obtained From: http://www.study-area.org/apt/firefly-font/
Software Name: Custom Font Generation Demo
Version: 2.1.4.178
License Type: TI Commercial
Delivered As: Source
Modified by TI: N/A
Location: ./third_party/fonts/lang_demo
Obtained From: N/A
Software Name: Various OFL Fonts
Version: N/A
License Type: Open Font License
License Type: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
Delivered As: Source
Modified by TI: No
Location: ./third_party/fonts/ofl
Obtained From: OldStandard - http://www.thessalonica.org.ru/en/fonts-download.html
Obtained From: Theano - http://www.thessalonica.org.ru/en/fonts-download.html
Obtained From: Andika - http://www.sil.org/computing/catalog/show_software.asp?id=119
Obtained From: Breip - http://helloalan.com/projects/breip/
Obtained From: Nanum - http://hangeul.naver.com/download.nhn
Software Name: Other Fonts
Version: N/A
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: No
Location: ./third_party/fonts/other
Obtained From: (Sazanami) http://sourceforge.jp/projects/efont/releases/#10087
Software Name: FreeRTOS
Version: 8.2.3
License Type: GPL-2-0 with linking exception
Delivered As: Source
Modified by TI: Yes - Removed support for non-TM4C Devices
Location: ./third_party/FreeRTOS
Obtained From: http://sourceforge.net/projects/freertos/files/FreeRTOS/V8.2.3
Software Name: LWIP Network Stack
Version: 1.4.1
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: Yes - porting code added
Location: ./third_party/lwip-1.4.1
Obtained From: http://savannah.nongnu.org/projects/lwip/
Software Name: PTP Daemon
Version: 1.1.0
License Type: BSD-2-Clause
Delivered As: Source
Modified by TI: Yes - porting code added
Location: ./third_party/ptpd-1.1.0
Obtained From: http://sourceforge.net/projects/ptpd/files/ptpd/
Software Name: UIP Network Stack
Version: 1.0
License Type: BSD-3-Clause
Delivered As: Source
Modified by TI: No
Location: ./third_party/uip-1.0
Obtained From: http://www.sics.se/~adam/old-uip/download.html
Software Name: Fast Light Toolkit
Version: 1.1.10
License Type: LGPL-2-0 with linking exception
Delivered As: Source
Modified by TI: No
Location: ./third_party/windows/fltk-1.1.10
Obtained From: http://www.fltk.org/software.php
\ No newline at end of file
#******************************************************************************
#
# Makefile - Rules for building the driver library and examples.
#
# Copyright (c) 2005-2017 Texas Instruments Incorporated. All rights reserved.
# Software License Agreement
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# Neither the name of Texas Instruments Incorporated nor the names of
# its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# This is part of revision 2.1.4.178 of the Tiva Firmware Development Package.
#
#******************************************************************************
DIRS=driverlib \
grlib \
sensorlib \
usblib \
examples
all::
@for i in ${DIRS}; \
do \
if [ -f $${i}/Makefile ]; \
then \
make -C $${i} || exit $$?; \
fi; \
done
clean::
@rm -f ${wildcard *~} __dummy__
@rm -f ${wildcard utils/*~} __dummy__
@for i in ${DIRS}; \
do \
if [ -f $${i}/Makefile ]; \
then \
make -C $${i} clean; \
fi; \
done
Software License Agreement
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the original copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the original copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
Neither the name of Texas Instruments Incorporated nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//*****************************************************************************
//
// bl_autobaud.c - Automatic baud rate detection code.
//
// Copyright (c) 2006-2017 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 2.1.4.178 of the Tiva Firmware Development Package.
//
//*****************************************************************************
#include <stdint.h>
#include "inc/hw_gpio.h"
#include "inc/hw_memmap.h"
#include "inc/hw_nvic.h"
#include "inc/hw_types.h"
#include "bl_config.h"
#include "boot_loader/bl_uart.h"
//*****************************************************************************
//
// If using auto-baud, make sure that the data buffer is large enough.
//
//*****************************************************************************
#if defined(UART_ENABLE_UPDATE) && defined(UART_AUTOBAUD) && (BUFFER_SIZE < 20)
#error ERROR: BUFFER_SIZE must be >= 20!
#endif
//*****************************************************************************
//
//! \addtogroup bl_autobaud_api
//! @{
//
//*****************************************************************************
#if defined(UART_ENABLE_UPDATE) && defined(UART_AUTOBAUD) || defined(DOXYGEN)
//*****************************************************************************
//
// This define holds the multiplier for the pulse detection algorithm. The
// value is used to generate a fractional difference detection of
// 1 / PULSE_DETECTION_MULT.
//
//*****************************************************************************
#define PULSE_DETECTION_MULT 3
//*****************************************************************************
//
// This define holds the minimum number of edges to successfully sync to a
// pattern of 2 bytes.
//
//*****************************************************************************
#define MIN_EDGE_COUNT 18
//*****************************************************************************
//
// This global holds the number of edges that have been stored in the global
// buffer g_pui32DataBuffer.
//
//*****************************************************************************
static volatile uint32_t g_ui32TickIndex;
//*****************************************************************************
//
// The data buffer that is used for receiving packets is used to hold the edge
// times during auto-baud. The buffer is not used for receiving packets while
// auto-baud is in progress, so this does not present problems.
//
//*****************************************************************************
extern uint32_t g_pui32DataBuffer[];
//*****************************************************************************