基于NIOS II的uC/OS系统的开发

嵌入式系统 时间:2016-09-12来源:网络
/*
* =====================================================================================
*
* Filename: ds1302.c
*
* Description: DS1302驱动
*
* Version: 1.0.0
* Created: 2010.4.16
* Revision: none
* Compiler: Nios II 9.0 IDE
*
* Author: 马瑞 (AVIC)
* Email: avic633@gmail.com
*
* =====================================================================================
*/
#include stdio.h>
#include unistd.h>
#include string.h>
#include includes.h
#include alt_ucosii_simple_error_check.h
#includeds1302.h
#include altera_avalon_pio_regs.h
#include altera_avalon_timer_regs.h
#include alt_types.h
#include sys/alt_irq.h
//定义椎栈
#define TASK_STACKSIZE 2048
OS_STK initialize_task_stk[TASK_STACKSIZE];
OS_STK ds1302_task_stk[TASK_STACKSIZE];
1 2 3 4 5 6 7 8 9 10 11

关键词:

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW

或用微信扫描左侧二维码

相关文章

查看电脑版