mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-02-28 01:23:15 +01:00
TESTS: Function parameters cannot be named "data" when using Raisonance STM8 compiler.
This commit is contained in:
@@ -53,7 +53,7 @@ static volatile int pass_flag[3];
|
||||
|
||||
|
||||
/* Forward declarations */
|
||||
static void test_thread_func (uint32_t data);
|
||||
static void test_thread_func (uint32_t param);
|
||||
|
||||
|
||||
/**
|
||||
@@ -192,18 +192,18 @@ uint32_t test_start (void)
|
||||
*
|
||||
* Entry point for test threads.
|
||||
*
|
||||
* @param[in] data Thread ID (0-2)
|
||||
* @param[in] param Thread ID (0-2)
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
static void test_thread_func (uint32_t data)
|
||||
static void test_thread_func (uint32_t param)
|
||||
{
|
||||
uint8_t status;
|
||||
uint8_t msg;
|
||||
int thread_id;
|
||||
|
||||
/* Pull out the passed thread ID */
|
||||
thread_id = (int)data;
|
||||
thread_id = (int)param;
|
||||
|
||||
/*
|
||||
* Wait on queue1 with timeout. We are expecting to be woken up
|
||||
|
||||
Reference in New Issue
Block a user