Root/Software/sie_cg/templates/basic (copy)/jz47xx_mmap.h

1/*
2 * JZ47xx GPIO lines
3 *
4 * Written 2010 by Andres Calderon andres.calderon@emqbit.com
5 */
6
7#ifndef __jz47xx_mmap_h__
8#define __jz47xx_mmap_h__
9
10#include <sys/mman.h>
11#include <stdio.h>
12#include <sys/mman.h>
13#include <fcntl.h>
14#include <stdlib.h>
15#include <termios.h>
16#include <unistd.h>
17
18#include "jz47xx_gpio.h"
19
20
21#define CS2_PORT JZ_GPIO_PORT_B
22#define CS2_PIN 26
23
24JZ_REG *virt_addr;
25
26unsigned int * jz_mmap (off_t address);
27
28void jz_cs2_init();
29
30#endif
31

Archive Download this file

Branches:
master



interactive