Add PLATFORM_R311 define for allwinner r311 chipset

This commit is contained in:
HuangXin 2018-12-29 14:33:39 +08:00
parent 73f034f70a
commit 7fd2c5c290
3 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
#include "libuv_dbus.h"
#include "server_addr.h"
#ifdef PLATFORM_R16
#if defined PLATFORM_R16 || defined PLATFORM_R311
#define DEVICE_CFG_FILE ("/mnt/UDISK/dev.conf")
#else
#define DEVICE_CFG_FILE ("./dev.conf")

View File

@ -1461,7 +1461,7 @@ static void __dBusDeameonCb(MODULE_NAME modName, int status)
static void __waitUDISKMount(void)
{
#ifdef PLATFORM_R16
#if defined PLATFORM_R16 || defined PLATFORM_R311
const char* pDoneStat = "done";
const char* pBootStatFile = "/tmp/booting_state";
char buf[5];
@ -1891,7 +1891,7 @@ void SystemSafeReboot(void)
char* GetCpuChipId(void)
{
char* pRet = NULL;
#ifdef PLATFORM_R16
#if defined PLATFORM_R16 || defined PLATFORM_R311
char* pChipId = NULL;
GetShellExecResult("cat /proc/cpuinfo | grep Chipid | awk '{print $3}'", &pChipId);
@ -1912,7 +1912,7 @@ char* GetCpuChipId(void)
char* GetCpuSerial(void)
{
char* pRet = NULL;
#ifdef PLATFORM_R16
#if defined PLATFORM_R16 || defined PLATFORM_R311
char* pSerial = NULL;
GetShellExecResult("cat /proc/cpuinfo | grep Serial | awk '{print $3}'", &pSerial);

View File

@ -44,7 +44,7 @@
#define LOG_FILE_BASEDIR ("/tmp")
#endif
#ifdef PLATFORM_R16
#if defined PLATFORM_R16 || defined PLATFORM_R311
#define NIC_NAME ("wlan0")
#else
#define NIC_NAME ("enp3s0")