upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/esp_mac.h
blob: ddc80d483fa699bda5f8fadf2b42c1fe9e5e2d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef STUBS_ESP_MAC_H
#define STUBS_ESP_MAC_H

#include <stdint.h>
#include <string.h>

static inline int esp_read_mac(uint8_t *mac, int type) {
    (void)type;
    memset(mac, 0, 6);
    mac[0] = 0x02;
    mac[1] = 0x00;
    mac[2] = 0x00;
    mac[3] = 0x00;
    mac[4] = 0xBE;
    mac[5] = 0xEF;
    return 0;
}

#endif