1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-09 19:40:15 +02:00
nn-usb-fpga/Examples/sram_gpio/QT_src/mainwindow.h
2010-09-24 10:27:12 -05:00

40 lines
593 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "jz47xx_mmap.h"
#include "jz47xx_gpio.h"
#define CS2_PORT JZ_GPIO_PORT_B
#define CS2_PIN 26
#define LED_PORT JZ_GPIO_PORT_C
#define LED_PIN 17
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
JZ_PIO *initGPIO_LED();
JZ_REG *initFPGA_RAM();
private:
Ui::MainWindow *ui;
JZ_PIO *LED;
JZ_REG *RAM;
int iter;
protected:
void timerEvent(QTimerEvent*);
};
#endif // MAINWINDOW_H