speed up blinking

This commit is contained in:
Alwin Berger 2022-01-03 23:34:47 +01:00
parent 6e688a7451
commit cc5ba84bd8
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
build

View File

@ -35,7 +35,7 @@ static void prvQueueSendTask( void * pvParameters );
#define mainQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 ) #define mainQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
#define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 ) #define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
#define mainQUEUE_LENGTH ( 1 ) #define mainQUEUE_LENGTH ( 1 )
#define mainQUEUE_SEND_FREQUENCY_MS ( 200 / portTICK_PERIOD_MS ) #define mainQUEUE_SEND_FREQUENCY_MS ( 10 / portTICK_PERIOD_MS )
/* The queue used by both tasks. */ /* The queue used by both tasks. */
static QueueHandle_t xQueue = NULL; static QueueHandle_t xQueue = NULL;
@ -130,7 +130,7 @@ static void prvQueueReceiveTask( void * pvParameters )
if( ulReceivedValue == ulExpectedValue ) if( ulReceivedValue == ulExpectedValue )
{ {
printf( "%s %u -> %u\n", "blinking", ulRxEvents, FUZZ_INPUT[0]); printf( "%s %u -> %u\n", "blinking", ulRxEvents, FUZZ_INPUT[0]);
vTaskDelay( 1000 ); vTaskDelay( 10 );
ulReceivedValue = 0U; ulReceivedValue = 0U;
ulRxEvents++; ulRxEvents++;
if (ulRxEvents%4096 == FUZZ_INPUT[0]) if (ulRxEvents%4096 == FUZZ_INPUT[0])