加入外设头文件,移动中断编号

This commit is contained in:
Ruige Lee
2025-01-22 17:12:40 +08:00
parent 33f2160365
commit faf8abc29a
14 changed files with 292 additions and 474 deletions

21
tb/sw/periph/pwm.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef _PWM_H_
#define _PWM_H_
#include <stdint.h>
#define PWM_BASE 0x3020000U
#define CFG 0x00
#define COUNT 0x08
#define PWMS 0x10
#define CMP0 0x20
#define CMP1 0x24
#define CMP2 0x28
#define CMP3 0x2C