changed
This commit is contained in:
@ -5,7 +5,8 @@
|
|||||||
* Author: wn
|
* Author: wn
|
||||||
*/
|
*/
|
||||||
#include <msp430g2553.h>
|
#include <msp430g2553.h>
|
||||||
#include <isr_compat.h>
|
// #include <isr_compat.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
@ -18,7 +19,8 @@ uint16_t pwmVal = 128;
|
|||||||
volatile uint16_t onTime = 500;
|
volatile uint16_t onTime = 500;
|
||||||
volatile uint16_t offTime = 200;
|
volatile uint16_t offTime = 200;
|
||||||
|
|
||||||
ISR(TIMER0_A0, TA0_ISR) {
|
// ISR(TIMER0_A0, TA0_ISR) {
|
||||||
|
interrupt (TIMER0_A0_VECTOR) timer0a0_isr(void) {
|
||||||
tickCnt++;
|
tickCnt++;
|
||||||
|
|
||||||
static uint8_t state0 = 0;
|
static uint8_t state0 = 0;
|
||||||
|
Reference in New Issue
Block a user