Add the debugger settings to the MSP430X IAR demo directory.

pull/4/head
Richard Barry 14 years ago
parent 0249ad47f4
commit eb94f856a8

@ -2,26 +2,26 @@
Filename: hal_MSP-EXP430F5438.h Filename: hal_MSP-EXP430F5438.h
Copyright 2010 Texas Instruments, Inc. Copyright 2010 Texas Instruments, Inc.
This is the master header file and also the only necessary file to be included This is the master header file and also the only necessary file to be included
in order to use MSP-EXP430F5438 HAL. in order to use MSP-EXP430F5438 HAL.
***************************************************************************/ ***************************************************************************/
#ifndef HAL_MSP_EXP430F5438_H #ifndef HAL_MSP_EXP430F5438_H
#define HAL_MSP_EXP430F5438_H #define HAL_MSP_EXP430F5438_H
#include "msp430.h" #include "msp430.h"
#include "hal_PMM.h" //#include "hal_PMM.h"
#include "hal_UCS.h" #include "hal_UCS.h"
#include "hal_lcd.h" #include "hal_lcd.h"
#include "hal_buttons.h" #include "hal_buttons.h"
#include "hal_adc.h" //#include "hal_adc.h"
#include "hal_board.h" #include "hal_board.h"
#include "hal_usb.h" //#include "hal_usb.h"
#include "hal_buttons.h" #include "hal_buttons.h"
#include "hal_rf.h" //#include "hal_rf.h"
#include "hal_rtc.h" //#include "hal_rtc.h"
#include "hal_tlv.h" //#include "hal_tlv.h"
#endif /* HAL_MSP_EXP430F5438_H */ #endif /* HAL_MSP_EXP430F5438_H */

@ -1,74 +1,68 @@
/** /**
* @file hal_board.c * @file hal_board.c
* *
* Copyright 2010 Texas Instruments, Inc. * Copyright 2010 Texas Instruments, Inc.
******************************************************************************/ ******************************************************************************/
#include "msp430.h" #include "msp430.h"
#include "hal_MSP-EXP430F5438.h" #include "hal_MSP-EXP430F5438.h"
/**********************************************************************//** /**********************************************************************//**
* @brief Initializes ACLK, MCLK, SMCLK outputs on P11.0, P11.1, * @brief Initializes ACLK, MCLK, SMCLK outputs on P11.0, P11.1,
* and P11.2, respectively. * and P11.2, respectively.
* *
* @param none * @param none
* *
* @return none * @return none
*************************************************************************/ *************************************************************************/
void halBoardOutputSystemClock(void) //outputs clock to testpoints void halBoardOutputSystemClock(void) //outputs clock to testpoints
{ {
CLK_PORT_DIR |= 0x07; CLK_PORT_DIR |= 0x07;
CLK_PORT_SEL |= 0x07; CLK_PORT_SEL |= 0x07;
} }
/**********************************************************************//** /**********************************************************************//**
* @brief Stops the output of ACLK, MCLK, SMCLK on P11.0, P11.1, and P11.2. * @brief Stops the output of ACLK, MCLK, SMCLK on P11.0, P11.1, and P11.2.
* *
* @param none * @param none
* *
* @return none * @return none
*************************************************************************/ *************************************************************************/
void halBoardStopOutputSystemClock(void) void halBoardStopOutputSystemClock(void)
{ {
CLK_PORT_OUT &= ~0x07; CLK_PORT_OUT &= ~0x07;
CLK_PORT_DIR |= 0x07; CLK_PORT_DIR |= 0x07;
CLK_PORT_SEL &= ~0x07; CLK_PORT_SEL &= ~0x07;
} }
/**********************************************************************//** /**********************************************************************//**
* @brief Initializes all GPIO configurations. * @brief Initializes all GPIO configurations.
* *
* @param none * @param none
* *
* @return none * @return none
*************************************************************************/ *************************************************************************/
void halBoardInit(void) void halBoardInit(void)
{ {
//Tie unused ports //Tie unused ports
PAOUT = 0; PAOUT = 0;
PADIR = 0xFFFF; PADIR = 0xFFFF;
PASEL = 0; PASEL = 0;
PBOUT = 0; PBOUT = 0;
PBDIR = 0xFFFF; PBDIR = 0xFFFF;
PBSEL = 0; PBSEL = 0;
PCOUT = 0; PCOUT = 0;
PCDIR = 0xFFFF; PCDIR = 0xFFFF;
PCSEL = 0; PCSEL = 0;
PDOUT = 0; PDOUT = 0;
PDDIR = 0xFFFF; PDDIR = 0xFFFF;
PDSEL = 0x0003; PDSEL = 0x0003;
PEOUT = 0; PEOUT = 0;
PEDIR = 0xFEFF; // P10.0 to USB RST pin, PEDIR = 0xFEFF; // P10.0 to USB RST pin,
// ...if enabled with J5 // ...if enabled with J5
PESEL = 0; PESEL = 0;
P11OUT = 0; P11OUT = 0;
P11DIR = 0xFF; P11DIR = 0xFF;
PJOUT = 0; PJOUT = 0;
PJDIR = 0xFF; PJDIR = 0xFF;
P11SEL = 0; P11SEL = 0;
AUDIO_PORT_OUT = AUDIO_OUT_PWR_PIN ;
USB_PORT_DIR &= ~USB_PIN_RXD; // USB RX Pin, Input with
// ...pulled down Resistor
USB_PORT_OUT &= ~USB_PIN_RXD;
USB_PORT_REN |= USB_PIN_RXD;
} }

