summaryrefslogtreecommitdiff
path: root/cros_ec/main.c
blob: 1a4dd78787e15f843485d2050dd8b6674a725b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (c) 2011 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.
 *
 * This is the main function of Chrome OS EC core.
 * Called by platform-dependent main function.
 *
 */
#include "cros_ec/include/core.h"
#include "cros_ec/include/ec_common.h"
#include "cros_ec/include/ec_keyboard.h"


EcError CoreMain() {
  EcError ret;

  ret = EcKeyboardInit();
  if (ret != EC_SUCCESS) {
    printf("EcKeyboardInit() failed: %d\n", ret);
    return ret;
  }

  return EC_SUCCESS;
}