mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-02-18 04:43:18 +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);
|
||||
|
||||
|
||||
/**
|
||||
@@ -237,14 +237,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;
|
||||
|
||||
/*
|
||||
* Wait on queue1 with no timeout. We are expecting to be woken up
|
||||
* by the main thread while blocking.
|
||||
@@ -273,14 +276,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;
|
||||
|
||||
/*
|
||||
* Wait on queue1 with timeout. We are expecting to be woken up
|
||||
* by the main thread while blocking.
|
||||
|
||||
Reference in New Issue
Block a user