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

12 months ago
  1. #pragma once
  2. #include "boardid.hpp"
  3. #include "appdep.hpp"
  4. #include "project_configs.h"
  5. using namespace iflytop;
  6. boardid::id_t BoardId_get() {
  7. int32_t *deviceId = (int32_t *)BOARD_TYPE_ID_FLASH_ADD;
  8. if (*deviceId <= 0) {
  9. return boardid::kunsupport;
  10. }
  11. return (boardid::id_t)*deviceId;
  12. }