STM8 port: Add UART support. Make use of full 1KB on Discovery. Improve documentation.

This commit is contained in:
Kelvin Lawson
2010-03-09 00:37:46 +00:00
parent 097c32bf10
commit 7d56170c40
41 changed files with 2411 additions and 121 deletions

View File

@@ -195,7 +195,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -166,7 +166,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -274,7 +274,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -255,7 +255,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -226,7 +226,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -223,7 +223,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -237,7 +237,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -228,7 +228,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -192,7 +192,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -175,7 +175,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -167,7 +167,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -220,7 +220,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -252,7 +252,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -243,7 +243,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -198,7 +198,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -175,7 +175,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -218,7 +218,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -281,7 +281,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -222,7 +222,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -212,7 +212,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -175,7 +175,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -158,7 +158,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -244,7 +244,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -203,7 +203,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -168,7 +168,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}

View File

@@ -137,7 +137,7 @@ uint32_t test_start (void)
/* Log the stack usage */
#ifdef TESTS_LOG_STACK_USAGE
ATOMLOG (_STR("StackUse:%d\n"), used_bytes);
ATOMLOG (_STR("StackUse:%d\n"), (int)used_bytes);
#endif
}
}