LMS 2012
|
#include <asm/types.h>
#include "../../lms2012/source/lms2012.h"
#include "../../lms2012/source/am1808.h"
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/hrtimer.h>
#include <linux/init.h>
#include <linux/uaccess.h>
#include <linux/debugfs.h>
#include <linux/ioport.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/module.h>
#include <linux/miscdevice.h>
#include <asm/uaccess.h>
Go to the source code of this file.
Macros | |
#define | HW_ID_SUPPORT |
#define | MODULE_NAME "ui_module" |
#define | DEVICE1_NAME UI_DEVICE |
#define | NO_OF_LEDS LEDS |
#define | NO_OF_BUTTONS BUTTONS |
#define | BUTFloat(B) |
#define | BUTRead(B) ((*UiButPin[B].pGpio).in_data & UiButPin[B].Mask) |
#define | DIODEInit(D) |
#define | DIODEOn(D) |
#define | DIODEOff(D) |
#define | SHM_LENGTH (sizeof(UiDefault)) |
#define | NPAGES ((SHM_LENGTH + PAGE_SIZE - 1) / PAGE_SIZE) |
Enumerations | |
enum | UiLedPins { DIODE0, DIODE1, DIODE2, DIODE3, DIODE4, DIODE5, LED_PINS } |
enum | UiButPins { BUT0, BUT1, BUT2, BUT3, BUT4, BUT5, BUT_PINS } |
Functions | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("The LEGO Group") | |
MODULE_DESCRIPTION (MODULE_NAME) | |
MODULE_SUPPORTED_DEVICE (DEVICE1_NAME) | |
module_init (ModuleInit) | |
module_exit (ModuleExit) | |
void | SetGpio (int Pin) |
void | InitGpio (void) |
module_param (HwId, charp, 0) | |
Variables | |
int | Hw = 0 |
INPIN | UiLedPin [LED_PINS] |
INPIN | UiButPin [BUT_PINS] |
INPIN * | pUiLedPin [] |
INPIN * | pUiButPin [] |
ULONG | LEDPATTERNDATA [NO_OF_LEDS+1][LEDPATTERNS] |
UBYTE | PatternBlock = 0 |
UBYTE | PatternBits = 20 |
UBYTE | PatternBit = 0 |
ULONG | ActPattern [NO_OF_LEDS] |
ULONG | TmpPattern [NO_OF_LEDS] |
#define BUTFloat | ( | B | ) |
#define DIODEInit | ( | D | ) |
#define DIODEOff | ( | D | ) |
#define DIODEOn | ( | D | ) |
#define NPAGES ((SHM_LENGTH + PAGE_SIZE - 1) / PAGE_SIZE) |
enum UiButPins |
enum UiLedPins |
MODULE_AUTHOR | ( | "The LEGO Group" | ) |
MODULE_DESCRIPTION | ( | MODULE_NAME | ) |
module_exit | ( | ModuleExit | ) |
module_init | ( | ModuleInit | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | HwId | , |
charp | , | ||
0 | |||
) |
MODULE_SUPPORTED_DEVICE | ( | DEVICE1_NAME | ) |
ULONG ActPattern[NO_OF_LEDS] |
ULONG LEDPATTERNDATA[NO_OF_LEDS+1][LEDPATTERNS] |
INPIN* pUiButPin[] |
INPIN* pUiLedPin[] |
ULONG TmpPattern[NO_OF_LEDS] |