1
/*****************************************************************************
2
* Copyright 2008 Broadcom Corporation. All rights reserved.
4
* Unless you and Broadcom execute a separate written software license
5
* agreement governing use of this software, this software is licensed to you
6
* under the terms of the GNU General Public License version 2, available at
7
* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
9
* Notwithstanding the above, under no circumstances may you combine this
10
* software in any way with any other Broadcom software provided under a
11
* license other than the GPL, without Broadcom's express prior written
13
*****************************************************************************/
14
/****************************************************************************/
18
* @brief Contains strings which are useful to linux and csp
22
/****************************************************************************/
24
/* ---- Include Files ---------------------------------------------------- */
26
#include <mach/csp/chipcHw_inline.h>
28
/* ---- Private Constants and Types --------------------------------------- */
30
static const char *gMuxStr[] = {
49
/****************************************************************************/
51
* @brief Retrieves a string representation of the mux setting for a pin.
53
* @return Pointer to a character string.
55
/****************************************************************************/
57
const char *chipcHw_getGpioPinFunctionStr(int pin)
59
if ((pin < 0) || (pin >= chipcHw_GPIO_COUNT)) {
63
return gMuxStr[chipcHw_getGpioPinFunction(pin)];