Noodle
Loading...
Searching...
No Matches
noodle_config.h
Go to the documentation of this file.
1#pragma once
2
3// Filesystem backend selection (exactly one)
4// If the user didn't pick anything (including NONE), pick a default.
5#if !defined(NOODLE_USE_SD_MMC) && !defined(NOODLE_USE_SDFAT) && !defined(NOODLE_USE_FFAT) && !defined(NOODLE_USE_LITTLEFS) && !defined(NOODLE_USE_NONE)
6 #define NOODLE_USE_SDFAT
7#endif
8
9
10// Pooling enums
11#ifndef NOODLE_POOL_NONE
12 #define NOODLE_POOL_NONE 0
13#endif
14#ifndef NOODLE_POOL_MAX
15 #define NOODLE_POOL_MAX 1
16#endif
17#ifndef NOODLE_POOL_MEAN
18 #define NOODLE_POOL_MEAN 2
19#endif
20
21// Select pooling mode
22#ifndef NOODLE_POOL_MODE
23 #define NOODLE_POOL_MODE NOODLE_POOL_MEAN
24#endif
25
26#if NOODLE_POOL_MODE == NOODLE_POOL_MAX
27 #pragma message "pooling mode = MAX"
28#elif NOODLE_POOL_MODE == NOODLE_POOL_MEAN
29 #pragma message "pooling mode = MEAN"
30#elif NOODLE_POOL_MODE == NOODLE_POOL_NONE
31 #pragma message "pooling mode = NONE"
32#else
33 #error "invalid NOODLE_POOL_MODE"
34#endif
35
36// Define maksimum kernel size to avoid variable allocation!
37#ifndef NOODLE_MAX_K
38 #define NOODLE_MAX_K 5
39#endif