# Platform Specific Services

This module includes configuration variables for platform-specific services.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga89cd6dd7af40cc70d1fc6dcc744a0b3d 0` | The sentinel `KeyRef` value that marks "no key set". |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga7f6d8af9e51218c8f6ae9aaf8677e154 0` | The assert is managed by platform defined logic when this flag is set. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gac8fc2df139abcb32c277ed669c924532 0` | Define as 1 to enable run-time selection of DNSSD module, i.e., whether the native OpenThread mDNS module is used or the platform `otPlatDnssd` APIs are used (DNSSD support is delegated to the platform layer). |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gaf66d8793350d468e80ddc603d3290fae 0` | Define as 1 to enable DNSSD (mDNS) platform module. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga9db6b2d30873d111b6d9962f8c6bb762 "NONE"` | The platform-specific string to insert into the OpenThread version string. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga8749c3ced507bbff96dc148c27a50e39 (OPENTHREAD_CONFIG_CRYPTO_LIB == OPENTHREAD_CONFIG_CRYPTO_LIB_PSA)` | Define to 1 if you want to enable key ref usage support as defined by platform. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gab38a69722c40edbc44e9e8d86a64475c 0` | Define to 1 if you want to make MAC keys exportable. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga7b4f08ba6f8cac98bf27a7897991528c 0` | The message pool is managed by platform defined logic when this flag is set. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga5728f5fa7033354bb0b96db9c529374c 0` | Define to 1 to enable platform NETIF support. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gaab3ec4c79a2a99486f79bafef599cbdf 0` | Define as 1 to enable platform power calibration support. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga27c9e94199e3addfcbe6bb5e918b06f6 0` | Define to 1 if you want to enable radio coexistence implemented in platform. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gac60f0838917c3c8f17f220a66428f6d6 0` | Define to 1 if you want to enable proprietary radio support as defined by platform. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga7aeac46d7b8cf6effdb99aa6eafdb803 0` | Define to 1 to enable platform UDP support. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1gafbf81492e93175d9e17550e636ce9c00 0` | Define to 1 if you want to enable microsecond backoff timer implemented in platform. |
| `https://openthread.io/reference/config/group/config-platform#group__config-platform_1ga6c46c2a59d385c7cd0625f0948ad7223 0x20000` | Default NVM offset while using key refs. |

## Macros

### OPENTHREAD_CONFIG_CRYPTO_INVALID_KEY_REF

```
 OPENTHREAD_CONFIG_CRYPTO_INVALID_KEY_REF 0
```
The sentinel `KeyRef` value that marks "no key set".

Depends on the crypto backend in use. A backend whose platform reserves a different value as invalid can override this definition. Defaults to `PSA_KEY_ID_NULL`, as used by the default PSA backend.

### OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT

```
 OPENTHREAD_CONFIG_PLATFORM_ASSERT_MANAGEMENT 0
```
The assert is managed by platform defined logic when this flag is set.

### OPENTHREAD_CONFIG_PLATFORM_DNSSD_ALLOW_RUN_TIME_SELECTION

```
 OPENTHREAD_CONFIG_PLATFORM_DNSSD_ALLOW_RUN_TIME_SELECTION 0
```
Define as 1 to enable run-time selection of DNSSD module, i.e., whether the native OpenThread mDNS module is used or the platform `otPlatDnssd` APIs are used (DNSSD support is delegated to the platform layer).

This config is mainly intended for testing, allowing test-specific `otPlatDnssd` APIs to be used instead of the native mDNS module in unit tests.

### OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE 0
```
Define as 1 to enable DNSSD (mDNS) platform module.

### OPENTHREAD_CONFIG_PLATFORM_INFO

```
 OPENTHREAD_CONFIG_PLATFORM_INFO "NONE"
```
The platform-specific string to insert into the OpenThread version string.

### OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE (OPENTHREAD_CONFIG_CRYPTO_LIB == OPENTHREAD_CONFIG_CRYPTO_LIB_PSA)
```
Define to 1 if you want to enable key ref usage support as defined by platform.

### OPENTHREAD_CONFIG_PLATFORM_MAC_KEYS_EXPORTABLE_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_MAC_KEYS_EXPORTABLE_ENABLE 0
```
Define to 1 if you want to make MAC keys exportable.

### OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT

```
 OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT 0
```
The message pool is managed by platform defined logic when this flag is set.

This feature would typically be used when operating in a multi-threaded system and multiple threads need to access the message pool.

### OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE 0
```
Define to 1 to enable platform NETIF support.

### OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE 0
```
Define as 1 to enable platform power calibration support.

### OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE 0
```
Define to 1 if you want to enable radio coexistence implemented in platform.

### OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_SUPPORT

```
 OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_SUPPORT 0
```
Define to 1 if you want to enable proprietary radio support as defined by platform.

### OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 0
```
Define to 1 to enable platform UDP support.

### OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE

```
 OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE 0
```
Define to 1 if you want to enable microsecond backoff timer implemented in platform.

### OPENTHREAD_CONFIG_PSA_ITS_NVM_OFFSET

```
 OPENTHREAD_CONFIG_PSA_ITS_NVM_OFFSET 0x20000
```
Default NVM offset while using key refs.

Platforms can override this definition based on implementation

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).