Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

target_board.c File Reference

target_board.c File Reference

Implementation of target_family.h. More...

Go to the source code of this file.

Functions

const char * get_board_id (void)
 Returns the 4-char ID of the board used by the running firmware.
uint16_t get_family_id (void)
 Returns the family ID for the target associated with the board.
uint8_t flash_algo_valid (void)
 Whether the board has a valid flash algo.

Detailed Description

Implementation of target_family.h.

DAPLink Interface Firmware Copyright (c) 2009-2019, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file target_board.c.


Function Documentation

uint8_t flash_algo_valid ( void   )

Whether the board has a valid flash algo.

Definition at line 56 of file target_board.c.

const char* get_board_id ( void   )

Returns the 4-char ID of the board used by the running firmware.

For firmware with no board, the board ID is "0000".

Definition at line 36 of file target_board.c.

uint16_t get_family_id ( void   )

Returns the family ID for the target associated with the board.

The family ID will be 0 if there is no board.

Definition at line 45 of file target_board.c.