diff options
| author | Du Huanpeng <[email protected]> | 2020-07-03 15:54:03 +0800 |
|---|---|---|
| committer | Du Huanpeng <[email protected]> | 2020-07-03 15:54:03 +0800 |
| commit | cde1e5d940ee1caaeb6051e3a9941591338e41a9 (patch) | |
| tree | d419f9643a8304fdda5cf1799574868059afc0fc /bsp/ls2kdev/drivers/ls2k1000.h | |
| parent | 4108836a9003c411e127eb5bea80a5d09cd61bd5 (diff) | |
bsp: ls2k: pwm driver
attach probe of the oscilloscope too the
3.3v & PWM3 like below:
jack
------| |---| |-| |----
|o o 3.3v |eth1| |eth0|
|o o
|o o
|o o PWM3
|o o
type commands below to rt-thread console:
msh /> pwm_enable pwm0 3
msh /> pwm_set pwm0 3 140 90
turn off pwm:
msh /> pwm_disable pwm0 3
Signed-off-by: Du Huanpeng <[email protected]>
Diffstat (limited to 'bsp/ls2kdev/drivers/ls2k1000.h')
| -rw-r--r-- | bsp/ls2kdev/drivers/ls2k1000.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsp/ls2kdev/drivers/ls2k1000.h b/bsp/ls2kdev/drivers/ls2k1000.h index 40c0496ba9..24396e7d3b 100644 --- a/bsp/ls2kdev/drivers/ls2k1000.h +++ b/bsp/ls2kdev/drivers/ls2k1000.h @@ -22,6 +22,8 @@ #define PLL_SYS_BASE 0xFFFFFFFFBFE10480 #define RTC_BASE 0xFFFFFFFFBFE07820 +#define GEN_CONFIG0_REG 0xFFFFFFFFBfe10420 + void rt_hw_timer_handler(void); void rt_hw_uart_init(void); |
