Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 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 | |
| 18 | namespace Ui { |
| 19 | class MainWindow; |
| 20 | } |
| 21 | |
| 22 | class MainWindow : public QMainWindow { |
| 23 | Q_OBJECT |
| 24 | public: |
| 25 | MainWindow(QWidget *parent = 0); |
| 26 | ~MainWindow(); |
| 27 | JZ_PIO *initGPIO_LED(); |
| 28 | JZ_REG *initFPGA_RAM(); |
| 29 | |
| 30 | private: |
| 31 | Ui::MainWindow *ui; |
| 32 | JZ_PIO *LED; |
| 33 | JZ_REG *RAM; |
| 34 | int iter; |
| 35 | protected: |
| 36 | void timerEvent(QTimerEvent*); |
| 37 | }; |
| 38 | |
| 39 | #endif // MAINWINDOW_H |
| 40 |
Branches:
master
