Skip to content

Commit e27d9c7

Browse files
add information about module configuration
1 parent a8b663e commit e27d9c7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/reference/contributing/connectivity/NFCEEPROMDriver.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,20 @@ These must be used to communicate the results of all asynchronous calls.
8787

8888
### Testing
8989

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:
91106
`mbed test -m [mcu] -t [toolchain] -n tests-nfc-eeprom*`.

0 commit comments

Comments
 (0)