summaryrefslogtreecommitdiff
path: root/screen.c
blob: 34b27f3cca1da47c576ae746bbf3a7f17de22916 (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
#include <curses.h>

#include "screen.h"

WINDOW *screen_init(bool israw)
{
	WINDOW *screen = initscr();

	if (israw)
		raw();
	noecho();
	cbreak();
	nodelay(screen, TRUE);
	keypad(stdscr, TRUE);
	refresh();
	wrefresh(screen);

	return screen;
}

void screen_end(void)
{
	endwin();
}
authorLinus Walleij <linus.walleij@linaro.org>2014-01-22 15:00:55 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-02-03 09:11:57 +0100
commit99adc0594864ebbae4478c5d85d84930894ea098 (patch)
treeeb1a1b0a008a384da7febb03247b92fde8191418 /arch/powerpc/kernel/fpu.S
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
gpio: document how to make combined GPIO+irqchip drivers
Write a few words on how GPIO drivers supplying an irqchip should be written. Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/powerpc/kernel/fpu.S')