a00519ffdcf1001a1672faac7dcdc334
来自「这是一个基于NIOSII的俄罗斯方块游戏设计」· 代码 · 共 22 行
TXT
22 行
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include "alt_types.h"
#include "altera_avalon_dma_regs.h"
#include "altera_avalon_timer_regs.h"
#include "altera_avalon_pio_regs.h"
#include "altera_avalon_dma.h"
#include "sys/alt_irq.h"
#include "system.h"
#include "string.h"
#include "sys/alt_dma.h"
main()
{
IOWR_8DIRECT(SDRAM_BASE,0, 1);
IOWR_16DIRECT(SDRAM_BASE, 0, 2);
IOWR_8DIRECT(SDRAM_BASE, 2, 3);
IOWR_8DIRECT(SDRAM_BASE, 3, 4);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?