Commit 014be931 authored by Lucas Russo's avatar Lucas Russo

hal/sm_io/protocols/sm_pr.*: add BSMP protocol as an option

parent f4e41d54
......@@ -13,6 +13,7 @@
#include "sm_pr_err.h"
#include "sm_pr_spi.h"
#include "sm_pr_i2c.h"
#include "sm_pr_bsmp.h"
#include "hal_assert.h"
/* Undef ASSERT_ALLOC to avoid conflicting with other ASSERT_ALLOC */
......@@ -142,6 +143,10 @@ static smpr_err_e _smpr_register_proto_ops (smpr_type_e type, const smpr_proto_o
*ops = &smpr_proto_ops_i2c;
break;
case SMPR_BSMP:
*ops = &smpr_proto_ops_bsmp;
break;
/*case SMPR_1WIRE:
*ops = &smpr_proto_ops_1wire;
break;
......
......@@ -27,6 +27,7 @@
enum _smpr_type_e {
SMPR_SPI = 0,
SMPR_I2C,
SMPR_BSMP,
SMPR_1WIRE,
SMPR_GPIO,
SMPR_BYPASS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment