Devices430X.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32 */
33 /*==========================================================================*\
34 | |
35 | Devices430X.h |
36 | |
37 | Device Function Prototypes and Definitions for FLASH programming. |
38 | |
39 |----------------------------------------------------------------------------|
40 | Project: MSP430 Replicator |
41 | Developed using: IAR Embedded Workbench 6.20 |
42 | and: Code Composer Studio 6.0 |
43 |----------------------------------------------------------------------------|
44 | Version history: |
45 | 1.0 02/06 LUT Initial version. |
46 | 1.1 04/07 WLUT Enhanced with adress ranges for all actual silica |
47 | 1.2 06/12 RL Updated commentaries |
48 |----------------------------------------------------------------------------|
49 | Designed 2005 by Texas Instruments Germany |
50 \*==========================================================================*/
53 /****************************************************************************/
54 /* Defines */
55 /****************************************************************************/
56 
57 #ifndef _DEVICES_H_
58 #define _DEVICES_H_
59 
60 #ifndef __BYTEWORD__
61 #define __BYTEWORD__
62 typedef unsigned int word;
63 typedef unsigned char byte;
64 #endif
65 
66 typedef unsigned char bool;
67 #define TRUE 1
68 #define FALSE 0
69 
70 // Constants for flash erasing modes
72 #define ERASE_GLOB 0xA50E
73 #define ERASE_ALLMAIN 0xA50C
75 #define ERASE_MASS 0xA506
77 #define ERASE_MAIN 0xA504
79 #define ERASE_SGMT 0xA502
81 
82 /****************************************************************************/
83 /* Function prototypes */
84 /****************************************************************************/
85 
86 void SetDevice(word wDeviceId);
87 bool DeviceHas_TestPin(void);
88 bool DeviceHas_CpuX(void);
89 bool DeviceHas_DataQuick(void);
90 bool DeviceHas_FastFlash(void);
91 bool DeviceHas_EnhVerify(void);
92 bool DeviceHas_JTAG(void);
93 bool DeviceHas_SpyBiWire(void);
94 word Device_RamStart(void);
95 word Device_RamEnd(void);
96 word Device_MainStart(void);
97 
98 #endif
word Device_MainStart(void)
This function returns the start address of the device's main memory.
Definition: Devices430X.c:213
bool DeviceHas_TestPin(void)
Function to check if current device has a test pin.
Definition: Devices430X.c:149
bool DeviceHas_CpuX(void)
Function to check if current device has the extended CPUX.
Definition: Devices430X.c:156
bool DeviceHas_JTAG(void)
Function to check if current device supports JTAG.
Definition: Devices430X.c:184
bool DeviceHas_SpyBiWire(void)
Function to check if current device supports SpyBiWire.
Definition: Devices430X.c:191
word Device_RamStart(void)
This function returns the start address of the device's RAM.
Definition: Devices430X.c:198
void SetDevice(word wDeviceId)
This function accepts a Device ID and extracts the corresponding device information from the sDeviceF...
Definition: Devices430X.c:136
bool DeviceHas_FastFlash(void)
Function to check if current device supports FastFlash.
Definition: Devices430X.c:170
word Device_RamEnd(void)
This function returns the end address of the device's RAM.
Definition: Devices430X.c:205
bool DeviceHas_EnhVerify(void)
Function to check if current device supports EnhVerify.
Definition: Devices430X.c:177
bool DeviceHas_DataQuick(void)
Function to check if current device supports DataQuick.
Definition: Devices430X.c:163

Copyright 2016, Texas Instruments Incorporated