f01aff0ae0f1001a1a47b6584e8f9250

来自「这是一个基于NIOSII的俄罗斯方块游戏设计」· 代码 · 共 20 行

TXT
20
字号

#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_32DIRECT(SDRAM_BASE, 5, 2);
  } 
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?