@ -70,9 +70,6 @@
/* Demo application includes. */ /* Demo application includes. */
#include "serial.h" #include "serial.h"
/* HAL includes. */
#include "hal_usb.h"
/* Constants required to setup the hardware. */ /* Constants required to setup the hardware. */
#define serTX_AND_RX ( ( unsigned portCHAR ) 0x03 ) #define serTX_AND_RX ( ( unsigned portCHAR ) 0x03 )
@ -102,10 +99,6 @@ unsigned portLONG ulBaudRateCount;
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) ); xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );
xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) ); xCharsForTx = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed portCHAR ) );
USB_PORT_SEL |= USB_PIN_RXD + USB_PIN_TXD;
USB_PORT_DIR |= USB_PIN_TXD;
USB_PORT_DIR &= ~USB_PIN_RXD;
/* Reset UART. */ /* Reset UART. */
UCA1CTL1 |= UCSWRST; UCA1CTL1 |= UCSWRST;

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<Project>
<Desktop>
<Static>
<Debug-Log>
<PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1622</ColumnWidth1></Debug-Log>
<Build>
<ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1216</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window></Windows></PreferedWindows></Build>
<Workspace>
<ColumnWidths>
<Column0>247</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Disassembly>
<PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovShow>1</CodeCovShow><InstrProfShow>1</InstrProfShow></Disassembly>
<Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><Memory><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Watch><Format><struct_types/><watch_formats><Fmt><Key>{W}Watch-0:TA1CTL</Key><Value>4</Value></Fmt><Fmt><Key>{W}Watch-0:ulSP_PC_Combined</Key><Value>4</Value></Fmt></watch_formats></Format><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><Column0>134</Column0><Column1>139</Column1><Column2>124</Column2><Column3>100</Column3></Watch><Breakpoints><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window></Windows></PreferedWindows></Breakpoints><TASKVIEW><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><Column0>200</Column0><Column1>100</Column1><Column2>100</Column2><Column3>100</Column3><Column4>100</Column4><Column5>100</Column5><Column6>100</Column6><Column7>150</Column7></TASKVIEW><TerminalIO><InputSource>1</InputSource><InputMode>10</InputMode><Filename>$PROJ_DIR$\TermIOInput.txt</Filename><InputEcho>1</InputEcho><ShowReset>0</ShowReset></TerminalIO><DeviceInformationWindow><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><Column0>150</Column0><Column1>150</Column1></DeviceInformationWindow><StateStorageDialog><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></StateStorageDialog><SequencerDialog><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><SequencerMask>0</SequencerMask><Advanced>0</Advanced></SequencerDialog></Static>
<Windows>
<Wnd1>
<Tabs>
<Tab>
<Identity>TabID-11539-27703</Identity>
<TabName>Workspace</TabName>
<Factory>Workspace</Factory>
<Session>
<NodeDict><ExpandedNode>RTOSDemo</ExpandedNode></NodeDict></Session>
</Tab>
</Tabs>
<SelectedTab>0</SelectedTab></Wnd1><Wnd2><Tabs><Tab><Identity>TabID-12395-27916</Identity><TabName>Terminal I/O</TabName><Factory>TerminalIO</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd2><Wnd4><Tabs><Tab><Identity>TabID-25408-8444</Identity><TabName>Tasks</TabName><Factory>TASKVIEW</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd4></Windows>
<Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\MSP-EXP430F5438_HAL\hal_lcd.c</Filename><XPos>0</XPos><YPos>809</YPos><SelStart>27981</SelStart><SelEnd>27996</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>353</YPos><SelStart>13834</SelStart><SelEnd>13834</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\queue.c</Filename><XPos>0</XPos><YPos>451</YPos><SelStart>19345</SelStart><SelEnd>19345</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>54</YPos><SelStart>3921</SelStart><SelEnd>3921</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\lnk430F5438A_mod.xcl</Filename><XPos>0</XPos><YPos>177</YPos><SelStart>5081</SelStart><SelEnd>5081</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>1590</YPos><SelStart>50218</SelStart><SelEnd>50218</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\MSP430X\port.c</Filename><XPos>0</XPos><YPos>163</YPos><SelStart>7271</SelStart><SelEnd>7271</SelEnd></Tab><ActiveTab>6</ActiveTab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
<Top><Row0><Sizes><Toolbar-012aad68><key>iaridepm.enu1</key></Toolbar-012aad68><Toolbar-0917a2f0><key>430fet1</key></Toolbar-0917a2f0></Sizes></Row0><Row1><Sizes><Toolbar-078c7038><key>debuggergui.enu1</key></Toolbar-078c7038></Sizes></Row1><Row2><Sizes/></Row2><Row3><Sizes/></Row3><Row4><Sizes/></Row4><Row5><Sizes/></Row5><Row6><Sizes/></Row6><Row7><Sizes/></Row7><Row8><Sizes/></Row8><Row9><Sizes/></Row9><Row10><Sizes/></Row10></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>532</Bottom><Right>321</Right><x>-2</x><y>-2</y><xscreen>121</xscreen><yscreen>150</yscreen><sizeHorzCX>72024</sizeHorzCX><sizeHorzCY>152749</sizeHorzCY><sizeVertCX>192262</sizeVertCX><sizeVertCY>543788</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>532</Bottom><Right>399</Right><x>-2</x><y>-2</y><xscreen>121</xscreen><yscreen>150</yscreen><sizeHorzCX>72024</sizeHorzCX><sizeHorzCY>152749</sizeHorzCY><sizeVertCX>238690</sizeVertCX><sizeVertCY>543788</sizeVertCY></Rect></Wnd2></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>382</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>384</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>391039</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd4></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Project>

