k210
chilian12321
这个作者很懒,什么都没留下…
展开
-
k210定时器0 控制 定时器1的pwm
使用的是360度舵机,通过定时器0每隔10毫秒调速一次,通过调节定时器1的占空比 改变速度#include <fpioa.h>#include <plic.h>#include <pwm.h>#include <stdio.h>#include <sysctl.h>#include <syslog.h>#include <timer.h>#define TIMER_NOR (0...原创 2020-07-15 13:44:33 · 1308 阅读 · 1 评论 -
k210实现定时器中断
通过定时器0通道0,实现LED闪烁#include <fpioa.h>#include <plic.h>#include <stdio.h>#include <sysctl.h>#include <syslog.h>#include <timer.h>#include <unistd.h>#include "gpiohs.h"int ctx = 0;int value = 0;//原创 2020-07-13 09:16:53 · 715 阅读 · 0 评论 -
k210开发板 K210_Kendryte 串口中断
通过Kendryte开发平台,实现k210开发板的串口中断,串口助手发送55 AA 55 55 55 55 led灯亮,发送55 AA AA AA AA AAled灯灭,我使用的是01Studio的开发板,配置了三色灯的蓝灯IO12.#include <stdio.h>#include <string.h>#include "fpioa.h"#include "gpiohs.h"#include "sysctl.h"#include "uart.h".原创 2020-07-11 16:16:26 · 2611 阅读 · 2 评论