inverted direction line added
This commit is contained in:
parent
e77c0c0351
commit
d1841f8af5
BIN
doc/inverter0_2016-09-23-4.png
Normal file
BIN
doc/inverter0_2016-09-23-4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
@ -46,7 +46,7 @@ volatile uint8_t activeOffset = 0;
|
|||||||
|
|
||||||
ISR(TIMER1_A0, TA1_ISR_Ovrfl) {
|
ISR(TIMER1_A0, TA1_ISR_Ovrfl) {
|
||||||
if (pulseWidthIdx == 0) {
|
if (pulseWidthIdx == 0) {
|
||||||
P1OUT ^= BIT1;
|
P1OUT ^= (BIT1 | BIT0);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t pw = pulseWidths[pulseWidthIdx + activeOffset];
|
uint16_t pw = pulseWidths[pulseWidthIdx + activeOffset];
|
||||||
@ -72,8 +72,9 @@ ISR(TIMER1_A1, TA1_ISR_Comp) {
|
|||||||
|
|
||||||
|
|
||||||
void inverterInit() {
|
void inverterInit() {
|
||||||
P1OUT &= ~BIT1;
|
P1OUT &= ~BIT0;
|
||||||
P1DIR |= BIT1;
|
P1OUT |= BIT1;
|
||||||
|
P1DIR |= BIT0 | BIT1;
|
||||||
|
|
||||||
P2OUT &= ~BIT1;
|
P2OUT &= ~BIT1;
|
||||||
P2DIR |= BIT1;
|
P2DIR |= BIT1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user