Skip to content

Commit

Permalink
src/cyw43: Add CYW43_VERSION macros.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <dpgeorge@georgerobotics.com.au>
  • Loading branch information
Damien George committed Mar 6, 2023
1 parent d2fafda commit e52dd14
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/cyw43.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@
* \brief CYW43 driver interface
*/

/*!
* \name CYW43 driver version as components
* \brief Current version of the CYW43 driver as major/minor/micro components
* \anchor CYW43_VERSION_
*/
//!\{
#define CYW43_VERSION_MAJOR 0
#define CYW43_VERSION_MINOR 9
#define CYW43_VERSION_MICRO 0
//!\}

/*!
* \name CYW43 driver version
* \brief Combined CYW43 driver version as a 32-bit number
*/
//!\{
#define CYW43_VERSION (CYW43_VERSION_MAJOR << 16 | CYW43_VERSION_MINOR << 8 | CYW43_VERSION_MICRO)
//!\}

/*!
* \name Trace flags
* \anchor CYW43_TRACE_
Expand Down

0 comments on commit e52dd14

Please sign in to comment.