基于NIOS II的uC/OS系統(tǒng)的開發(fā)
作者:
時間:2016-09-12
來源:網(wǎng)絡
收藏
* =====================================================================================
*
* 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];
評論