加入外设头文件,移动中断编号
This commit is contained in:
21
tb/sw/periph/pwm.h
Normal file
21
tb/sw/periph/pwm.h
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user