mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
This CL also includes 4 pieces:
1. main files: environment-independent (main.c) and
-dependent (ec_keyboard_test.c).
2. stub files: chip_stub/keyboard.c simulates the real hardware.
chip_stub/keyboard.h is the header of testing functions.
3. initial keyboard lib code: ec_keyboard.h
4. rename Cr* function name to Ec* under chip_interface/.
BUG=None
TEST=make && make runtests
Expect seeing the output debug message from cros_ec/lib/ec_keyboard.c.
Change-Id: Ia7e8022060eb0a5d0a11abcbdb3f524942f5c68d
20 lines
509 B
C
20 lines
509 B
C
/* 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.
|
|
*
|
|
* timer.h - periodical timer
|
|
*/
|
|
|
|
#ifndef __CHIP_INTERFACE_TIMER_H
|
|
#define __CHIP_INTERFACE_TIMER_H
|
|
|
|
/* init hardware and prepare ISR */
|
|
EcError EcPeriodicalTimerInit(void);
|
|
|
|
EcError EcPeriodicalTimerRegister(
|
|
int interval /* ms */,
|
|
int (*timer)(int /* delta ms from last call */));
|
|
|
|
|
|
#endif /* __CHIP_INTERFACE_TIMER_H */
|