//******************************************************************************
//! Software Port Interrupt Service on P1.4 from LPM4 with
//! Internal Pull-up Resistance Enabled
//!
//! A hi "TO" low transition on P1.4 will trigger P1_ISR which,
//! toggles P1.0. P1.4 is internally enabled to pull-up. Normal mode is
//! LPM4 ~ 0.1uA. LPM4 current can be measured with the LED removed, all
//! unused Px.x configured as output or inputs pulled high or low.
//! ACLK = n/a, MCLK = SMCLK = default DCO
//!
//! MSP430F5438A
//! -----------------
//! /|\| XIN|-
//! | | |
//! --|RST XOUT|-
//! /|\ | |
//! --o--|P1.4 P1.0|-->LED
//! \|/
//!
//! This example uses the following peripherals and I/O signals. You must
//! review these and change as needed for your own board:
//! - GPIO Port peripheral
//!
//! This example uses the following interrupt handlers. To use this example
//! in your own application you must add these interrupt handlers to your
//! vector table.
//! - PORT1_VECTOR
//!
//******************************************************************************
#include "inc/hw_memmap.h"
#include "gpio.h"
#include "wdt_a.h"
#include "gpio.h"
void main (void)
{
//Stop watchdog timer
WDT_A_hold(WDT_A_BASE);
//Set P1.0 to output direction
GPIO_setAsOutputPin(
GPIO_PORT_P1,
GPIO_PIN0
);