Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bringing up msp430f1611 platform... testing bacic clock

  • Loading branch information...
commit f4ee90619f7655852b3b9a4adc4ebc7ca3f9dfd9 1 parent cd18194
@ab500 authored
View
4 hijack/Makefile
@@ -4,9 +4,9 @@
# The TXT file is used for BSL loading, the ELF can be used for JTAG use
TARGET = out
-MCU = msp430fr5969
+#MCU = msp430fr5969
-#MCU = msp430f1611
+MCU = msp430f1611
BUILD = build
SOURCES = $(wildcard src/*.c)
View
3  hijack/src/include/hardware.h
@@ -27,6 +27,7 @@
// Digital Out 4: J4 (left), P6
// Analog In 1: J2 (right), P5
// Analog In 2: J2 (right), P6
+//
//////////////////////////////////////
#ifndef __HARDWARE_H__
@@ -89,7 +90,7 @@
#ifdef MSP430F1611
#define LED_PORT 1
-#define LED_PIN 0
+#define LED_PIN 2
#define MIC_PORT 4
#define MIC_PIN 0
View
3  hijack/src/include/pal.h
@@ -51,7 +51,8 @@ enum pal_gpioEnum {
pal_gpio_dout2,
pal_gpio_dout3,
pal_gpio_dout4,
- pal_gpio_mic
+ pal_gpio_mic,
+ pal_gpio_led
};
////////////////////////////////////
View
3  hijack/src/lib/pal.c
@@ -106,6 +106,9 @@ int8_t pal_setDigitalGpio(enum pal_gpioEnum pin, uint8_t val) {
case pal_gpio_mic:
gpio_set_clear(MIC_PORT, MIC_PIN, val);
return 0;
+ case pal_gpio_led:
+ gpio_set_clear(LED_PORT, LED_PIN, val);
+ return 0;
default:
return -1;
}
View
6 hijack/src/main.c
@@ -119,6 +119,12 @@ void initializeSystem(void) {
// Start the interrupt-driven timers.
pal_startTimers();
+ while(1)
+ {
+ pal_setDigitalGpio(pal_gpio_led, 1);
+ pal_setDigitalGpio(pal_gpio_led, 0);
+ }
+
// Start the transmit callback-driven
// loop
fe_writeTxBuffer(outMessage, 9);
Please sign in to comment.
Something went wrong with that request. Please try again.