You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/contributing/connectivity/NFCEEPROMDriver.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,5 +87,20 @@ These must be used to communicate the results of all asynchronous calls.
87
87
88
88
### Testing
89
89
90
-
Run tests with:
90
+
A macro `NFCEEPROM` is required for the test to be built. The module containing your driver should comtain `mbed_lib.json`. Add a configuration option for the build system to convert into a macro. Your `mbed_lib.json` could look like this:
91
+
92
+
```javascript
93
+
{
94
+
"name":"MBED_NFC_<name of your driver>",
95
+
"config": {
96
+
"nfceeprom": {
97
+
"macro_name":"NFCEEPROM",
98
+
"value":true,
99
+
"help":"Device supports NFC EEPROM"
100
+
}
101
+
}
102
+
}
103
+
```
104
+
105
+
Run the tests with:
91
106
`mbed test -m [mcu] -t [toolchain] -n tests-nfc-eeprom*`.
0 commit comments