]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/sysctl.h
commit 9f316c246baafa15c542a5aea81a94f26e3d6507
[freertos] / FreeRTOS / Demo / CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil / driverlib / sysctl.h
1 /*
2  * -------------------------------------------
3  *    MSP432 DriverLib - v3_10_00_09 
4  * -------------------------------------------
5  *
6  * --COPYRIGHT--,BSD,BSD
7  * Copyright (c) 2014, Texas Instruments Incorporated
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * *  Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions and the following disclaimer.
16  *
17  * *  Redistributions in binary form must reproduce the above copyright
18  *    notice, this list of conditions and the following disclaimer in the
19  *    documentation and/or other materials provided with the distribution.
20  *
21  * *  Neither the name of Texas Instruments Incorporated nor the names of
22  *    its contributors may be used to endorse or promote products derived
23  *    from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  * --/COPYRIGHT--*/
37 #ifndef __SYSCTL_H__
38 #define __SYSCTL_H__
39
40 //*****************************************************************************
41 //
42 //! \addtogroup sysctl_api
43 //! @{
44 //
45 //*****************************************************************************
46
47 //*****************************************************************************
48 //
49 // If building with a C++ compiler, make all of the definitions in this header
50 // have a C binding.
51 //
52 //*****************************************************************************
53 #ifdef __cplusplus
54 extern "C"
55 {
56 #endif
57
58 #include <stdint.h>
59 #include <msp.h>
60
61 //*****************************************************************************
62 //
63 // Control specific variables 
64 //
65 //*****************************************************************************
66 #define SYSCTL_SRAM_BANK7 SYSCTL_SRAM_BANKEN_BNK7_EN
67 #define SYSCTL_SRAM_BANK6 SYSCTL_SRAM_BANKEN_BNK6_EN
68 #define SYSCTL_SRAM_BANK5 SYSCTL_SRAM_BANKEN_BNK5_EN
69 #define SYSCTL_SRAM_BANK4 SYSCTL_SRAM_BANKEN_BNK4_EN
70 #define SYSCTL_SRAM_BANK3 SYSCTL_SRAM_BANKEN_BNK3_EN
71 #define SYSCTL_SRAM_BANK2 SYSCTL_SRAM_BANKEN_BNK2_EN
72 #define SYSCTL_SRAM_BANK1 SYSCTL_SRAM_BANKEN_BNK1_EN
73
74 #define SYSCTL_HARD_RESET 1
75 #define SYSCTL_SOFT_RESET 0
76
77 #define SYSCTL_PERIPH_DMA SYSCTL_PERIHALT_CTL_HALT_DMA
78 #define SYSCTL_PERIPH_WDT SYSCTL_PERIHALT_CTL_HALT_WDT
79 #define SYSCTL_PERIPH_ADC SYSCTL_PERIHALT_CTL_HALT_ADC
80 #define SYSCTL_PERIPH_EUSCIB3 SYSCTL_PERIHALT_CTL_HALT_EUB3
81 #define SYSCTL_PERIPH_EUSCIB2 SYSCTL_PERIHALT_CTL_HALT_EUB2
82 #define SYSCTL_PERIPH_EUSCIB1 SYSCTL_PERIHALT_CTL_HALT_EUB1
83 #define SYSCTL_PERIPH_EUSCIB0 SYSCTL_PERIHALT_CTL_HALT_EUB0
84 #define SYSCTL_PERIPH_EUSCIA3 SYSCTL_PERIHALT_CTL_HALT_EUA3
85 #define SYSCTL_PERIPH_EUSCIA2 SYSCTL_PERIHALT_CTL_HALT_EUA2
86 #define SYSCTL_PERIPH_EUSCIA1 SYSCTL_PERIHALT_CTL_HALT_EUA1
87 #define SYSCTL_PERIPH_EUSCIA0 SYSCTL_PERIHALT_CTL_HALT_EUA0
88 #define SYSCTL_PERIPH_TIMER32_0_MODULE SYSCTL_PERIHALT_CTL_HALT_T32_0
89 #define SYSCTL_PERIPH_TIMER16_3 SYSCTL_PERIHALT_CTL_HALT_T16_3
90 #define SYSCTL_PERIPH_TIMER16_2 SYSCTL_PERIHALT_CTL_HALT_T16_2
91 #define SYSCTL_PERIPH_TIMER16_1 SYSCTL_PERIHALT_CTL_HALT_T16_1
92 #define SYSCTL_PERIPH_TIMER16_0 SYSCTL_PERIHALT_CTL_HALT_T16_0
93
94 #define SYSCTL_NMIPIN_SRC SYSCTL_NMI_CTLSTAT_PIN_SRC
95 #define SYSCTL_PCM_SRC SYSCTL_NMI_CTLSTAT_PCM_SRC
96 #define SYSCTL_PSS_SRC SYSCTL_NMI_CTLSTAT_PSS_SRC
97 #define SYSCTL_CS_SRC SYSCTL_NMI_CTLSTAT_CS_SRC
98
99 #define SYSCTL_REBOOT_KEY   0x6900
100
101 #define SYSCTL_1_2V_REF        (uint32_t)&TLV->ADC14_REF1P2V_TS30C - (uint32_t)TLV_BASE
102 #define SYSCTL_1_45V_REF       (uint32_t)&TLV->ADC14_REF1P45V_TS30C - (uint32_t)TLV_BASE
103 #define SYSCTL_2_5V_REF        (uint32_t)&TLV->ADC14_REF2P5V_TS30C - (uint32_t)TLV_BASE
104
105 #define SYSCTL_85_DEGREES_C    4
106 #define SYSCTL_30_DEGREES_C    0
107
108
109 #define TLV_START               0x00201004
110 #define TLV_TAG_RESERVED1      1
111 #define TLV_TAG_RESERVED2      2
112 #define TLV_TAG_CS             3
113 #define TLV_TAG_FLASHCTL       4
114 #define TLV_TAG_ADC14          5
115 #define TLV_TAG_RESERVED6      6
116 #define TLV_TAG_RESERVED7      7
117 #define TLV_TAG_REF            8
118 #define TLV_TAG_RESERVED9      9
119 #define TLV_TAG_RESERVED10     10
120 #define TLV_TAG_DEVINFO        11
121 #define TLV_TAG_DIEREC         12
122 #define TLV_TAG_RANDNUM        13
123 #define TLV_TAG_RESERVED14     14
124 #define TLV_TAG_BSL            15
125 #define TLV_TAGEND             0x0BD0E11D
126
127 //*****************************************************************************
128 //
129 // Structures for TLV definitions
130 // 
131 //*****************************************************************************
132 typedef struct
133 {
134     uint32_t    maxProgramPulses;
135     uint32_t    maxErasePulses;
136 } SysCtl_FlashTLV_Info;
137
138 typedef struct
139 {
140     uint32_t rDCOIR_FCAL_RSEL04;
141     uint32_t rDCOIR_FCAL_RSEL5;
142     uint32_t rDCOIR_MAXPOSTUNE_RSEL04;
143     uint32_t rDCOIR_MAXNEGTUNE_RSEL04;
144     uint32_t rDCOIR_MAXPOSTUNE_RSEL5;
145     uint32_t rDCOIR_MAXNEGTUNE_RSEL5;
146     uint32_t rDCOIR_CONSTK_RSEL04;
147     uint32_t rDCOIR_CONSTK_RSEL5;
148     uint32_t rDCOER_FCAL_RSEL04;
149     uint32_t rDCOER_FCAL_RSEL5;
150     uint32_t rDCOER_MAXPOSTUNE_RSEL04;
151     uint32_t rDCOER_MAXNEGTUNE_RSEL04;
152     uint32_t rDCOER_MAXPOSTUNE_RSEL5;
153     uint32_t rDCOER_MAXNEGTUNE_RSEL5;
154     uint32_t rDCOER_CONSTK_RSEL04;
155     uint32_t rDCOER_CONSTK_RSEL5;
156
157 } SysCtl_CSCalTLV_Info;
158
159 //*****************************************************************************
160 //
161 // Prototypes for the APIs.
162 //
163 //*****************************************************************************
164
165 //*****************************************************************************
166 //
167 //! Gets the size of the SRAM.
168 //!
169 //! \return The total number of bytes of SRAM.
170 //
171 //*****************************************************************************
172 extern uint_least32_t SysCtl_getSRAMSize(void);
173
174 //*****************************************************************************
175 //
176 //! Gets the size of the flash.
177 //!
178 //! \return The total number of bytes of flash.
179 //
180 //*****************************************************************************
181 extern uint_least32_t SysCtl_getFlashSize(void);
182
183 //*****************************************************************************
184 //
185 //! Reboots the device and causes the device to re-initialize itself.
186 //!
187 //! \return This function does not return.
188 //
189 //*****************************************************************************
190 extern void SysCtl_rebootDevice(void);
191
192 //*****************************************************************************
193 //
194 //! The TLV structure uses a tag or base address to identify segments of the
195 //! table where information is stored. Some examples of TLV tags are Peripheral
196 //! Descriptor, Interrupts, Info Block and Die Record. This function retrieves
197 //! the value of a tag and the length of the tag.
198 //!
199 //! \param tag represents the tag for which the information needs to be
200 //!        retrieved.
201 //!        Valid values are:
202 //!        - \b TLV_TAG_RESERVED1
203 //!        - \b TLV_TAG_RESERVED2
204 //!        - \b TLV_TAG_CS
205 //!        - \b TLV_TAG_FLASHCTL
206 //!        - \b TLV_TAG_ADC14
207 //!        - \b TLV_TAG_RESERVED6
208 //!        - \b TLV_TAG_RESERVED7
209 //!        - \b TLV_TAG_REF
210 //!        - \b TLV_TAG_RESERVED9
211 //!        - \b TLV_TAG_RESERVED10
212 //!        - \b TLV_TAG_DEVINFO
213 //!        - \b TLV_TAG_DIEREC
214 //!        - \b TLV_TAG_RANDNUM
215 //!        - \b TLV_TAG_RESERVED14
216 //! \param instance In some cases a specific tag may have more than one
217 //!        instance. For example there may be multiple instances of timer
218 //!        calibration data present under a single Timer Cal tag. This variable
219 //!        specifies the instance for which information is to be retrieved (0,
220 //!        1, etc.). When only one instance exists; 0 is passed.
221 //! \param length Acts as a return through indirect reference. The function
222 //!        retrieves the value of the TLV tag length. This value is pointed to
223 //!        by *length and can be used by the application level once the
224 //!        function is called. If the specified tag is not found then the
225 //!        pointer is null 0.
226 //! \param data_address acts as a return through indirect reference. Once the
227 //!        function is called data_address points to the pointer that holds the
228 //!        value retrieved from the specified TLV tag. If the specified tag is
229 //!        not found then the pointer is null 0.
230 //!
231 //! \return None
232 //
233 //*****************************************************************************
234 extern void SysCtl_getTLVInfo(uint_fast8_t tag, uint_fast8_t instance,
235         uint_fast8_t *length, uint32_t **data_address);
236
237 //*****************************************************************************
238 //
239 //! Enables a set of banks in the SRAM. This can be used to optimize power
240 //! consumption when every SRAM bank isn't needed. It is important to note
241 //! that when a  higher bank is enabled, all of the SRAM banks below that bank
242 //! are also enabled. For example, if the user enables SYSCTL_SRAM_BANK7,
243 //! the banks SYSCTL_SRAM_BANK1 through SYSCTL_SRAM_BANK7 will be enabled
244 //! (SRAM_BANK0 is reserved and always enabled).
245 //!
246 //! \param sramBank The SRAM bank tier to enable.
247 //!        Must be only one of the following values:
248 //!                 - \b SYSCTL_SRAM_BANK1,
249 //!                 - \b SYSCTL_SRAM_BANK2,
250 //!                 - \b SYSCTL_SRAM_BANK3,
251 //!                 - \b SYSCTL_SRAM_BANK4,
252 //!                 - \b SYSCTL_SRAM_BANK5,
253 //!                 - \b SYSCTL_SRAM_BANK6,
254 //!                 - \b SYSCTL_SRAM_BANK7
255 //!
256 //! \note \b SYSCTL_SRAM_BANK0 is reserved and always enabled.
257 //!
258 //! \return None.
259 //
260 //*****************************************************************************
261 extern void SysCtl_enableSRAMBank(uint_fast8_t sramBank);
262
263 //*****************************************************************************
264 //
265 //! Disables a set of banks in the SRAM. This can be used to optimize power
266 //! consumption when every SRAM bank isn't needed. It is important to note
267 //! that when a  higher bank is disabled, all of the SRAM banks above that bank
268 //! are also disabled. For example, if the user disables SYSCTL_SRAM_BANK5,
269 //! the banks SYSCTL_SRAM_BANK6 through SYSCTL_SRAM_BANK7 will be disabled.
270 //!
271 //! \param sramBank The SRAM bank tier to disable.
272 //!        Must be only one of the following values:
273 //!                 - \b SYSCTL_SRAM_BANK1,
274 //!                 - \b SYSCTL_SRAM_BANK2,
275 //!                 - \b SYSCTL_SRAM_BANK3,
276 //!                 - \b SYSCTL_SRAM_BANK4,
277 //!                 - \b SYSCTL_SRAM_BANK5,
278 //!                 - \b SYSCTL_SRAM_BANK6,
279 //!                 - \b SYSCTL_SRAM_BANK7
280 //!
281 //! \note \b SYSCTL_SRAM_BANK0 is reserved and always enabled.
282 //!
283 //! \return None.
284 //
285 //*****************************************************************************
286 extern void SysCtl_disableSRAMBank(uint_fast8_t sramBank);
287
288 //*****************************************************************************
289 //
290 //! Enables retention of the specified SRAM bank register when the device goes
291 //! into LPM3 mode. When the system is placed in LPM3 mode, the SRAM
292 //! banks specified with this function will be placed into retention mode. By
293 //! default, retention of every SRAM bank except SYSCTL_SRAM_BANK0 (reserved) is
294 //! disabled. Retention of individual banks can be set without the restrictions
295 //! of the enable/disable functions.
296 //!
297 //! \param sramBank The SRAM banks to enable retention
298 //!        Can be a bitwise OR of the following values:
299 //!                 - \b SYSCTL_SRAM_BANK1,
300 //!                 - \b SYSCTL_SRAM_BANK2,
301 //!                 - \b SYSCTL_SRAM_BANK3,
302 //!                 - \b SYSCTL_SRAM_BANK4,
303 //!                 - \b SYSCTL_SRAM_BANK5,
304 //!                 - \b SYSCTL_SRAM_BANK6,
305 //!                 - \b SYSCTL_SRAM_BANK7
306 //! \note  \b SYSCTL_SRAM_BANK0 is reserved and retention is always enabled.
307 //!
308 //!
309 //! \return None.
310 //
311 //*****************************************************************************
312 extern void SysCtl_enableSRAMBankRetention(uint_fast8_t sramBank);
313
314 //*****************************************************************************
315 //
316 //! Disables retention of the specified SRAM bank register when the device goes
317 //! into LPM3 mode. When the system is placed in LPM3 mode, the SRAM
318 //! banks specified with this function will not be placed into retention mode.
319 //! By default, retention of every SRAM bank except SYSCTL_SRAM_BANK0 (reserved)
320 //! is disabled. Retention of individual banks can be set without the
321 //! restrictions of the enable/disable SRAM bank functions.
322 //!
323 //! \param sramBank The SRAM banks to disable retention
324 //!        Can be a bitwise OR of the following values:
325 //!                 - \b SYSCTL_SRAM_BANK1,
326 //!                 - \b SYSCTL_SRAM_BANK2,
327 //!                 - \b SYSCTL_SRAM_BANK3,
328 //!                 - \b SYSCTL_SRAM_BANK4,
329 //!                 - \b SYSCTL_SRAM_BANK5,
330 //!                 - \b SYSCTL_SRAM_BANK6,
331 //!                 - \b SYSCTL_SRAM_BANK7
332 //! \note  \b SYSCTL_SRAM_BANK0 is reserved and retention is always enabled.
333 //!
334 //! \return None.
335 //
336 //
337 //*****************************************************************************
338 extern void SysCtl_disableSRAMBankRetention(uint_fast8_t sramBank);
339
340 //*****************************************************************************
341 //
342 //! Makes it so that the provided peripherals will either halt execution after
343 //! a CPU HALT. Parameters in this function can be combined to account for
344 //! multiple peripherals. By default, all peripherals keep running after a
345 //! CPU HALT.
346 //!
347 //! \param devices The peripherals to continue running after a CPU HALT
348 //!         This can be a bitwise OR of the following values:
349 //!                 - \b SYSCTL_PERIPH_DMA,
350 //!                 - \b SYSCTL_PERIPH_WDT,
351 //!                 - \b SYSCTL_PERIPH_ADC,
352 //!                 - \b SYSCTL_PERIPH_EUSCIB3,
353 //!                 - \b SYSCTL_PERIPH_EUSCIB2,
354 //!                 - \b SYSCTL_PERIPH_EUSCIB1
355 //!                 - \b SYSCTL_PERIPH_EUSCIB0,
356 //!                 - \b SYSCTL_PERIPH_EUSCIA3,
357 //!                 - \b SYSCTL_PERIPH_EUSCIA2
358 //!                 - \b SYSCTL_PERIPH_EUSCIA1,
359 //!                 - \b SYSCTL_PERIPH_EUSCIA0,
360 //!                 - \b SYSCTL_PERIPH_TIMER32_0_MODULE,
361 //!                 - \b SYSCTL_PERIPH_TIMER16_3,
362 //!                 - \b SYSCTL_PERIPH_TIMER16_2,
363 //!                 - \b SYSCTL_PERIPH_TIMER16_1,
364 //!                 - \b SYSCTL_PERIPH_TIMER16_0
365 //!
366 //! \return None.
367 //
368 //
369 //*****************************************************************************
370 extern void SysCtl_enablePeripheralAtCPUHalt(uint_fast16_t devices);
371
372 //*****************************************************************************
373 //
374 //! Makes it so that the provided peripherals will either halt execution after
375 //! a CPU HALT. Parameters in this function can be combined to account for
376 //! multiple peripherals. By default, all peripherals keep running after a
377 //! CPU HALT.
378 //!
379 //! \param devices The peripherals to disable after a CPU HALT
380 //!
381 //! The \e devices parameter can be a bitwise OR of the following values:
382 //!         This can be a bitwise OR of the following values:
383 //!                 - \b SYSCTL_PERIPH_DMA,
384 //!                 - \b SYSCTL_PERIPH_WDT,
385 //!                 - \b SYSCTL_PERIPH_ADC,
386 //!                 - \b SYSCTL_PERIPH_EUSCIB3,
387 //!                 - \b SYSCTL_PERIPH_EUSCIB2,
388 //!                 - \b SYSCTL_PERIPH_EUSCIB1
389 //!                 - \b SYSCTL_PERIPH_EUSCIB0,
390 //!                 - \b SYSCTL_PERIPH_EUSCIA3,
391 //!                 - \b SYSCTL_PERIPH_EUSCIA2
392 //!                 - \b SYSCTL_PERIPH_EUSCIA1,
393 //!                 - \b SYSCTL_PERIPH_EUSCIA0,
394 //!                 - \b SYSCTL_PERIPH_TIMER32_0_MODULE,
395 //!                 - \b SYSCTL_PERIPH_TIMER16_3,
396 //!                 - \b SYSCTL_PERIPH_TIMER16_2,
397 //!                 - \b SYSCTL_PERIPH_TIMER16_1,
398 //!                 - \b SYSCTL_PERIPH_TIMER16_0
399 //!
400 //! \return None.
401 //
402 //
403 //*****************************************************************************
404 extern void SysCtl_disablePeripheralAtCPUHalt(uint_fast16_t devices);
405
406 //*****************************************************************************
407 //
408 //! Sets the type of RESET that happens when a watchdog timeout occurs.
409 //!
410 //! \param resetType The type of reset to set
411 //!
412 //! The \e resetType parameter must be only one of the following values:
413 //!         - \b SYSCTL_HARD_RESET,
414 //!         - \b SYSCTL_SOFT_RESET
415 //!
416 //! \return None.
417 //
418 //
419 //*****************************************************************************
420 extern void SysCtl_setWDTTimeoutResetType(uint_fast8_t resetType);
421
422 //*****************************************************************************
423 //
424 //! Sets the type of RESET that happens when a watchdog password violation
425 //! occurs.
426 //!
427 //! \param resetType The type of reset to set
428 //!
429 //! The \e resetType parameter must be only one of the following values:
430 //!         - \b SYSCTL_HARD_RESET,
431 //!         - \b SYSCTL_SOFT_RESET
432 //!
433 //! \return None.
434 //
435 //
436 //*****************************************************************************
437 extern void SysCtl_setWDTPasswordViolationResetType(uint_fast8_t resetType);
438
439 //*****************************************************************************
440 //
441 //! Disables NMIs for the provided modules. When disabled, a NMI flag will not
442 //! occur when a fault condition comes from the corresponding modules.
443 //!
444 //! \param flags The NMI sources to disable
445 //! Can be a bitwise OR of the following parameters:
446 //!         - \b SYSCTL_NMIPIN_SRC,
447 //!         - \b SYSCTL_PCM_SRC,
448 //!         - \b SYSCTL_PSS_SRC,
449 //!         - \b SYSCTL_CS_SRC
450 //!
451 //
452 //*****************************************************************************
453 extern void SysCtl_disableNMISource(uint_fast8_t flags);
454
455 //*****************************************************************************
456 //
457 //! Enables NMIs for the provided modules. When enabled, a NMI flag will
458 //! occur when a fault condition comes from the corresponding modules.
459 //!
460 //! \param flags The NMI sources to enable
461 //! Can be a bitwise OR of the following parameters:
462 //!         - \b SYSCTL_NMIPIN_SRC,
463 //!         - \b SYSCTL_PCM_SRC,
464 //!         - \b SYSCTL_PSS_SRC,
465 //!         - \b SYSCTL_CS_SRC
466 //!
467 //
468 //*****************************************************************************
469 extern void SysCtl_enableNMISource(uint_fast8_t flags);
470
471 //*****************************************************************************
472 //
473 //! Returns the current sources of NMIs that are enabled
474 //!
475 //! \return Bitwise OR of NMI flags that are enabled
476 //
477 //*****************************************************************************
478 extern uint_fast8_t SysCtl_getNMISourceStatus(void);
479
480 //*****************************************************************************
481 //
482 //! Enables glitch suppression on the reset pin of the device. Refer to the
483 //! device data sheet for specific information about glitch suppression
484 //!
485 //! \return None.
486 //
487 //
488 //*****************************************************************************
489 extern void SysCtl_enableGlitchFilter(void);
490
491 //*****************************************************************************
492 //
493 //! Disables glitch suppression on the reset pin of the device. Refer to the
494 //! device data sheet for specific information about glitch suppression
495 //!
496 //! \return None.
497 //
498 //
499 //*****************************************************************************
500 extern void SysCtl_disableGlitchFilter(void);
501
502 //*****************************************************************************
503 //
504 //! Retrieves the calibration constant of the temperature sensor to be used
505 //! in temperature calculation.
506 //!
507 //! \param refVoltage Reference voltage being used.
508 //!
509 //! The \e refVoltage parameter must be only one of the following values:
510 //!         - \b SYSCTL_1_2V_REF
511 //!         - \b SYSCTL_1_45V_REF
512 //!         - \b SYSCTL_2_5V_REF
513 //!
514 //! \param temperature is the calibration temperature that the user wants to be
515 //!     returned.
516 //!
517 //! The \e temperature parameter must be only one of the following values:
518 //!         - \b SYSCTL_30_DEGREES_C
519 //!         - \b SYSCTL_85_DEGREES_C
520 //!
521 //! \return None.
522 //
523 //
524 //*****************************************************************************
525 extern uint_fast16_t SysCtl_getTempCalibrationConstant(uint32_t refVoltage,
526         uint32_t temperature);
527
528 //*****************************************************************************
529 //
530 // Mark the end of the C bindings section for C++ compilers.
531 //
532 //*****************************************************************************
533 #ifdef __cplusplus
534 }
535 #endif
536
537 //*****************************************************************************
538 //
539 // Close the Doxygen group.
540 //! @}
541 //
542 //*****************************************************************************
543
544 #endif // __SYSCTL_H__