You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
299 B
14 lines
299 B
#pragma once
|
|
#include "boardid.hpp"
|
|
|
|
#include "appdep.hpp"
|
|
#include "project_configs.h"
|
|
using namespace iflytop;
|
|
|
|
boardid::id_t BoardId_get() {
|
|
int32_t *deviceId = (int32_t *)BOARD_TYPE_ID_FLASH_ADD;
|
|
if (*deviceId <= 0) {
|
|
return boardid::kunsupport;
|
|
}
|
|
return (boardid::id_t)*deviceId;
|
|
}
|