mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-02-16 20:03:15 +01:00
TESTS: Function parameters cannot be named "data" when using Raisonance STM8 compiler.
This commit is contained in:
@@ -53,8 +53,8 @@ static volatile int g_result;
|
||||
|
||||
|
||||
/* Forward declarations */
|
||||
static void test1_thread_func (uint32_t data);
|
||||
static void test2_thread_func (uint32_t data);
|
||||
static void test1_thread_func (uint32_t param);
|
||||
static void test2_thread_func (uint32_t param);
|
||||
|
||||
|
||||
/**
|
||||
@@ -269,14 +269,17 @@ uint32_t test_start (void)
|
||||
*
|
||||
* Entry point for test thread 1.
|
||||
*
|
||||
* @param[in] data Unused (optional thread entry parameter)
|
||||
* @param[in] param Unused (optional thread entry parameter)
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
static void test1_thread_func (uint32_t data)
|
||||
static void test1_thread_func (uint32_t param)
|
||||
{
|
||||
uint8_t status, msg;
|
||||
|
||||
/* Compiler warnings */
|
||||
param = param;
|
||||
|
||||
/* Set a test value for posting to the queue */
|
||||
msg = 0x66;
|
||||
|
||||
@@ -309,14 +312,17 @@ static void test1_thread_func (uint32_t data)
|
||||
*
|
||||
* Entry point for test thread 2.
|
||||
*
|
||||
* @param[in] data Unused (optional thread entry parameter)
|
||||
* @param[in] param Unused (optional thread entry parameter)
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
static void test2_thread_func (uint32_t data)
|
||||
static void test2_thread_func (uint32_t param)
|
||||
{
|
||||
uint8_t status, msg;
|
||||
|
||||
/* Compiler warnings */
|
||||
param = param;
|
||||
|
||||
/* Set a test value for posting to the queue */
|
||||
msg = 0x66;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user