mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20: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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user