File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * This file is part of Arduino_KVStore.
3
+ *
4
+ * Copyright (c) 2024 Arduino SA
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ */
10
+
11
+ #pragma once
12
+ #include "kvstore/kvstore.h"
13
+
14
+ #if defined(ARDUINO_UNOR4_WIFI )
15
+ #include "kvstore/implementation/UnoR4.h"
16
+
17
+ using KVStore = Unor4KVStore ;
18
+
19
+ #elif defined(ARDUINO_PORTENTA_H7_M7 ) || defined(ARDUINO_NICLA_VISION ) \
20
+ || defined(ARDUINO_OPTA ) || defined(ARDUINO_GIGA )
21
+ #include "kvstore/implementation/stm32h7.h"
22
+
23
+ using KVStore = STM32H7KVStore ;
24
+
25
+ #elif defined(ARDUINO_PORTENTA_C33 )
26
+
27
+ #include "kvstore/implementation/portentac33.h"
28
+
29
+ using KVStore = PortentaC33KVStore ;
30
+
31
+ #elif defined(ARDUINO_ARCH_SAMD ) || defined(ARDUINO_NANO_RP2040_CONNECT )
32
+
33
+ #include "kvstore/implementation/Nina.h"
34
+
35
+ using KVStore = NinaKVStore ;
36
+
37
+ #elif defined(ARDUINO_ARCH_ESP32 )
38
+
39
+ #include "kvstore/implementation/ESP32.h"
40
+
41
+ using KVStore = ESP32KVStore ;
42
+
43
+ #else
44
+ #error "Arduino KVStore is not supported on current platform"
45
+ #endif
You can’t perform that action at this time.
0 commit comments