Root/Examples/sram_gpio/QT_src/mainwindow.h

1#ifndef MAINWINDOW_H
2#define MAINWINDOW_H
3
4
5
6#include <QMainWindow>
7#include "jz47xx_mmap.h"
8#include "jz47xx_gpio.h"
9
10#define CS2_PORT JZ_GPIO_PORT_B
11#define CS2_PIN 26
12#define LED_PORT JZ_GPIO_PORT_C
13#define LED_PIN 17
14
15
16
17
18namespace Ui {
19    class MainWindow;
20}
21
22class MainWindow : public QMainWindow {
23    Q_OBJECT
24public:
25    MainWindow(QWidget *parent = 0);
26    ~MainWindow();
27    JZ_PIO *initGPIO_LED();
28    JZ_REG *initFPGA_RAM();
29
30private:
31    Ui::MainWindow *ui;
32    JZ_PIO *LED;
33    JZ_REG *RAM;
34    int iter;
35protected:
36    void timerEvent(QTimerEvent*);
37};
38
39#endif // MAINWINDOW_H
40

Archive Download this file

Branches:
master



interactive