#define BIT_0 ( 1 << 0 ) #define BIT_4 ( 1 << 4 ) /* This code assumes the event group referenced by the xEventGroup variable has already been created using a call to xEventGroupCreate(). */ void anInterruptHandler( void ) { BaseType_t xSuccess; /* Clear bit 0 and bit 4 in xEventGroup. */ xSuccess = xEventGroupClearBitsFromISR( xEventGroup, /* The event group being updated. */ BIT_0 | BIT_4 );/* The bits being cleared. */ if( xSuccess == pdPASS ) { /* The command was sent to the daemon task. */ } else { /* The clear bits command was not sent to the daemon task. */ } }
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|
Latest News
NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS. Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019 Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed. View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS. Careers
FreeRTOS and other embedded software careers at AWS. FreeRTOS Partners
|