mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 00:19:52 +00:00
[example-posix] add missing config definitions (#4458)
This commit updates `platform-config.h` to add default value for config definitions. This helps suppress the undefined macro warnings.
This commit is contained in:
committed by
Jonathan Hui
parent
3cb411ca22
commit
812e108103
@@ -41,6 +41,10 @@
|
||||
|
||||
#include "utils/code_utils.h"
|
||||
|
||||
#ifndef __SANITIZE_ADDRESS__
|
||||
#define __SANITIZE_ADDRESS__ 0
|
||||
#endif
|
||||
|
||||
#if __SANITIZE_ADDRESS__ != 0
|
||||
|
||||
static uint32_t sState = 1;
|
||||
|
||||
@@ -35,9 +35,49 @@
|
||||
/**
|
||||
* @def OPENTHREAD_POSIX_UART_BAUDRATE
|
||||
*
|
||||
* This setting configures the baudrate of the UART.
|
||||
* This setting configures the baud rate of the UART.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_POSIX_UART_BAUDRATE
|
||||
#define OPENTHREAD_POSIX_UART_BAUDRATE B115200
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_POSIX_VIRTUAL_TIME
|
||||
*
|
||||
* This setting configures whether to use virtual time (used for simulation) in POSIX platform.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_POSIX_VIRTUAL_TIME
|
||||
#define OPENTHREAD_POSIX_VIRTUAL_TIME 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_POSIX_VIRTUAL_TIME_UART
|
||||
*
|
||||
* This setting configures whether to use virtual time for UART.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_POSIX_VIRTUAL_TIME_UART
|
||||
#define OPENTHREAD_POSIX_VIRTUAL_TIME_UART 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_PLATFORM_USE_PSEUDO_RESET
|
||||
*
|
||||
* Define as 1 to enable pseudo-reset.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_PLATFORM_USE_PSEUDO_RESET
|
||||
#define OPENTHREAD_PLATFORM_USE_PSEUDO_RESET 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_NCP_SPI_ENABLE
|
||||
*
|
||||
* Define as 1 to enable SPI NCP interface.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_NCP_SPI_ENABLE
|
||||
#define OPENTHREAD_CONFIG_NCP_SPI_ENABLE 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user