Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtdkp committed Mar 2, 2021
1 parent 3eace9e commit eb836e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/platform/qpg6100/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ extern "C" void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const ch
chip::DeviceLayer::OnLogOutput();
}

// TODO: have qpg6100 openthread platform implementation defines the APIs.
// It is not perfect to have the openthread platform calloc/free
// APIs defined here. If a dedicated source file (e.g. Memory.cpp)
// that includes only the two functions is used, the target file
// Memory.o will be thrown away whening linking the libary because
// there is no one referring the symbols (We are not linking
// the 'platform' library against openthread).
extern "C" void * otPlatCAlloc(size_t aNum, size_t aSize)
{
return CHIPPlatformMemoryCalloc(aNum, aSize);
Expand Down

0 comments on commit eb836e2

Please sign in to comment.