mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-29 06:28:36 -04:00
Update the demo directory to use the version 8 type naming conventions.
This commit is contained in:
parent
c6d8892b0d
commit
5a2a8fc319
639 changed files with 3127 additions and 3470 deletions
|
@ -75,10 +75,10 @@
|
|||
#include "semphr.h"
|
||||
|
||||
/* Delays used within the dice functionality. All delays are defined in milliseconds. */
|
||||
#define diceDELAY_BETWEEN_RANDOM_NUMBERS_ms ( 20 / portTICK_RATE_MS )
|
||||
#define diceSHAKE_TIME ( ( 2000 / portTICK_RATE_MS ) / diceDELAY_BETWEEN_RANDOM_NUMBERS_ms )
|
||||
#define diceSHORT_PAUSE_BEFORE_SHAKE ( 250 / portTICK_RATE_MS )
|
||||
#define diceDELAY_WHILE_DISPLAYING_RESULT ( 5000 / portTICK_RATE_MS )
|
||||
#define diceDELAY_BETWEEN_RANDOM_NUMBERS_ms ( 20 / portTICK_PERIOD_MS )
|
||||
#define diceSHAKE_TIME ( ( 2000 / portTICK_PERIOD_MS ) / diceDELAY_BETWEEN_RANDOM_NUMBERS_ms )
|
||||
#define diceSHORT_PAUSE_BEFORE_SHAKE ( 250 / portTICK_PERIOD_MS )
|
||||
#define diceDELAY_WHILE_DISPLAYING_RESULT ( 5000 / portTICK_PERIOD_MS )
|
||||
|
||||
/* Macro to access the display ports. */
|
||||
#define dice7SEG_Value( x ) ( *( pucDisplayOutput[ x ] ) )
|
||||
|
@ -98,7 +98,7 @@ static const char cDisplaySegments[ 2 ][ 11 ] =
|
|||
/* The semaphores used to communicate button push events between the button
|
||||
input interrupt handlers and the dice tasks. Two dice tasks are created so two
|
||||
semaphores are required. */
|
||||
static xSemaphoreHandle xSemaphores[ 2 ] = { 0 };
|
||||
static SemaphoreHandle_t xSemaphores[ 2 ] = { 0 };
|
||||
|
||||
/* Defines the ports used to write to the display. This variable is defined in
|
||||
partest.c, which contains the LED set/clear/toggle functions. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue