BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
usci5.h
Go to the documentation of this file.
1 /* Copyright 2012-2014, Peter A. Bigot
2  *
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  *
11  * * Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * * Neither the name of the software nor the names of its contributors may be
16  * used to endorse or promote products derived from this software without
17  * specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
78 /* !BSP430! periph=usci5 */
79 /* !BSP430! instance=USCI5_A0,USCI5_A1,USCI5_A2,USCI5_A3,USCI5_B0,USCI5_B1,USCI5_B2,USCI5_B3 */
80 
81 #ifndef BSP430_PERIPH_USCI5_H
82 #define BSP430_PERIPH_USCI5_H
83 
84 #include <bsp430/periph.h>
85 #include <bsp430/serial_.h>
86 
94 #define BSP430_MODULE_USCI5 (defined(__MSP430_HAS_USCI_A0__) \
95  || defined(__MSP430_HAS_USCI_B0__))
96 
97 #if defined(BSP430_DOXYGEN) || (BSP430_MODULE_USCI5 - 0)
98 
103 #ifndef BSP430_USCI5_UART_MAX_BAUD
104 #define BSP430_USCI5_UART_MAX_BAUD 1000000UL
105 #endif /* BSP430_USCI5_UART_MAX_BAUD */
106 
108 typedef struct sBSP430hplUSCI5 {
109  union { /* 0x00 */
110  unsigned int ctlw0;
111  struct {
112  unsigned char ctl1;
113  unsigned char ctl0;
114  };
115  };
116  unsigned int _unused_0x02;
117  unsigned int _unused_0x04;
118  union { /* 0x06 */
119  unsigned int brw;
120  struct {
121  unsigned char br0;
122  unsigned char br1;
123  };
124  };
125  union { /* 0x08 */
126  struct { /* USCI_A */
127  unsigned char mctl;
128  unsigned char _reserved_0x09;
129  };
130  unsigned int _reserved_0x08; /* USCI_B */
131  };
132  unsigned char stat; /* 0x0A */
133  unsigned char _reserved_0x0B;
134  unsigned char rxbuf; /* 0x0C */
135  unsigned char _reserved_0x0D;
136  unsigned char txbuf; /* 0x0E */
137  unsigned char _reserved_0x0F;
138  union { /* 0x10 */
139  struct { /* USCI_A */
140  unsigned char abctl;
141  unsigned char _reserved_0x11;
142  };
143  unsigned int i2coa; /* USCI_B */
144  };
145  union { /* 0x12 */
146  unsigned int irctl;
147  struct {
148  unsigned char irtctl;
149  unsigned char irrctl;
150  };
151  unsigned int i2csa;
152  };
153  unsigned int _unused_0x14;
154  unsigned int _unused_0x16;
155  unsigned int _unused_0x18;
156  unsigned int _unused_0x1a;
157  union { /* 0x1C */
158  unsigned int ictl;
159  struct {
160  unsigned char ie;
161  unsigned char ifg;
162  };
163  };
164  unsigned int iv; /* 0x1E */
166 
168 #define BSP430_PERIPH_USCI5_A0_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_A0__
169 #define BSP430_PERIPH_USCI5_A1_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_A1__
170 #define BSP430_PERIPH_USCI5_A2_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_A2__
171 #define BSP430_PERIPH_USCI5_A3_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_A3__
172 #define BSP430_PERIPH_USCI5_B0_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_B0__
173 #define BSP430_PERIPH_USCI5_B1_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_B1__
174 #define BSP430_PERIPH_USCI5_B2_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_B2__
175 #define BSP430_PERIPH_USCI5_B3_BASEADDRESS_ __MSP430_BASEADDRESS_USCI_B3__
176  /* DOXYGEN_INTERNAL */
177 
178 /* !BSP430! periph=serial insert=hal_decl */
179 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [hal_decl] */
196 #ifndef configBSP430_HAL_USCI5_A0
197 #define configBSP430_HAL_USCI5_A0 0
198 #endif /* configBSP430_HAL_USCI5_A0 */
199 
201 #if (configBSP430_HAL_USCI5_A0 - 0)
202 /* You do not need to know about this */
203 extern sBSP430halSERIAL xBSP430hal_USCI5_A0_;
204 #endif /* configBSP430_HAL_USCI5_A0 */
205 
213 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_A0 - 0)
214 #define BSP430_HAL_USCI5_A0 (&xBSP430hal_USCI5_A0_)
215 #endif /* configBSP430_HAL_USCI5_A0 */
216 
233 #ifndef configBSP430_HAL_USCI5_A1
234 #define configBSP430_HAL_USCI5_A1 0
235 #endif /* configBSP430_HAL_USCI5_A1 */
236 
238 #if (configBSP430_HAL_USCI5_A1 - 0)
239 /* You do not need to know about this */
240 extern sBSP430halSERIAL xBSP430hal_USCI5_A1_;
241 #endif /* configBSP430_HAL_USCI5_A1 */
242 
250 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_A1 - 0)
251 #define BSP430_HAL_USCI5_A1 (&xBSP430hal_USCI5_A1_)
252 #endif /* configBSP430_HAL_USCI5_A1 */
253 
270 #ifndef configBSP430_HAL_USCI5_A2
271 #define configBSP430_HAL_USCI5_A2 0
272 #endif /* configBSP430_HAL_USCI5_A2 */
273 
275 #if (configBSP430_HAL_USCI5_A2 - 0)
276 /* You do not need to know about this */
277 extern sBSP430halSERIAL xBSP430hal_USCI5_A2_;
278 #endif /* configBSP430_HAL_USCI5_A2 */
279 
287 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_A2 - 0)
288 #define BSP430_HAL_USCI5_A2 (&xBSP430hal_USCI5_A2_)
289 #endif /* configBSP430_HAL_USCI5_A2 */
290 
307 #ifndef configBSP430_HAL_USCI5_A3
308 #define configBSP430_HAL_USCI5_A3 0
309 #endif /* configBSP430_HAL_USCI5_A3 */
310 
312 #if (configBSP430_HAL_USCI5_A3 - 0)
313 /* You do not need to know about this */
314 extern sBSP430halSERIAL xBSP430hal_USCI5_A3_;
315 #endif /* configBSP430_HAL_USCI5_A3 */
316 
324 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_A3 - 0)
325 #define BSP430_HAL_USCI5_A3 (&xBSP430hal_USCI5_A3_)
326 #endif /* configBSP430_HAL_USCI5_A3 */
327 
344 #ifndef configBSP430_HAL_USCI5_B0
345 #define configBSP430_HAL_USCI5_B0 0
346 #endif /* configBSP430_HAL_USCI5_B0 */
347 
349 #if (configBSP430_HAL_USCI5_B0 - 0)
350 /* You do not need to know about this */
351 extern sBSP430halSERIAL xBSP430hal_USCI5_B0_;
352 #endif /* configBSP430_HAL_USCI5_B0 */
353 
361 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_B0 - 0)
362 #define BSP430_HAL_USCI5_B0 (&xBSP430hal_USCI5_B0_)
363 #endif /* configBSP430_HAL_USCI5_B0 */
364 
381 #ifndef configBSP430_HAL_USCI5_B1
382 #define configBSP430_HAL_USCI5_B1 0
383 #endif /* configBSP430_HAL_USCI5_B1 */
384 
386 #if (configBSP430_HAL_USCI5_B1 - 0)
387 /* You do not need to know about this */
388 extern sBSP430halSERIAL xBSP430hal_USCI5_B1_;
389 #endif /* configBSP430_HAL_USCI5_B1 */
390 
398 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_B1 - 0)
399 #define BSP430_HAL_USCI5_B1 (&xBSP430hal_USCI5_B1_)
400 #endif /* configBSP430_HAL_USCI5_B1 */
401 
418 #ifndef configBSP430_HAL_USCI5_B2
419 #define configBSP430_HAL_USCI5_B2 0
420 #endif /* configBSP430_HAL_USCI5_B2 */
421 
423 #if (configBSP430_HAL_USCI5_B2 - 0)
424 /* You do not need to know about this */
425 extern sBSP430halSERIAL xBSP430hal_USCI5_B2_;
426 #endif /* configBSP430_HAL_USCI5_B2 */
427 
435 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_B2 - 0)
436 #define BSP430_HAL_USCI5_B2 (&xBSP430hal_USCI5_B2_)
437 #endif /* configBSP430_HAL_USCI5_B2 */
438 
455 #ifndef configBSP430_HAL_USCI5_B3
456 #define configBSP430_HAL_USCI5_B3 0
457 #endif /* configBSP430_HAL_USCI5_B3 */
458 
460 #if (configBSP430_HAL_USCI5_B3 - 0)
461 /* You do not need to know about this */
462 extern sBSP430halSERIAL xBSP430hal_USCI5_B3_;
463 #endif /* configBSP430_HAL_USCI5_B3 */
464 
472 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_USCI5_B3 - 0)
473 #define BSP430_HAL_USCI5_B3 (&xBSP430hal_USCI5_B3_)
474 #endif /* configBSP430_HAL_USCI5_B3 */
475 
476 /* END AUTOMATICALLY GENERATED CODE [hal_decl] */
477 /* !BSP430! end=hal_decl */
478 /* !BSP430! periph=usci5 */
479 
480 
481 /* !BSP430! insert=periph_decl */
482 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [periph_decl] */
498 #ifndef configBSP430_HPL_USCI5_A0
499 #define configBSP430_HPL_USCI5_A0 (configBSP430_HAL_USCI5_A0 - 0)
500 #endif /* configBSP430_HPL_USCI5_A0 */
501 
502 #if (configBSP430_HAL_USCI5_A0 - 0) && ! (configBSP430_HPL_USCI5_A0 - 0)
503 #warning configBSP430_HAL_USCI5_A0 requested without configBSP430_HPL_USCI5_A0
504 #endif /* HAL and not HPL */
505 
512 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A0 - 0)
513 #define BSP430_PERIPH_USCI5_A0 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_A0_BASEADDRESS_))
514 #endif /* configBSP430_HPL_USCI5_A0 */
515 
531 #ifndef configBSP430_HPL_USCI5_A1
532 #define configBSP430_HPL_USCI5_A1 (configBSP430_HAL_USCI5_A1 - 0)
533 #endif /* configBSP430_HPL_USCI5_A1 */
534 
535 #if (configBSP430_HAL_USCI5_A1 - 0) && ! (configBSP430_HPL_USCI5_A1 - 0)
536 #warning configBSP430_HAL_USCI5_A1 requested without configBSP430_HPL_USCI5_A1
537 #endif /* HAL and not HPL */
538 
545 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A1 - 0)
546 #define BSP430_PERIPH_USCI5_A1 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_A1_BASEADDRESS_))
547 #endif /* configBSP430_HPL_USCI5_A1 */
548 
564 #ifndef configBSP430_HPL_USCI5_A2
565 #define configBSP430_HPL_USCI5_A2 (configBSP430_HAL_USCI5_A2 - 0)
566 #endif /* configBSP430_HPL_USCI5_A2 */
567 
568 #if (configBSP430_HAL_USCI5_A2 - 0) && ! (configBSP430_HPL_USCI5_A2 - 0)
569 #warning configBSP430_HAL_USCI5_A2 requested without configBSP430_HPL_USCI5_A2
570 #endif /* HAL and not HPL */
571 
578 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A2 - 0)
579 #define BSP430_PERIPH_USCI5_A2 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_A2_BASEADDRESS_))
580 #endif /* configBSP430_HPL_USCI5_A2 */
581 
597 #ifndef configBSP430_HPL_USCI5_A3
598 #define configBSP430_HPL_USCI5_A3 (configBSP430_HAL_USCI5_A3 - 0)
599 #endif /* configBSP430_HPL_USCI5_A3 */
600 
601 #if (configBSP430_HAL_USCI5_A3 - 0) && ! (configBSP430_HPL_USCI5_A3 - 0)
602 #warning configBSP430_HAL_USCI5_A3 requested without configBSP430_HPL_USCI5_A3
603 #endif /* HAL and not HPL */
604 
611 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A3 - 0)
612 #define BSP430_PERIPH_USCI5_A3 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_A3_BASEADDRESS_))
613 #endif /* configBSP430_HPL_USCI5_A3 */
614 
630 #ifndef configBSP430_HPL_USCI5_B0
631 #define configBSP430_HPL_USCI5_B0 (configBSP430_HAL_USCI5_B0 - 0)
632 #endif /* configBSP430_HPL_USCI5_B0 */
633 
634 #if (configBSP430_HAL_USCI5_B0 - 0) && ! (configBSP430_HPL_USCI5_B0 - 0)
635 #warning configBSP430_HAL_USCI5_B0 requested without configBSP430_HPL_USCI5_B0
636 #endif /* HAL and not HPL */
637 
644 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B0 - 0)
645 #define BSP430_PERIPH_USCI5_B0 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_B0_BASEADDRESS_))
646 #endif /* configBSP430_HPL_USCI5_B0 */
647 
663 #ifndef configBSP430_HPL_USCI5_B1
664 #define configBSP430_HPL_USCI5_B1 (configBSP430_HAL_USCI5_B1 - 0)
665 #endif /* configBSP430_HPL_USCI5_B1 */
666 
667 #if (configBSP430_HAL_USCI5_B1 - 0) && ! (configBSP430_HPL_USCI5_B1 - 0)
668 #warning configBSP430_HAL_USCI5_B1 requested without configBSP430_HPL_USCI5_B1
669 #endif /* HAL and not HPL */
670 
677 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B1 - 0)
678 #define BSP430_PERIPH_USCI5_B1 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_B1_BASEADDRESS_))
679 #endif /* configBSP430_HPL_USCI5_B1 */
680 
696 #ifndef configBSP430_HPL_USCI5_B2
697 #define configBSP430_HPL_USCI5_B2 (configBSP430_HAL_USCI5_B2 - 0)
698 #endif /* configBSP430_HPL_USCI5_B2 */
699 
700 #if (configBSP430_HAL_USCI5_B2 - 0) && ! (configBSP430_HPL_USCI5_B2 - 0)
701 #warning configBSP430_HAL_USCI5_B2 requested without configBSP430_HPL_USCI5_B2
702 #endif /* HAL and not HPL */
703 
710 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B2 - 0)
711 #define BSP430_PERIPH_USCI5_B2 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_B2_BASEADDRESS_))
712 #endif /* configBSP430_HPL_USCI5_B2 */
713 
729 #ifndef configBSP430_HPL_USCI5_B3
730 #define configBSP430_HPL_USCI5_B3 (configBSP430_HAL_USCI5_B3 - 0)
731 #endif /* configBSP430_HPL_USCI5_B3 */
732 
733 #if (configBSP430_HAL_USCI5_B3 - 0) && ! (configBSP430_HPL_USCI5_B3 - 0)
734 #warning configBSP430_HAL_USCI5_B3 requested without configBSP430_HPL_USCI5_B3
735 #endif /* HAL and not HPL */
736 
743 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B3 - 0)
744 #define BSP430_PERIPH_USCI5_B3 ((tBSP430periphHandle)(BSP430_PERIPH_USCI5_B3_BASEADDRESS_))
745 #endif /* configBSP430_HPL_USCI5_B3 */
746 
747 /* END AUTOMATICALLY GENERATED CODE [periph_decl] */
748 /* !BSP430! end=periph_decl */
749 
750 /* !BSP430! insert=hpl_decl */
751 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [hpl_decl] */
759 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A0 - 0)
760 #define BSP430_HPL_USCI5_A0 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_A0)
761 #endif /* configBSP430_HPL_USCI5_A0 */
762 
770 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A1 - 0)
771 #define BSP430_HPL_USCI5_A1 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_A1)
772 #endif /* configBSP430_HPL_USCI5_A1 */
773 
781 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A2 - 0)
782 #define BSP430_HPL_USCI5_A2 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_A2)
783 #endif /* configBSP430_HPL_USCI5_A2 */
784 
792 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_A3 - 0)
793 #define BSP430_HPL_USCI5_A3 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_A3)
794 #endif /* configBSP430_HPL_USCI5_A3 */
795 
803 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B0 - 0)
804 #define BSP430_HPL_USCI5_B0 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_B0)
805 #endif /* configBSP430_HPL_USCI5_B0 */
806 
814 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B1 - 0)
815 #define BSP430_HPL_USCI5_B1 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_B1)
816 #endif /* configBSP430_HPL_USCI5_B1 */
817 
825 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B2 - 0)
826 #define BSP430_HPL_USCI5_B2 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_B2)
827 #endif /* configBSP430_HPL_USCI5_B2 */
828 
836 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_USCI5_B3 - 0)
837 #define BSP430_HPL_USCI5_B3 ((volatile sBSP430hplUSCI5 *)BSP430_PERIPH_USCI5_B3)
838 #endif /* configBSP430_HPL_USCI5_B3 */
839 
840 /* END AUTOMATICALLY GENERATED CODE [hpl_decl] */
841 /* !BSP430! end=hpl_decl */
842 
843 /* !BSP430! insert=hal_isr_decl */
844 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [hal_isr_decl] */
860 #ifndef configBSP430_HAL_USCI5_A0_ISR
861 #define configBSP430_HAL_USCI5_A0_ISR (configBSP430_HAL_USCI5_A0 - 0)
862 #endif /* configBSP430_HAL_USCI5_A0_ISR */
863 
864 #if (configBSP430_HAL_USCI5_A0_ISR - 0) && ! (configBSP430_HAL_USCI5_A0 - 0)
865 #warning configBSP430_HAL_USCI5_A0_ISR requested without configBSP430_HAL_USCI5_A0
866 #endif /* HAL_ISR and not HAL */
867 
883 #ifndef configBSP430_HAL_USCI5_A1_ISR
884 #define configBSP430_HAL_USCI5_A1_ISR (configBSP430_HAL_USCI5_A1 - 0)
885 #endif /* configBSP430_HAL_USCI5_A1_ISR */
886 
887 #if (configBSP430_HAL_USCI5_A1_ISR - 0) && ! (configBSP430_HAL_USCI5_A1 - 0)
888 #warning configBSP430_HAL_USCI5_A1_ISR requested without configBSP430_HAL_USCI5_A1
889 #endif /* HAL_ISR and not HAL */
890 
906 #ifndef configBSP430_HAL_USCI5_A2_ISR
907 #define configBSP430_HAL_USCI5_A2_ISR (configBSP430_HAL_USCI5_A2 - 0)
908 #endif /* configBSP430_HAL_USCI5_A2_ISR */
909 
910 #if (configBSP430_HAL_USCI5_A2_ISR - 0) && ! (configBSP430_HAL_USCI5_A2 - 0)
911 #warning configBSP430_HAL_USCI5_A2_ISR requested without configBSP430_HAL_USCI5_A2
912 #endif /* HAL_ISR and not HAL */
913 
929 #ifndef configBSP430_HAL_USCI5_A3_ISR
930 #define configBSP430_HAL_USCI5_A3_ISR (configBSP430_HAL_USCI5_A3 - 0)
931 #endif /* configBSP430_HAL_USCI5_A3_ISR */
932 
933 #if (configBSP430_HAL_USCI5_A3_ISR - 0) && ! (configBSP430_HAL_USCI5_A3 - 0)
934 #warning configBSP430_HAL_USCI5_A3_ISR requested without configBSP430_HAL_USCI5_A3
935 #endif /* HAL_ISR and not HAL */
936 
952 #ifndef configBSP430_HAL_USCI5_B0_ISR
953 #define configBSP430_HAL_USCI5_B0_ISR (configBSP430_HAL_USCI5_B0 - 0)
954 #endif /* configBSP430_HAL_USCI5_B0_ISR */
955 
956 #if (configBSP430_HAL_USCI5_B0_ISR - 0) && ! (configBSP430_HAL_USCI5_B0 - 0)
957 #warning configBSP430_HAL_USCI5_B0_ISR requested without configBSP430_HAL_USCI5_B0
958 #endif /* HAL_ISR and not HAL */
959 
975 #ifndef configBSP430_HAL_USCI5_B1_ISR
976 #define configBSP430_HAL_USCI5_B1_ISR (configBSP430_HAL_USCI5_B1 - 0)
977 #endif /* configBSP430_HAL_USCI5_B1_ISR */
978 
979 #if (configBSP430_HAL_USCI5_B1_ISR - 0) && ! (configBSP430_HAL_USCI5_B1 - 0)
980 #warning configBSP430_HAL_USCI5_B1_ISR requested without configBSP430_HAL_USCI5_B1
981 #endif /* HAL_ISR and not HAL */
982 
998 #ifndef configBSP430_HAL_USCI5_B2_ISR
999 #define configBSP430_HAL_USCI5_B2_ISR (configBSP430_HAL_USCI5_B2 - 0)
1000 #endif /* configBSP430_HAL_USCI5_B2_ISR */
1001 
1002 #if (configBSP430_HAL_USCI5_B2_ISR - 0) && ! (configBSP430_HAL_USCI5_B2 - 0)
1003 #warning configBSP430_HAL_USCI5_B2_ISR requested without configBSP430_HAL_USCI5_B2
1004 #endif /* HAL_ISR and not HAL */
1005 
1021 #ifndef configBSP430_HAL_USCI5_B3_ISR
1022 #define configBSP430_HAL_USCI5_B3_ISR (configBSP430_HAL_USCI5_B3 - 0)
1023 #endif /* configBSP430_HAL_USCI5_B3_ISR */
1024 
1025 #if (configBSP430_HAL_USCI5_B3_ISR - 0) && ! (configBSP430_HAL_USCI5_B3 - 0)
1026 #warning configBSP430_HAL_USCI5_B3_ISR requested without configBSP430_HAL_USCI5_B3
1027 #endif /* HAL_ISR and not HAL */
1028 
1029 /* END AUTOMATICALLY GENERATED CODE [hal_isr_decl] */
1030 /* !BSP430! end=hal_isr_decl */
1031 
1034  unsigned char ctl0_byte,
1035  unsigned char ctl1_byte,
1036  unsigned long baud);
1037 
1040  unsigned char ctl0_byte,
1041  unsigned char ctl1_byte,
1042  unsigned int prescaler);
1043 
1045 int iBSP430usci5SetReset_rh (hBSP430halSERIAL hal, int resetp);
1046 
1048 int iBSP430usci5SetHold_rh (hBSP430halSERIAL hal, int holdp);
1049 
1052 
1055 
1058 
1061 
1063 int iBSP430usci5UARTtxByte_rh (hBSP430halSERIAL device, uint8_t c);
1064 
1066 int iBSP430usci5UARTtxData_rh (hBSP430halSERIAL device, const uint8_t * data, size_t len);
1067 
1069 int iBSP430usci5UARTtxASCIIZ_rh (hBSP430halSERIAL device, const char * str);
1070 
1073  const uint8_t * tx_data,
1074  size_t tx_len,
1075  size_t rx_len,
1076  uint8_t * rx_data);
1077 
1080  int own_address,
1081  int slave_address);
1082 
1085  uint8_t * rx_data,
1086  size_t rx_len);
1087 
1090  const uint8_t * tx_data,
1091  size_t tx_len);
1092 
1102 static BSP430_CORE_INLINE
1104 {
1105  /* !BSP430! insert=periph_hpl_demux */
1106  /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [periph_hpl_demux] */
1107 #if (configBSP430_HPL_USCI5_A0 - 0)
1108  if (BSP430_PERIPH_USCI5_A0 == periph) {
1109  return BSP430_HPL_USCI5_A0;
1110  }
1111 #endif /* configBSP430_HPL_USCI5_A0 */
1112 
1113 #if (configBSP430_HPL_USCI5_A1 - 0)
1114  if (BSP430_PERIPH_USCI5_A1 == periph) {
1115  return BSP430_HPL_USCI5_A1;
1116  }
1117 #endif /* configBSP430_HPL_USCI5_A1 */
1118 
1119 #if (configBSP430_HPL_USCI5_A2 - 0)
1120  if (BSP430_PERIPH_USCI5_A2 == periph) {
1121  return BSP430_HPL_USCI5_A2;
1122  }
1123 #endif /* configBSP430_HPL_USCI5_A2 */
1124 
1125 #if (configBSP430_HPL_USCI5_A3 - 0)
1126  if (BSP430_PERIPH_USCI5_A3 == periph) {
1127  return BSP430_HPL_USCI5_A3;
1128  }
1129 #endif /* configBSP430_HPL_USCI5_A3 */
1130 
1131 #if (configBSP430_HPL_USCI5_B0 - 0)
1132  if (BSP430_PERIPH_USCI5_B0 == periph) {
1133  return BSP430_HPL_USCI5_B0;
1134  }
1135 #endif /* configBSP430_HPL_USCI5_B0 */
1136 
1137 #if (configBSP430_HPL_USCI5_B1 - 0)
1138  if (BSP430_PERIPH_USCI5_B1 == periph) {
1139  return BSP430_HPL_USCI5_B1;
1140  }
1141 #endif /* configBSP430_HPL_USCI5_B1 */
1142 
1143 #if (configBSP430_HPL_USCI5_B2 - 0)
1144  if (BSP430_PERIPH_USCI5_B2 == periph) {
1145  return BSP430_HPL_USCI5_B2;
1146  }
1147 #endif /* configBSP430_HPL_USCI5_B2 */
1148 
1149 #if (configBSP430_HPL_USCI5_B3 - 0)
1150  if (BSP430_PERIPH_USCI5_B3 == periph) {
1151  return BSP430_HPL_USCI5_B3;
1152  }
1153 #endif /* configBSP430_HPL_USCI5_B3 */
1154 
1155  /* END AUTOMATICALLY GENERATED CODE [periph_hpl_demux] */
1156  /* !BSP430! end=periph_hpl_demux */
1157  return NULL;
1158 }
1159 
1168 static BSP430_CORE_INLINE
1170 {
1171  /* !BSP430! insert=periph_hal_demux */
1172  /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [periph_hal_demux] */
1173 #if (configBSP430_HAL_USCI5_A0 - 0)
1174  if (BSP430_PERIPH_USCI5_A0 == periph) {
1175  return BSP430_HAL_USCI5_A0;
1176  }
1177 #endif /* configBSP430_HAL_USCI5_A0 */
1178 
1179 #if (configBSP430_HAL_USCI5_A1 - 0)
1180  if (BSP430_PERIPH_USCI5_A1 == periph) {
1181  return BSP430_HAL_USCI5_A1;
1182  }
1183 #endif /* configBSP430_HAL_USCI5_A1 */
1184 
1185 #if (configBSP430_HAL_USCI5_A2 - 0)
1186  if (BSP430_PERIPH_USCI5_A2 == periph) {
1187  return BSP430_HAL_USCI5_A2;
1188  }
1189 #endif /* configBSP430_HAL_USCI5_A2 */
1190 
1191 #if (configBSP430_HAL_USCI5_A3 - 0)
1192  if (BSP430_PERIPH_USCI5_A3 == periph) {
1193  return BSP430_HAL_USCI5_A3;
1194  }
1195 #endif /* configBSP430_HAL_USCI5_A3 */
1196 
1197 #if (configBSP430_HAL_USCI5_B0 - 0)
1198  if (BSP430_PERIPH_USCI5_B0 == periph) {
1199  return BSP430_HAL_USCI5_B0;
1200  }
1201 #endif /* configBSP430_HAL_USCI5_B0 */
1202 
1203 #if (configBSP430_HAL_USCI5_B1 - 0)
1204  if (BSP430_PERIPH_USCI5_B1 == periph) {
1205  return BSP430_HAL_USCI5_B1;
1206  }
1207 #endif /* configBSP430_HAL_USCI5_B1 */
1208 
1209 #if (configBSP430_HAL_USCI5_B2 - 0)
1210  if (BSP430_PERIPH_USCI5_B2 == periph) {
1211  return BSP430_HAL_USCI5_B2;
1212  }
1213 #endif /* configBSP430_HAL_USCI5_B2 */
1214 
1215 #if (configBSP430_HAL_USCI5_B3 - 0)
1216  if (BSP430_PERIPH_USCI5_B3 == periph) {
1217  return BSP430_HAL_USCI5_B3;
1218  }
1219 #endif /* configBSP430_HAL_USCI5_B3 */
1220 
1221  /* END AUTOMATICALLY GENERATED CODE [periph_hal_demux] */
1222  /* !BSP430! end=periph_hal_demux */
1223  return NULL;
1224 }
1225 
1232 const char * xBSP430usci5Name (tBSP430periphHandle periph);
1233 
1234 #endif /* BSP430_MODULE_USCI5 */
1235 
1236 #endif /* BSP430_PERIPH_USCI5_H */
#define BSP430_HAL_USCI5_B0
Definition: usci5.h:362
int iBSP430usci5SetReset_rh(hBSP430halSERIAL hal, int resetp)
unsigned char abctl
Definition: usci5.h:140
unsigned char stat
Definition: usci5.h:132
struct sBSP430hplUSCI5 sBSP430hplUSCI5
#define BSP430_HAL_USCI5_B1
Definition: usci5.h:399
#define BSP430_PERIPH_USCI5_B3
Definition: usci5.h:744
int iBSP430usci5UARTtxASCIIZ_rh(hBSP430halSERIAL device, const char *str)
unsigned char br1
Definition: usci5.h:122
hBSP430halSERIAL hBSP430usci5OpenSPI(hBSP430halSERIAL hal, unsigned char ctl0_byte, unsigned char ctl1_byte, unsigned int prescaler)
unsigned int i2coa
Definition: usci5.h:143
hBSP430halSERIAL hBSP430usci5OpenUART(hBSP430halSERIAL hal, unsigned char ctl0_byte, unsigned char ctl1_byte, unsigned long baud)
int iBSP430usci5I2CsetAddresses_rh(hBSP430halSERIAL hal, int own_address, int slave_address)
int iBSP430usci5UARTtxByte_rh(hBSP430halSERIAL device, uint8_t c)
#define BSP430_HPL_USCI5_A2
Definition: usci5.h:782
void vBSP430usci5Flush_ni(hBSP430halSERIAL device)
unsigned char irrctl
Definition: usci5.h:149
#define BSP430_HAL_USCI5_B2
Definition: usci5.h:436
int iBSP430usci5SetHold_rh(hBSP430halSERIAL hal, int holdp)
void vBSP430usci5WakeupTransmit_rh(hBSP430halSERIAL device)
#define BSP430_PERIPH_USCI5_B1
Definition: usci5.h:678
#define BSP430_PERIPH_USCI5_A2
Definition: usci5.h:579
unsigned int ctlw0
Definition: usci5.h:110
unsigned char irtctl
Definition: usci5.h:148
Definition: serial_.h:193
#define BSP430_HAL_USCI5_A1
Definition: usci5.h:251
unsigned int brw
Definition: usci5.h:119
#define BSP430_HAL_USCI5_A3
Definition: usci5.h:325
static BSP430_CORE_INLINE hBSP430halSERIAL hBSP430usci5Lookup(tBSP430periphHandle periph)
Definition: usci5.h:1169
#define BSP430_HAL_USCI5_A2
Definition: usci5.h:288
unsigned char ie
Definition: usci5.h:160
int iBSP430usci5Close(hBSP430halSERIAL xUSCI)
#define BSP430_HPL_USCI5_A0
Definition: usci5.h:760
#define BSP430_PERIPH_USCI5_A0
Definition: usci5.h:513
#define BSP430_HPL_USCI5_B0
Definition: usci5.h:804
#define BSP430_PERIPH_USCI5_A3
Definition: usci5.h:612
#define BSP430_CORE_INLINE
Definition: core.h:439
Generic peripheral support for MSP430 MCUs.
unsigned char ifg
Definition: usci5.h:161
int iBSP430usci5UARTtxData_rh(hBSP430halSERIAL device, const uint8_t *data, size_t len)
unsigned char ctl1
Definition: usci5.h:112
int iBSP430usci5I2CtxData_rh(hBSP430halSERIAL hal, const uint8_t *tx_data, size_t tx_len)
#define BSP430_HPL_USCI5_A1
Definition: usci5.h:771
Definition: usci5.h:108
#define BSP430_HPL_USCI5_B1
Definition: usci5.h:815
#define BSP430_HAL_USCI5_A0
Definition: usci5.h:214
#define BSP430_HAL_USCI5_B3
Definition: usci5.h:473
int iBSP430usci5SPITxRx_rh(hBSP430halSERIAL hal, const uint8_t *tx_data, size_t tx_len, size_t rx_len, uint8_t *rx_data)
#define BSP430_HPL_USCI5_B2
Definition: usci5.h:826
unsigned char br0
Definition: usci5.h:121
int iBSP430usci5I2CrxData_rh(hBSP430halSERIAL hal, uint8_t *rx_data, size_t rx_len)
int tBSP430periphHandle
Definition: periph.h:106
#define BSP430_HPL_USCI5_A3
Definition: usci5.h:793
static BSP430_CORE_INLINE volatile sBSP430hplUSCI5 * xBSP430hplLookupUSCI5(tBSP430periphHandle periph)
Definition: usci5.h:1103
unsigned int i2csa
Definition: usci5.h:151
const char * xBSP430usci5Name(tBSP430periphHandle periph)
unsigned char txbuf
Definition: usci5.h:136
unsigned int ictl
Definition: usci5.h:158
#define BSP430_HPL_USCI5_B3
Definition: usci5.h:837
Structures for abstracted serial interface.
unsigned int iv
Definition: usci5.h:164
int iBSP430usci5UARTrxByte_rh(hBSP430halSERIAL device)
unsigned char mctl
Definition: usci5.h:127
#define BSP430_PERIPH_USCI5_A1
Definition: usci5.h:546
#define BSP430_PERIPH_USCI5_B2
Definition: usci5.h:711
unsigned char rxbuf
Definition: usci5.h:134
#define BSP430_PERIPH_USCI5_B0
Definition: usci5.h:645
unsigned int irctl
Definition: usci5.h:146
unsigned char ctl0
Definition: usci5.h:113