libhackrf: #define outdated board IDs

This commit is contained in:
Michael Ossmann
2022-09-19 19:55:33 -04:00
parent c487e3f6b1
commit 471c5bc5de

View File

@ -91,6 +91,12 @@ enum hackrf_board_id {
BOARD_ID_UNDETECTED = 0xFF, /* detection not yet attempted */
};
/*
* These deprecated board ID names are provided for API compatibility.
*/
#define BOARD_ID_HACKRF_ONE (BOARD_ID_HACKRF1_OG)
#define BOARD_ID_INVALID (BOARD_ID_UNDETECTED)
enum hackrf_board_rev {
BOARD_REV_HACKRF1_OLD = 0,
BOARD_REV_HACKRF1_R6 = 1,