summaryrefslogtreecommitdiff
path: root/include/tablet_mode.h
blob: 9c783ef1ffb5299cd0f82cf83d762d2ee79f8858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright 2016 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.
 */

/* Header for tablet_mode.c */

/* Return 1 if in tablet mode, 0 otherwise */
int tablet_get_mode(void);
void tablet_set_mode(int mode);

/**
 * Interrupt service routine for tablet switch.
 *
 * TABLET_MODE_GPIO_L must be defined.
 *
 * @param signal: GPIO signal
 */
void tablet_mode_isr(enum gpio_signal signal);