comparison gsm-fw/bsp/abb+spi/abb.c @ 588:1c0033c2fe33

gsm-fw/bsp/abb+spi/abb*.c: formatting fixes (line length and tabs)
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 17 Aug 2014 00:35:56 +0000
parents 99e44a92274c
children
comparison
equal deleted inserted replaced
587:cc0944d35698 588:1c0033c2fe33
1 /**********************************************************************************/ 1 /******************************************************************************/
2 /* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION */ 2 /* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION */
3 /* */ 3 /* */
4 /* Property of Texas Instruments -- For Unrestricted Internal Use Only */ 4 /* Property of Texas Instruments -- For Unrestricted Internal Use Only */
5 /* Unauthorized reproduction and/or distribution is strictly prohibited. This */ 5 /* Unauthorized reproduction and/or distribution is strictly prohibited. This*/
6 /* product is protected under copyright law and trade secret law as an */ 6 /* product is protected under copyright law and trade secret law as an*/
7 /* unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All */ 7 /* unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All*/
8 /* rights reserved. */ 8 /* rights reserved. */
9 /* */ 9 /* */
10 /* */ 10 /* */
11 /* Filename : abb.c */ 11 /* Filename : abb.c */
12 /* */ 12 /* */
13 /* Description : Functions to drive the ABB device. */ 13 /* Description : Functions to drive the ABB device. */
14 /* The Serial Port Interface is used to connect the TI */ 14 /* The Serial Port Interface is used to connect the TI */
15 /* Analog BaseBand (ABB). */ 15 /* Analog BaseBand (ABB). */
16 /* It is assumed that the ABB is connected as the SPI */ 16 /* It is assumed that the ABB is connected as the SPI */
17 /* device 0. */ 17 /* device 0. */
18 /* */ 18 /* */
19 /* Author : Pascal PUEL */ 19 /* Author : Pascal PUEL */
20 /* */ 20 /* */
21 /* Version number : 1.3 */ 21 /* Version number : 1.3 */
22 /* */ 22 /* */
23 /* Date and time : 08/22/03 */ 23 /* Date and time : 08/22/03 */
24 /* */ 24 /* */
25 /* Previous delta : Creation */ 25 /* Previous delta : Creation */
26 /* */ 26 /* */
27 /**********************************************************************************/ 27 /******************************************************************************/
28 28
29 #include "../../include/config.h" 29 #include "../../include/config.h"
30 #include "../../include/sys_types.h" 30 #include "../../include/sys_types.h"
31 #include "../../riviera/rv/general.h" 31 #include "../../riviera/rv/general.h"
32 #include "../../nucleus/nucleus.h" // for NUCLEUS functions and types 32 #include "../../nucleus/nucleus.h" // for NUCLEUS functions and types
602 status = * (volatile SYS_UWORD16 *) SPI_REG_STATUS; 602 status = * (volatile SYS_UWORD16 *) SPI_REG_STATUS;
603 603
604 #if (ABB_SEMAPHORE_PROTECTION == 3) 604 #if (ABB_SEMAPHORE_PROTECTION == 3)
605 605
606 // check if the semaphore has been correctly created and try to obtain it. 606 // check if the semaphore has been correctly created and try to obtain it.
607 // if the semaphore cannot be obtained, the task is suspended and then resumed 607 // if the semaphore cannot be obtained, the task is suspended and then resumed
608 // as soon as the semaphore is released. 608 // as soon as the semaphore is released.
609 if(&abb_sem != 0) 609 if(&abb_sem != 0)
610 { 610 {
611 NU_Obtain_Semaphore(&abb_sem, NU_SUSPEND); 611 NU_Obtain_Semaphore(&abb_sem, NU_SUSPEND);
612 } 612 }
668 status = * (volatile SYS_UWORD16 *) SPI_REG_STATUS; 668 status = * (volatile SYS_UWORD16 *) SPI_REG_STATUS;
669 669
670 #if (ABB_SEMAPHORE_PROTECTION == 3) 670 #if (ABB_SEMAPHORE_PROTECTION == 3)
671 671
672 // check if the semaphore has been correctly created and try to obtain it. 672 // check if the semaphore has been correctly created and try to obtain it.
673 // if the semaphore cannot be obtained, the task is suspended and then resumed 673 // if the semaphore cannot be obtained, the task is suspended and then resumed
674 // as soon as the semaphore is released. 674 // as soon as the semaphore is released.
675 if(&abb_sem != 0) 675 if(&abb_sem != 0)
676 { 676 {
677 NU_Obtain_Semaphore(&abb_sem, NU_SUSPEND); 677 NU_Obtain_Semaphore(&abb_sem, NU_SUSPEND);
678 } 678 }