[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:
Abtin Keshavarzian
2020-01-09 11:45:39 -08:00
committed by Jonathan Hui
parent 3cb411ca22
commit 812e108103
2 changed files with 45 additions and 1 deletions
+4
View File
@@ -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;
+41 -1
View File
@@ -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