mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
Instead of defining these options in other header files, set them
here. This also prevents pre-submit checks from complaining
about these symbols being used without being defined in config.h.
BRANCH=none
BUG=b:65697962
TEST=make buildall -j, presubmit checks pass for CL that makes
use of CONFIG_EC_EC_COMM_BATTERY_MASTER.
Change-Id: I8098a8ae6422bf0ffb26523785d7c16a3ee1c6df
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/861365
Reviewed-by: Randall Spangler <rspangler@chromium.org>
25 lines
785 B
C
25 lines
785 B
C
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* EC-EC communication, functions and definition for slave.
|
|
*/
|
|
|
|
#ifndef EC_EC_COMM_SLAVE_H_
|
|
#define EC_EC_COMM_SLAVE_H_
|
|
|
|
#include <stdint.h>
|
|
#include "consumer.h"
|
|
#include "queue.h"
|
|
|
|
/* TODO(b:65697620): Move these to battery.h, depending on a config option. */
|
|
extern struct ec_response_battery_static_info base_battery_static;
|
|
extern struct ec_response_battery_dynamic_info base_battery_dynamic;
|
|
|
|
extern struct queue const ec_ec_comm_slave_input;
|
|
extern struct queue const ec_ec_comm_slave_output;
|
|
|
|
void ec_ec_comm_slave_written(struct consumer const *consumer, size_t count);
|
|
|
|
#endif /* EC_EC_COMM_SLAVE_H_ */
|