feat: publish FreeRTOS C FC09 card
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "task01_event_groups_model.h"
|
||||
|
||||
int main( void )
|
||||
{
|
||||
EventGroupEvidence events[ 11 ];
|
||||
size_t index;
|
||||
|
||||
assert( fc09_mask_contains( 0x73U, 0x03U ) != 0 );
|
||||
assert( fc09_mask_contains( 0x31U, 0x70U ) == 0 );
|
||||
for( index = 0U; index < 11U; ++index )
|
||||
{
|
||||
events[ index ] = ( EventGroupEvidence ) {
|
||||
( uint32_t ) index + 1U,
|
||||
( uint32_t ) index + 1U,
|
||||
0U,
|
||||
( uint32_t ) index,
|
||||
( uint32_t ) index,
|
||||
0xFC090000U | ( ( uint32_t ) index + 1U )
|
||||
};
|
||||
}
|
||||
assert( fc09_order_is_valid( events, 11U ) != 0 );
|
||||
assert( fc09_digest( events, 11U ) == fc09_digest( events, 11U ) );
|
||||
events[ 7 ].event = 9U;
|
||||
assert( fc09_order_is_valid( events, 11U ) == 0 );
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user