aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-07-10 06:50:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-07-10 06:50:12 +0000
commit8f03a390471628081bd78b7c5f34a0a6a404ee95 (patch)
treeac85f340f703590020b526b4d853a4c30ef06ca0 /testhal/STM32
parentb38e1f2c96ca1940f210be9ec2de6eeb076f1a10 (diff)
downloadChibiOS-8f03a390471628081bd78b7c5f34a0a6a404ee95.tar.gz
ChibiOS-8f03a390471628081bd78b7c5f34a0a6a404ee95.tar.bz2
ChibiOS-8f03a390471628081bd78b7c5f34a0a6a404ee95.zip
Added thread names to all demos.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3143 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/ADC/main.c1
-rw-r--r--testhal/STM32/CAN/main.c2
-rw-r--r--testhal/STM32/IRQ_STORM/main.c2
-rw-r--r--testhal/STM32/SPI/main.c2
-rw-r--r--testhal/STM32/USB_CDC/main.c1
-rw-r--r--testhal/STM32/USB_MSC/main.c1
6 files changed, 9 insertions, 0 deletions
diff --git a/testhal/STM32/ADC/main.c b/testhal/STM32/ADC/main.c
index f702ab8a7..214f28b5f 100644
--- a/testhal/STM32/ADC/main.c
+++ b/testhal/STM32/ADC/main.c
@@ -68,6 +68,7 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
(void)arg;
+ chRegSetThreadName("blinker");
while (TRUE) {
palClearPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
diff --git a/testhal/STM32/CAN/main.c b/testhal/STM32/CAN/main.c
index c8879d6d4..ce52ee67a 100644
--- a/testhal/STM32/CAN/main.c
+++ b/testhal/STM32/CAN/main.c
@@ -43,6 +43,7 @@ static msg_t can_rx(void *p) {
CANRxFrame rxmsg;
(void)p;
+ chRegSetThreadName("receiver");
chEvtRegister(&CAND1.rxfull_event, &el, 0);
while(!chThdShouldTerminate()) {
if (chEvtWaitAnyTimeout(ALL_EVENTS, MS2ST(100)) == 0)
@@ -64,6 +65,7 @@ static msg_t can_tx(void * p) {
CANTxFrame txmsg;
(void)p;
+ chRegSetThreadName("transmitter");
txmsg.IDE = CAN_IDE_EXT;
txmsg.EID = 0x01234567;
txmsg.RTR = CAN_RTR_DATA;
diff --git a/testhal/STM32/IRQ_STORM/main.c b/testhal/STM32/IRQ_STORM/main.c
index 4cdb7a193..7dcc62d61 100644
--- a/testhal/STM32/IRQ_STORM/main.c
+++ b/testhal/STM32/IRQ_STORM/main.c
@@ -70,6 +70,8 @@ static msg_t WorkerThread(void *arg) {
unsigned r;
msg_t msg;
+ chRegSetThreadName("worker");
+
/* Work loop.*/
while (TRUE) {
/* Waiting for a message.*/
diff --git a/testhal/STM32/SPI/main.c b/testhal/STM32/SPI/main.c
index e9807e93c..3750203bc 100644
--- a/testhal/STM32/SPI/main.c
+++ b/testhal/STM32/SPI/main.c
@@ -54,6 +54,7 @@ static WORKING_AREA(spi_thread_1_wa, 256);
static msg_t spi_thread_1(void *p) {
(void)p;
+ chRegSetThreadName("SPI thread 1");
while (TRUE) {
spiAcquireBus(&SPID1); /* Acquire ownership of the bus. */
palClearPad(IOPORT3, GPIOC_LED); /* LED ON. */
@@ -74,6 +75,7 @@ static WORKING_AREA(spi_thread_2_wa, 256);
static msg_t spi_thread_2(void *p) {
(void)p;
+ chRegSetThreadName("SPI thread 2");
while (TRUE) {
spiAcquireBus(&SPID1); /* Acquire ownership of the bus. */
palSetPad(IOPORT3, GPIOC_LED); /* LED OFF. */
diff --git a/testhal/STM32/USB_CDC/main.c b/testhal/STM32/USB_CDC/main.c
index e55e54685..a0a965bba 100644
--- a/testhal/STM32/USB_CDC/main.c
+++ b/testhal/STM32/USB_CDC/main.c
@@ -406,6 +406,7 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
(void)arg;
+ chRegSetThreadName("blinker");
while (TRUE) {
palClearPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
diff --git a/testhal/STM32/USB_MSC/main.c b/testhal/STM32/USB_MSC/main.c
index df5524a57..1bdda7a7d 100644
--- a/testhal/STM32/USB_MSC/main.c
+++ b/testhal/STM32/USB_MSC/main.c
@@ -265,6 +265,7 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
(void)arg;
+ chRegSetThreadName("blinker");
while (TRUE) {
palClearPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);