From 2ec7fd2d8c53adbe30c1d06885c07ae808bed662 Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Mon, 7 Jun 2010 21:30:16 +0100 Subject: [PATCH] STM8: Rename "data" parameters to "param" (Raisonance STM8 does not allow parameters named "data"). --- ports/stm8/tests-main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ports/stm8/tests-main.c b/ports/stm8/tests-main.c index dc2e372..bf83ee6 100644 --- a/ports/stm8/tests-main.c +++ b/ports/stm8/tests-main.c @@ -112,7 +112,7 @@ NEAR static uint8_t idle_thread_stack[IDLE_STACK_SIZE_BYTES]; /* Forward declarations */ -static void main_thread_func (uint32_t data); +static void main_thread_func (uint32_t param); /** @@ -185,15 +185,18 @@ NO_REG_SAVE void main ( void ) * * This is the first thread that will be executed when the OS is started. * - * @param[in] data Unused (optional thread entry parameter) + * @param[in] param Unused (optional thread entry parameter) * * @return None */ -static void main_thread_func (uint32_t data) +static void main_thread_func (uint32_t param) { uint32_t test_status; int sleep_ticks; + /* Compiler warnings */ + param = param; + /* Initialise UART (9600bps) */ if (uart_init(9600) != 0) {