39 lines
745 B
C
39 lines
745 B
C
|
|
/*
|
|||
|
|
*Copyright ,2023 , NANOCHAP
|
|||
|
|
*File name: MIAN.C
|
|||
|
|
*Author:
|
|||
|
|
*Version: V1.0
|
|||
|
|
*Date: 2023-11-
|
|||
|
|
*Description: 1S <EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԣ<EFBFBD>TIMER0<EFBFBD><EFBFBD>
|
|||
|
|
*Function List:
|
|||
|
|
|
|||
|
|
History:
|
|||
|
|
1.V1.0
|
|||
|
|
Date:
|
|||
|
|
Author:
|
|||
|
|
Modification: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|
|||
|
|
*/
|
|||
|
|
#include "my_header.h"
|
|||
|
|
#include "ENS1_MTP.h"
|
|||
|
|
#include "ENS1_CLOCK.h"
|
|||
|
|
#include "ENS1_UART.h"
|
|||
|
|
#include "ENS1_TIMER.h"
|
|||
|
|
#include "ENS1_GPIO.h"
|
|||
|
|
int main(){
|
|||
|
|
MTP_init();
|
|||
|
|
ClockInit();
|
|||
|
|
GPIO_IO_Init(GPIO_19, OUTPUT, 0x00, 0x02, 0x00, 0x00, ENABLE);
|
|||
|
|
GPIO_Output(GPIO_19, LOW_LEVEL);
|
|||
|
|
/*uart*/
|
|||
|
|
UART_Init(CMSDK_UART1, &UART1_Init);
|
|||
|
|
UART_ITConfig(CMSDK_UART1, &UART1_ITSet);
|
|||
|
|
/*TIMER*/
|
|||
|
|
TIMER0_Init(1);
|
|||
|
|
while(1)
|
|||
|
|
{
|
|||
|
|
/*<2A><> void TIMER0_Handler(void) <20>жϴ<D0B6><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD>ӡ*/
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|