@ -0,0 +1,69 @@
[DebugChecksum]
Checksum=-802929519
[DisAssemblyWindow]
NumStates=_ 1
State 1=_ 1
[InstructionProfiling]
Enabled=_ 0
[CodeCoverage]
Enabled=_ 0
[State Storage]
Control Register=0
[Sequencer]
Control Register=0
NextState0=0
NextState1=0
[Action Register]
Break=1
State Storage=0
[Profiling]
Enabled=0
[StackPlugin]
Enabled=0
OverflowWarningsEnabled=1
WarningThreshold=90
SpWarningsEnabled=0
WarnHow=0
UseTrigger=1
TriggerName=main
LimitSize=0
ByteLimit=50
[TermIOLog]
LoggingEnabled=_ 0
LogFile=_ ""
[CallStackLog]
Enabled=0
[DriverProfiling]
Enabled=0
Mode=303237632
Graph=0
Symbiont=0
[Log file]
LoggingEnabled=_ 0
LogFile=_ ""
Category=_ 0
[Breakpoints]
Count=0
[FET]
Clock mode=14
Extended Clock mode=4047
Secure Password=
Extended Clock Control Enable=1
Advanced Extended Clock Control=0
Emulation mode=0
Free running=0
Shutting Down=1
[Memory Dump]
Start address=
Lenghth=
Address info=0
Format=0
Dump registers=0
PC=0
SP=0
SR=0
all registers=0
File name=
[Aliases]
Count=0
SuppressDialog=0

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<Workspace>
<ConfigDictionary>
<CurrentConfigs><Project>RTOSDemo/Release</Project></CurrentConfigs></ConfigDictionary>
<Desktop>
<Static>
<Workspace>
<ColumnWidths>
<Column0>401</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Build>
<ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1216</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build>
<TerminalIO/>
<Debug-Log><ColumnWidth0>18</ColumnWidth0><ColumnWidth1>1624</ColumnWidth1></Debug-Log><Find-in-Files><ColumnWidth0>580</ColumnWidth0><ColumnWidth1>82</ColumnWidth1><ColumnWidth2>994</ColumnWidth2></Find-in-Files></Static>
<Windows>
<Wnd0>
<Tabs>
<Tab>
<Identity>TabID-18858-27566</Identity>
<TabName>Workspace</TabName>
<Factory>Workspace</Factory>
<Session>
<NodeDict><ExpandedNode>RTOSDemo</ExpandedNode><ExpandedNode>RTOSDemo/F5XX_6XX_Core_Lib</ExpandedNode><ExpandedNode>RTOSDemo/MSP-EXP430F5438_HAL</ExpandedNode><ExpandedNode>RTOSDemo/Output</ExpandedNode><ExpandedNode>RTOSDemo/UserExperienceDemo</ExpandedNode></NodeDict></Session>
</Tab>
</Tabs>
<SelectedTab>0</SelectedTab></Wnd0><Wnd1>
<Tabs>
<Tab>
<Identity>TabID-25947-27638</Identity>
<TabName>Build</TabName>
<Factory>Build</Factory>
<Session/>
</Tab>
<Tab><Identity>TabID-5978-12679</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-22019-23227</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab></Tabs>
<SelectedTab>0</SelectedTab></Wnd1></Windows>
<Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\MSP-EXP430F5438_HAL\hal_lcd.c</Filename><XPos>0</XPos><YPos>809</YPos><SelStart>27981</SelStart><SelEnd>27996</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\main.c</Filename><XPos>0</XPos><YPos>353</YPos><SelStart>13834</SelStart><SelEnd>13834</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\queue.c</Filename><XPos>0</XPos><YPos>451</YPos><SelStart>19345</SelStart><SelEnd>19345</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>54</YPos><SelStart>3921</SelStart><SelEnd>3921</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\lnk430F5438A_mod.xcl</Filename><XPos>0</XPos><YPos>177</YPos><SelStart>5081</SelStart><SelEnd>5081</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\tasks.c</Filename><XPos>0</XPos><YPos>1590</YPos><SelStart>50218</SelStart><SelEnd>50218</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\Source\portable\IAR\MSP430X\port.c</Filename><XPos>0</XPos><YPos>163</YPos><SelStart>7271</SelStart><SelEnd>7271</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\MSP-EXP430F5438_HAL\hal_MSP-EXP430F5438.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>669</SelStart><SelEnd>669</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\MSP-EXP430F5438_HAL\hal_board.c</Filename><XPos>0</XPos><YPos>44</YPos><SelStart>1725</SelStart><SelEnd>1725</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\serial.c</Filename><XPos>0</XPos><YPos>83</YPos><SelStart>4515</SelStart><SelEnd>4515</SelEnd></Tab><ActiveTab>9</ActiveTab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
<Top><Row0><Sizes><Toolbar-012aad68><key>iaridepm.enu1</key></Toolbar-012aad68></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>645</Bottom><Right>475</Right><x>-2</x><y>-2</y><xscreen>331</xscreen><yscreen>267</yscreen><sizeHorzCX>197024</sizeHorzCX><sizeHorzCY>271894</sizeHorzCY><sizeVertCX>283929</sizeVertCX><sizeVertCY>658859</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>293</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>295</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>300407</sizeHorzCY><sizeVertCX>197024</sizeVertCX><sizeVertCY>271894</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Workspace>
Loading…
Cancel
Save