mirror of
https://github.com/micropython/micropython.git
synced 2025-12-15 17:30:14 +01:00
all: Prune trailing whitespace.
Prune trailing whitespace across the whole project (almost), done
automatically with:
grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\
xargs sed -i 's/[[:space:]]*$//'
Exceptions:
- Skip third-party code in lib/ and drivers/cc3100/
- Skip generated code in bluetooth_init_cc2564C_1.5.c
- Preserve command output whitespace in docs, eg:
docs/esp8266/tutorial/repl.rst
Signed-off-by: Phil Howard <phil@gadgetoid.com>
This commit is contained in:
committed by
Damien George
parent
decf8e6a8b
commit
dda9b9c6da
@@ -61,7 +61,7 @@ below).
|
||||
|
||||
Flashing process using TI Uniflash:
|
||||
|
||||
- Open CCS_Uniflash and connect to the board (by default on port 22).
|
||||
- Open CCS_Uniflash and connect to the board (by default on port 22).
|
||||
- Format the serial flash (select 1MB size in case of the CC3200-LAUNCHXL, 2MB in case of the WiPy, leave the rest unchecked).
|
||||
- Mark the following files for erasing: `/cert/ca.pem`, `/cert/client.pem`, `/cert/private.key` and `/tmp/pac.bin`.
|
||||
- Add a new file with the name of /sys/mcuimg.bin, and select the URL to point to cc3200\bootmgr\build\<BOARD_NAME>\bootloader.bin.
|
||||
@@ -94,7 +94,7 @@ Once the software is running, you have two options to access the MicroPython REP
|
||||
in boot.py, so you can override it at runtime regardless of MICROPY_STDIO_UART
|
||||
setting).
|
||||
|
||||
The board has a small file system of 192K (WiPy) or 64K (Launchpad) located in the serial flash connected to the CC3200.
|
||||
The board has a small file system of 192K (WiPy) or 64K (Launchpad) located in the serial flash connected to the CC3200.
|
||||
SD cards are also supported, you can connect any SD card and configure the pinout using the SD class API.
|
||||
|
||||
## Uploading scripts:
|
||||
@@ -142,7 +142,7 @@ there. Make sure to use a **v4.1 (or higher) LAUNCHXL board** when trying this p
|
||||
|
||||
### Note regarding FileZilla
|
||||
|
||||
Do not use the quick connect button, instead, open the site manager and create a new configuration. In the "General" tab make
|
||||
sure that encryption is set to: "Only use plain FTP (insecure)". In the Transfer Settings tab limit the max number of connections
|
||||
to one, otherwise FileZilla will try to open a second command connection when retrieving and saving files, and for simplicity and
|
||||
Do not use the quick connect button, instead, open the site manager and create a new configuration. In the "General" tab make
|
||||
sure that encryption is set to: "Only use plain FTP (insecure)". In the Transfer Settings tab limit the max number of connections
|
||||
to one, otherwise FileZilla will try to open a second command connection when retrieving and saving files, and for simplicity and
|
||||
to reduce code size, only one command and one data connections are possible.
|
||||
|
||||
@@ -36,7 +36,7 @@ MEMORY
|
||||
ENTRY(ResetISR)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
{
|
||||
/* place the FreeRTOS heap (the MicroPython stack will live here) */
|
||||
.rtos_heap (NOLOAD) :
|
||||
{
|
||||
@@ -92,7 +92,7 @@ SECTIONS
|
||||
. = ALIGN(8);
|
||||
_eboot = .;
|
||||
} > SRAM
|
||||
|
||||
|
||||
/* allocate the MicroPython heap */
|
||||
.heap :
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ echo "Generating bootloader..."
|
||||
# Generate an all 0 bin file
|
||||
dd if=/dev/zero of=__tmp.bin ibs=1 count=256 conv=notrunc >/dev/null 2>&1
|
||||
|
||||
# Generate a 0 padded version of the relocator
|
||||
# Generate a 0 padded version of the relocator
|
||||
dd if=$RELOCATOR/relocator.bin of=__tmp.bin ibs=1 conv=notrunc >/dev/null 2>&1
|
||||
|
||||
# Concatenate the re-locator and the boot-manager
|
||||
|
||||
@@ -53,7 +53,7 @@ BOOT_SL_SRC_C = $(addprefix simplelink/,\
|
||||
|
||||
BOOT_UTIL_SRC_C = $(addprefix util/,\
|
||||
cryptohash.c \
|
||||
)
|
||||
)
|
||||
|
||||
BOOT_MAIN_SRC_C = \
|
||||
bootmgr/main.c
|
||||
@@ -114,7 +114,7 @@ $(BUILD)/bootmgr.axf: $(OBJ) $(LINKER_SCRIPT)
|
||||
$(ECHO) "LINK $@"
|
||||
$(Q)$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
$(Q)$(SIZE) $@
|
||||
|
||||
|
||||
$(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf
|
||||
$(ECHO) "Create $@"
|
||||
$(Q)$(OBJCOPY) -O binary $< $@
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
If building with a C++ compiler, make all of the definitions in this header
|
||||
have a C binding.
|
||||
|
||||
|
||||
*******************************************************************************/
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -84,9 +84,9 @@ typedef struct _sBootInfo_t
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
|
||||
Mark the end of the C bindings section for C++ compilers.
|
||||
|
||||
|
||||
*******************************************************************************/
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* user.h - CC31xx/CC32xx Host Driver Implementation
|
||||
*
|
||||
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
*
|
||||
*
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef __USER_H__
|
||||
#define __USER_H__
|
||||
@@ -63,8 +63,8 @@ extern "C" {
|
||||
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <string.h>
|
||||
#include "cc_pal.h"
|
||||
|
||||
/*!
|
||||
@@ -90,8 +90,8 @@ extern "C" {
|
||||
/*!
|
||||
\def CPU_FREQ_IN_MHZ
|
||||
\brief Defines CPU frequency for Host side, for better accuracy of busy loops, if any
|
||||
\sa
|
||||
\note
|
||||
\sa
|
||||
\note
|
||||
|
||||
\warning If not set the default CPU frequency is set to 200MHz
|
||||
This option will be deprecated in future release
|
||||
@@ -330,7 +330,7 @@ extern "C" {
|
||||
|
||||
The enable/disable API provide mechanism to enable/disable the network processor
|
||||
|
||||
|
||||
|
||||
PORTING ACTION:
|
||||
- None
|
||||
@{
|
||||
@@ -568,9 +568,9 @@ extern "C" {
|
||||
*/
|
||||
|
||||
#define sl_IfUnMaskIntHdlr() NwpUnMaskInterrupt()
|
||||
|
||||
|
||||
/*!
|
||||
\brief Write Handers for statistics debug on write
|
||||
\brief Write Handers for statistics debug on write
|
||||
|
||||
\param interface handler - pointer to interrupt handler routine
|
||||
|
||||
@@ -583,7 +583,7 @@ extern "C" {
|
||||
|
||||
\note belongs to \ref ported_sec
|
||||
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
/* #define SL_START_WRITE_STAT */
|
||||
|
||||
@@ -921,7 +921,7 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
\brief
|
||||
\sa
|
||||
\note belongs to \ref ported_sec
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
#define sl_Malloc(Size) malloc(Size)
|
||||
|
||||
@@ -929,7 +929,7 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
\brief
|
||||
\sa
|
||||
\note belongs to \ref ported_sec
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
#define sl_Free(pMem) free(pMem)
|
||||
#endif
|
||||
@@ -973,9 +973,9 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
|
||||
/*!
|
||||
\brief An event handler for WLAN connection or disconnection indication
|
||||
This event handles async WLAN events.
|
||||
This event handles async WLAN events.
|
||||
Possible events are:
|
||||
SL_WLAN_CONNECT_EVENT - indicates WLAN is connected
|
||||
SL_WLAN_CONNECT_EVENT - indicates WLAN is connected
|
||||
SL_WLAN_DISCONNECT_EVENT - indicates WLAN is disconnected
|
||||
\sa
|
||||
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
//*****************************************************************************
|
||||
// stdcmd.h
|
||||
//
|
||||
// Defines standard SD Card commands for CC3200 SDHOST module.
|
||||
// Defines standard SD Card commands for CC3200 SDHOST module.
|
||||
//
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -40,7 +40,7 @@
|
||||
#define __STDCMD_H__
|
||||
|
||||
//*****************************************************************************
|
||||
// Standard MMC/SD Card Commands
|
||||
// Standard MMC/SD Card Commands
|
||||
//*****************************************************************************
|
||||
#define CMD_GO_IDLE_STATE SDHOST_CMD_0
|
||||
#define CMD_SEND_IF_COND SDHOST_CMD_8|SDHOST_RESP_LEN_48
|
||||
|
||||
@@ -96,7 +96,7 @@ void HAL_SystemInit (void) {
|
||||
|
||||
void HAL_SystemDeInit (void) {
|
||||
}
|
||||
|
||||
|
||||
void HAL_IncrementTick(void) {
|
||||
HAL_tickCount++;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ GPIOBaseValid(unsigned long ulPort)
|
||||
return((ulPort == GPIOA0_BASE) ||
|
||||
(ulPort == GPIOA1_BASE) ||
|
||||
(ulPort == GPIOA2_BASE) ||
|
||||
(ulPort == GPIOA3_BASE) ||
|
||||
(ulPort == GPIOA3_BASE) ||
|
||||
(ulPort == GPIOA4_BASE));
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#define GPIOA1_BASE 0x40005000
|
||||
#define GPIOA2_BASE 0x40006000
|
||||
#define GPIOA3_BASE 0x40007000
|
||||
#define GPIOA4_BASE 0x40024000
|
||||
#define GPIOA4_BASE 0x40024000
|
||||
#define UARTA0_BASE 0x4000C000
|
||||
#define UARTA1_BASE 0x4000D000
|
||||
#define I2CA0_BASE 0x40020000
|
||||
|
||||
@@ -116,8 +116,8 @@ extern "C"
|
||||
#define PIN_MODE_14 0x0000000E
|
||||
#define PIN_MODE_15 0x0000000F
|
||||
// Note : PIN_MODE_255 is a dummy define for pinmux utility code generation
|
||||
// PIN_MODE_255 should never be used in any user code.
|
||||
#define PIN_MODE_255 0x000000FF
|
||||
// PIN_MODE_255 should never be used in any user code.
|
||||
#define PIN_MODE_255 0x000000FF
|
||||
|
||||
//*****************************************************************************
|
||||
// Macros that can be used with PinDirModeSet() and returned from
|
||||
|
||||
@@ -189,8 +189,8 @@ unsigned char ulRstReg;
|
||||
#define PRCM_SSPI 0x00000013
|
||||
#define PRCM_I2CA0 0x00000014
|
||||
// Note : PRCM_ADC is a dummy define for pinmux utility code generation
|
||||
// PRCM_ADC should never be used in any user code.
|
||||
#define PRCM_ADC 0x000000FF
|
||||
// PRCM_ADC should never be used in any user code.
|
||||
#define PRCM_ADC 0x000000FF
|
||||
|
||||
//*****************************************************************************
|
||||
// User bits in the PRCM persistent registers
|
||||
|
||||
@@ -762,7 +762,7 @@ SPIConfigSetExpClk(unsigned long ulBase,unsigned long ulSPIClk,
|
||||
// Enable software control Chip Select, Init delay
|
||||
// and 3-pin mode
|
||||
//
|
||||
ulRegData |= (((ulConfig >> 24) | ulMode) & 0xFF);
|
||||
ulRegData |= (((ulConfig >> 24) | ulMode) & 0xFF);
|
||||
|
||||
//
|
||||
// Write the configuration
|
||||
|
||||
@@ -3,35 +3,35 @@
|
||||
//
|
||||
// MACRO and Function prototypes for TI-RTOS and Free-RTOS API calls
|
||||
//
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list zof 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
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -367,23 +367,23 @@ OsiReturnVal_e osi_Spawn(P_OSI_SPAWN_ENTRY pEntry , void* pValue , unsigned long
|
||||
/*******************************************************************************
|
||||
|
||||
This function creates a message queue that is typically used for inter thread
|
||||
communication.
|
||||
communication.
|
||||
|
||||
Parameters:
|
||||
|
||||
pMsgQ - pointer to the message queue control block
|
||||
pMsgQName - pointer to the name of the message queue
|
||||
MsgSize - the size of the message.
|
||||
MsgSize - the size of the message.
|
||||
|
||||
NOTICE: THE MESSGAE SIZE MUST BE SMALLER THAN 16
|
||||
|
||||
MaxMsgs - maximum number of messages.
|
||||
|
||||
Please note that this function allocates the entire memory required
|
||||
for the maximum number of messages (MsgSize * MaxMsgs).
|
||||
Please note that this function allocates the entire memory required
|
||||
for the maximum number of messages (MsgSize * MaxMsgs).
|
||||
|
||||
********************************************************************************/
|
||||
OsiReturnVal_e osi_MsgQCreate(OsiMsgQ_t* pMsgQ ,
|
||||
OsiReturnVal_e osi_MsgQCreate(OsiMsgQ_t* pMsgQ ,
|
||||
char* pMsgQName,
|
||||
unsigned long MsgSize,
|
||||
unsigned long MaxMsgs);
|
||||
@@ -392,7 +392,7 @@ OsiReturnVal_e osi_MsgQCreate(OsiMsgQ_t* pMsgQ ,
|
||||
|
||||
This function deletes a specific message queue.
|
||||
All threads suspended waiting for a message from this queue are resumed with
|
||||
an error return value.
|
||||
an error return value.
|
||||
|
||||
Parameters:
|
||||
|
||||
@@ -406,11 +406,11 @@ OsiReturnVal_e osi_MsgQDelete(OsiMsgQ_t* pMsgQ);
|
||||
|
||||
This function writes a message to a specific message queue.
|
||||
|
||||
Notice that the message is copied to the queue from the memory area specified
|
||||
Notice that the message is copied to the queue from the memory area specified
|
||||
by pMsg pointer.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
THIS FUNCTION COULD BE CALLED FROM ISR AS LONG AS THE TIMEOUT PARAMETER IS
|
||||
THIS FUNCTION COULD BE CALLED FROM ISR AS LONG AS THE TIMEOUT PARAMETER IS
|
||||
SET TO "OSI_NO_WAIT"
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@@ -418,7 +418,7 @@ Parameters:
|
||||
|
||||
pMsgQ - pointer to the message queue control block
|
||||
pMsg - pointer to the message
|
||||
Timeout - numeric value specifies the maximum number of mSec to stay
|
||||
Timeout - numeric value specifies the maximum number of mSec to stay
|
||||
suspended while waiting for available space for the message
|
||||
|
||||
********************************************************************************/
|
||||
@@ -428,14 +428,14 @@ OsiReturnVal_e osi_MsgQWrite(OsiMsgQ_t* pMsgQ, void* pMsg , OsiTime_t Timeout);
|
||||
/*******************************************************************************
|
||||
|
||||
This function retrieves a message from the specified message queue. The
|
||||
retrieved message is copied from the queue into the memory area specified by
|
||||
the pMsg pointer
|
||||
retrieved message is copied from the queue into the memory area specified by
|
||||
the pMsg pointer
|
||||
|
||||
Parameters:
|
||||
|
||||
pMsgQ - pointer to the message queue control block
|
||||
pMsg - pointer that specify the location where to copy the message
|
||||
Timeout - numeric value specifies the maximum number of mSec to stay
|
||||
Timeout - numeric value specifies the maximum number of mSec to stay
|
||||
suspended while waiting for a message to be available
|
||||
|
||||
********************************************************************************/
|
||||
@@ -478,7 +478,7 @@ void mem_Free(void *pMem);
|
||||
\param Size - Size of the memory to be set
|
||||
\sa
|
||||
\note
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
void mem_set(void *pBuf,int Val,size_t Size);
|
||||
|
||||
@@ -489,7 +489,7 @@ void mem_set(void *pBuf,int Val,size_t Size);
|
||||
\param Size - Size of the memory to be copied
|
||||
\return void
|
||||
\note
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
void mem_copy(void *pDst, void *pSrc,size_t Size);
|
||||
|
||||
@@ -497,7 +497,7 @@ void mem_copy(void *pDst, void *pSrc,size_t Size);
|
||||
\brief Enter Critical Section
|
||||
\sa
|
||||
\note
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
void osi_EnterCritical(void);
|
||||
|
||||
@@ -505,7 +505,7 @@ void osi_EnterCritical(void);
|
||||
\brief Exit Critical Section
|
||||
\sa
|
||||
\note
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
void osi_ExitCritical(void);
|
||||
|
||||
@@ -563,7 +563,7 @@ typedef struct
|
||||
P_OSI_SPAWN_ENTRY pEntry;
|
||||
void* pValue;
|
||||
}tSimpleLinkSpawnMsg;
|
||||
|
||||
|
||||
/* The queue used to send message to simple link spawn task. */
|
||||
extern void* xSimpleLinkSpawnQueue;
|
||||
|
||||
|
||||
@@ -3,35 +3,35 @@
|
||||
//
|
||||
// Interface APIs for free-rtos function calls
|
||||
//
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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
|
||||
// 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.
|
||||
//
|
||||
//*****************************************************************************
|
||||
@@ -57,7 +57,7 @@ static void vSimpleLinkSpawnTask( void *pvParameters );
|
||||
//Queue Handler
|
||||
QueueHandle_t xSimpleLinkSpawnQueue = NULL;
|
||||
TaskHandle_t xSimpleLinkSpawnTaskHndl = NULL;
|
||||
// Queue size
|
||||
// Queue size
|
||||
#define slQUEUE_SIZE ( 3 )
|
||||
#define SL_SPAWN_MAX_WAIT_MS ( 200 )
|
||||
|
||||
@@ -282,7 +282,7 @@ OsiReturnVal_e osi_TaskCreate(P_OSI_TASK_ENTRY pEntry,const signed char * const
|
||||
unsigned long uxPriority,OsiTaskHandle* pTaskHandle)
|
||||
{
|
||||
ASSERT (pdPASS == xTaskCreate( pEntry, (char const*)pcName,
|
||||
(usStackDepth/(sizeof( portSTACK_TYPE ))),
|
||||
(usStackDepth/(sizeof( portSTACK_TYPE ))),
|
||||
pvParameters,(unsigned portBASE_TYPE)uxPriority,
|
||||
(TaskHandle_t*)pTaskHandle ));
|
||||
return OSI_OK;
|
||||
@@ -417,7 +417,7 @@ OsiReturnVal_e osi_Spawn(P_OSI_SPAWN_ENTRY pEntry , void* pValue , unsigned long
|
||||
|
||||
|
||||
/*!
|
||||
\brief This is the simplelink spawn task to call SL callback from a different context
|
||||
\brief This is the simplelink spawn task to call SL callback from a different context
|
||||
|
||||
\param pvParameters - pointer to the task parameter
|
||||
|
||||
@@ -510,7 +510,7 @@ void VDeleteSimpleLinkSpawnTask( void )
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
OsiReturnVal_e osi_MsgQCreate(OsiMsgQ_t* pMsgQ ,
|
||||
OsiReturnVal_e osi_MsgQCreate(OsiMsgQ_t* pMsgQ ,
|
||||
char* pMsgQName,
|
||||
unsigned long MsgSize,
|
||||
unsigned long MaxMsgs)
|
||||
@@ -607,8 +607,8 @@ void * mem_Malloc(unsigned long Size)
|
||||
\brief This function to call the memory de-allocation function of the FREERTOS
|
||||
|
||||
\param pMem - pointer to the memory which needs to be freed
|
||||
|
||||
\return - void
|
||||
|
||||
\return - void
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
@@ -622,7 +622,7 @@ void mem_Free(void *pMem)
|
||||
\param pBuf - pointer to the memory to be fill
|
||||
\param Val - Value to be fill
|
||||
\param Size - Size of the memory which needs to be fill
|
||||
\return - void
|
||||
\return - void
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
@@ -637,8 +637,8 @@ void mem_set(void *pBuf,int Val,size_t Size)
|
||||
\param pDst - pointer to the destination
|
||||
\param pSrc - pointer to the source
|
||||
\param Size - Size of the memory which needs to be copy
|
||||
|
||||
\return - void
|
||||
|
||||
\return - void
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
@@ -650,8 +650,8 @@ void mem_copy(void *pDst, void *pSrc,size_t Size)
|
||||
|
||||
/*!
|
||||
\brief This function use to entering into critical section
|
||||
\param void
|
||||
\return - void
|
||||
\param void
|
||||
\return - void
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
@@ -663,8 +663,8 @@ void osi_EnterCritical(void)
|
||||
|
||||
/*!
|
||||
\brief This function use to exit critical section
|
||||
\param void
|
||||
\return - void
|
||||
\param void
|
||||
\return - void
|
||||
\note
|
||||
\warning
|
||||
*/
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
/*
|
||||
* user.h - CC31xx/CC32xx Host Driver Implementation
|
||||
*
|
||||
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
||||
*
|
||||
*
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef __USER_H__
|
||||
#define __USER_H__
|
||||
@@ -63,8 +63,8 @@ extern "C" {
|
||||
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <string.h>
|
||||
#include "cc_pal.h"
|
||||
#include "debug.h"
|
||||
|
||||
@@ -91,8 +91,8 @@ extern "C" {
|
||||
/*!
|
||||
\def CPU_FREQ_IN_MHZ
|
||||
\brief Defines CPU frequency for Host side, for better accuracy of busy loops, if any
|
||||
\sa
|
||||
\note
|
||||
\sa
|
||||
\note
|
||||
|
||||
\warning If not set the default CPU frequency is set to 200MHz
|
||||
This option will be deprecated in future release
|
||||
@@ -331,7 +331,7 @@ extern "C" {
|
||||
|
||||
The enable/disable API provide mechanism to enable/disable the network processor
|
||||
|
||||
|
||||
|
||||
PORTING ACTION:
|
||||
- None
|
||||
@{
|
||||
@@ -569,9 +569,9 @@ extern "C" {
|
||||
*/
|
||||
|
||||
#define sl_IfUnMaskIntHdlr() NwpUnMaskInterrupt()
|
||||
|
||||
|
||||
/*!
|
||||
\brief Write Handers for statistics debug on write
|
||||
\brief Write Handers for statistics debug on write
|
||||
|
||||
\param interface handler - pointer to interrupt handler routine
|
||||
|
||||
@@ -584,7 +584,7 @@ extern "C" {
|
||||
|
||||
\note belongs to \ref ported_sec
|
||||
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
/* #define SL_START_WRITE_STAT */
|
||||
|
||||
@@ -921,7 +921,7 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
\brief
|
||||
\sa
|
||||
\note belongs to \ref ported_sec
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
#define sl_Malloc(Size) malloc(Size)
|
||||
|
||||
@@ -929,7 +929,7 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
\brief
|
||||
\sa
|
||||
\note belongs to \ref ported_sec
|
||||
\warning
|
||||
\warning
|
||||
*/
|
||||
#define sl_Free(pMem) free(pMem)
|
||||
#endif
|
||||
@@ -973,9 +973,9 @@ typedef OsiLockObj_t _SlLockObj_t;
|
||||
|
||||
/*!
|
||||
\brief An event handler for WLAN connection or disconnection indication
|
||||
This event handles async WLAN events.
|
||||
This event handles async WLAN events.
|
||||
Possible events are:
|
||||
SL_WLAN_CONNECT_EVENT - indicates WLAN is connected
|
||||
SL_WLAN_CONNECT_EVENT - indicates WLAN is connected
|
||||
SL_WLAN_DISCONNECT_EVENT - indicates WLAN is disconnected
|
||||
\sa
|
||||
|
||||
|
||||
Reference in New Issue
Block a user