完成了PWM功能,Timer0作为系统计时器,除了计时可以产生PWM
Timer0作为计时器
统一了定时器函数,不区别8位和16位定时器。
1.为定时器增加了三个函数。
实现了定时器中断OVF,其他两个比较中断未测试。
定时器也修改成外设数组的形式。
定义了USART寄存器类型和USART0~USART4寄存器
将GPIO函数的参数“寄存器结构”修改成简单的枚举类型