upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/freertos/event_groups.h
blob: 28f64037eff9d643d73461a73cbab2854018de28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef STUBS_FREERTOS_EVENT_GROUPS_H
#define STUBS_FREERTOS_EVENT_GROUPS_H

#include <stdint.h>

typedef void *EventGroupHandle_t;
#define BIT0 (1 << 0)

static inline EventGroupHandle_t xEventGroupCreate(void) { return (EventGroupHandle_t)1; }
static inline uint32_t xEventGroupSetBits(EventGroupHandle_t eg, uint32_t bits) { (void)eg; return bits; }
static inline uint32_t xEventGroupClearBits(EventGroupHandle_t eg, uint32_t bits) { (void)eg; return bits; }

#endif