March 2016
Beginner to intermediate
296 pages
6h 34m
English
To access the GLCD using mutual exclusion, follow the steps outlined:
RTXBlinky.c, add the boilerplate code, and then add this source file to the project.RTXBlinky.c:#include "stm32f4xx_hal.h" /* STM32F4xx Defs */ #include "RTXBlinkyUtils.h" #include "cmsis_os.h" osThreadId tid_taskA; /* id of thread: task_a */ osThreadId tid_taskB; /* id of thread: task_b */ osMutexId mut_GLCD; /* Mutex to control GLCD access */ /*-------------------------------------------------- * Switch LED on *--------------------------------------------------*/ void switch_On ...
Read now
Unlock full access