Mercurial > pub > halpp
annotate l476rg-hal-test/include/msp.h @ 4:ca4f5b55b391
working on pwm
author | cin |
---|---|
date | Wed, 18 Jan 2017 03:27:00 +0300 |
parents | a0b14b11ad9f |
children |
rev | line source |
---|---|
1
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
1 #pragma once |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
2 #include "pwm.h" |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
3 #include "stm32l476xx.h" |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
4 |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
5 using namespace halpp; |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
6 |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
7 |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
8 class Hardware { |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
9 |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
10 typedef TPwmChannel<TIM_TypeDef, TPwmChannel1Traits<TIM_TypeDef> > PwmChannel1; |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
11 public: |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
12 |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
13 static PwmChannel1 pwm1; |
a0b14b11ad9f
working on dependencies between MCU devices such as GPIO, Pins and Timers
cin
parents:
diff
changeset
|
14 }; |