mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
arch/arm: Remove FAR and CODE from board folder(1)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
972a260391
commit
cd001725b7
@@ -90,7 +90,7 @@ uint32_t board_buttons(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||
int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg)
|
||||
int board_button_irq(int id, xcpt_t irqhandler, void *arg)
|
||||
{
|
||||
int ret = -EINVAL;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
defined(CONFIG_AM335X_I2C1) || defined(CONFIG_AM335X_I2C2))
|
||||
static void am335x_i2c_register(int bus)
|
||||
{
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
int ret;
|
||||
|
||||
i2c = am335x_i2cbus_initialize(bus);
|
||||
@@ -68,7 +68,7 @@ static void am335x_i2c_register(int bus)
|
||||
#if defined(CONFIG_CAN) && (defined(CONFIG_AM335X_CAN0) || defined(CONFIG_AM335X_CAN1))
|
||||
static void am335x_can_register(void)
|
||||
{
|
||||
FAR struct can_dev_s *can;
|
||||
struct can_dev_s *can;
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_AM335X_CAN0
|
||||
|
||||
@@ -90,7 +90,7 @@ uint32_t board_buttons(void)
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||
int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg)
|
||||
int board_button_irq(int id, xcpt_t irqhandler, void *arg)
|
||||
{
|
||||
int ret = -EINVAL;
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ static int am335x_enable(const struct tda19988_lower_s *lower, bool enable)
|
||||
|
||||
int up_fbinitialize(int display)
|
||||
{
|
||||
FAR const struct videomode_s *videomode;
|
||||
const struct videomode_s *videomode;
|
||||
struct am335x_panel_info_s panel;
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_AK09912)
|
||||
|
||||
int board_ak09912_initialize(FAR const char *devpath, int bus)
|
||||
int board_ak09912_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing AK09912...\n");
|
||||
|
||||
|
||||
@@ -51,11 +51,11 @@
|
||||
|
||||
#ifdef CONFIG_SENSORS_AK09912_SCU
|
||||
|
||||
int board_ak09912_initialize(FAR const char *devpath, int bus)
|
||||
int board_ak09912_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int i;
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing AK09912...\n");
|
||||
|
||||
|
||||
@@ -363,9 +363,9 @@ static uint32_t altmdm_spi_maxfreq(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int board_altmdm_initialize(FAR const char *devpath)
|
||||
int board_altmdm_initialize(const char *devpath)
|
||||
{
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
#if defined(CONFIG_CXD56_LTE_SPI4_DMAC) || defined(CONFIG_CXD56_LTE_SPI5_DMAC)
|
||||
DMA_HANDLE hdl;
|
||||
dma_config_t conf;
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
int board_apds9930_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing APDS9930...\n");
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
|
||||
#if defined(CONFIG_CXD56_I2C) && defined(CONFIG_APDS9960)
|
||||
|
||||
int board_apds9960_initialize(FAR const char *devpath, int bus)
|
||||
int board_apds9960_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing APDS9960...\n");
|
||||
|
||||
|
||||
@@ -466,8 +466,8 @@ static struct cxd56_lower_s g_cxd56_lower[2];
|
||||
|
||||
int board_audio_initialize_driver(int minor)
|
||||
{
|
||||
FAR struct audio_lowerhalf_s *cxd56;
|
||||
FAR struct audio_lowerhalf_s *pcm;
|
||||
struct audio_lowerhalf_s *cxd56;
|
||||
struct audio_lowerhalf_s *pcm;
|
||||
char devname[12];
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_BH1721FVC_SCU
|
||||
int board_bh1721fvc_initialize(FAR const char *devpath, int bus)
|
||||
int board_bh1721fvc_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BH1721FVC...\n");
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_BH1745NUC_SCU
|
||||
int board_bh1745nuc_initialize(FAR const char *devpath, int bus)
|
||||
int board_bh1745nuc_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BH1745NUC...\n");
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_BM1383GLV_SCU
|
||||
int board_bm1383glv_initialize(FAR const char *devpath, int bus)
|
||||
int board_bm1383glv_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BM1383GLV...\n");
|
||||
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_BM1422GMV_SCU
|
||||
int board_bm1422gmv_initialize(FAR const char *devpath, int bus)
|
||||
int board_bm1422gmv_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int id = 0;
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BM1422GMV...\n");
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
int board_bmi160_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BMI160..\n");
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
int board_bmi160_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
|
||||
sninfo("Initializing BMI160..\n");
|
||||
|
||||
@@ -115,7 +115,7 @@ int board_bmi160_initialize(int bus)
|
||||
int board_bmi160_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BMI160..\n");
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
int board_bmi160_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
|
||||
sninfo("Initializing BMI160..\n");
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
int board_bmp280_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
snerr("Initializing BMP280..\n");
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ int board_bmp280_initialize(int bus)
|
||||
{
|
||||
int i;
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing BMP280..\n");
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_CXD56_RESET_ON_CRASH)
|
||||
static int nmi_handler(int irq, FAR void *context, FAR void *arg)
|
||||
static int nmi_handler(int irq, void *context, void *arg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -98,15 +98,15 @@ static void copy_reverse(stack_word_t *dest, stack_word_t *src, int size)
|
||||
* Name: board_crashdump
|
||||
****************************************************************************/
|
||||
|
||||
void board_crashdump(uintptr_t currentsp, FAR void *tcb,
|
||||
FAR const char *filename, int lineno)
|
||||
void board_crashdump(uintptr_t currentsp, void *tcb,
|
||||
const char *filename, int lineno)
|
||||
{
|
||||
FAR struct tcb_s *rtcb;
|
||||
struct tcb_s *rtcb;
|
||||
fullcontext_t *pdump;
|
||||
|
||||
enter_critical_section();
|
||||
|
||||
rtcb = (FAR struct tcb_s *)tcb;
|
||||
rtcb = (struct tcb_s *)tcb;
|
||||
#ifdef CONFIG_CXD56_BACKUPLOG
|
||||
pdump = up_backuplog_alloc("crash", sizeof(fullcontext_t));
|
||||
#else
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
int board_flash_initialize(void)
|
||||
{
|
||||
int ret;
|
||||
FAR struct mtd_dev_s *mtd;
|
||||
struct mtd_dev_s *mtd;
|
||||
|
||||
mtd = cxd56_sfc_initialize();
|
||||
if (!mtd)
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
static int gs2200m_irq_attach(xcpt_t, FAR void *);
|
||||
static int gs2200m_irq_attach(xcpt_t, void *);
|
||||
static void gs2200m_irq_enable(void);
|
||||
static void gs2200m_irq_disable(void);
|
||||
static uint32_t gs2200m_dready(int *);
|
||||
@@ -84,7 +84,7 @@ static const struct gs2200m_lower_s g_wifi_lower =
|
||||
.reset = gs2200m_reset
|
||||
};
|
||||
|
||||
static FAR void *g_devhandle = NULL;
|
||||
static void *g_devhandle = NULL;
|
||||
static volatile int32_t _enable_count = 0;
|
||||
static volatile uint32_t _n_called;
|
||||
|
||||
@@ -96,7 +96,7 @@ static volatile uint32_t _n_called;
|
||||
* Name: gs2200m_irq_attach
|
||||
****************************************************************************/
|
||||
|
||||
static int gs2200m_irq_attach(xcpt_t handler, FAR void *arg)
|
||||
static int gs2200m_irq_attach(xcpt_t handler, void *arg)
|
||||
{
|
||||
cxd56_gpioint_config(GS2200M_GPIO_37,
|
||||
GPIOINT_LEVEL_HIGH,
|
||||
@@ -223,9 +223,9 @@ static void spi_pincontrol(int bus, bool on)
|
||||
* Name: board_gs2200m_initialize
|
||||
****************************************************************************/
|
||||
|
||||
int board_gs2200m_initialize(FAR const char *devpath, int bus)
|
||||
int board_gs2200m_initialize(const char *devpath, int bus)
|
||||
{
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
DMA_HANDLE hdl;
|
||||
dma_config_t conf;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
int board_i2cdev_initialize(int port)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
_info("Initializing /dev/i2c%d..\n", port);
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
int board_i2cdev_bitbang_initialize(uint32_t sda_pin, uint32_t scl_pin)
|
||||
{
|
||||
int ret = 0;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
int port;
|
||||
|
||||
/* Use a sda pin number as port number */
|
||||
|
||||
@@ -100,9 +100,9 @@ static struct lcd_dev_s *g_lcd = NULL;
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void cxd56_ili93404ws_select(FAR struct ili9340_lcd_s *lcd)
|
||||
static void cxd56_ili93404ws_select(struct ili9340_lcd_s *lcd)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
SPI_LOCK(priv->spi, true);
|
||||
SPI_SELECT(priv->spi, SPIDEV_DISPLAY(0), true);
|
||||
@@ -121,9 +121,9 @@ static void cxd56_ili93404ws_select(FAR struct ili9340_lcd_s *lcd)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void cxd56_ili93404ws_deselect(FAR struct ili9340_lcd_s *lcd)
|
||||
static void cxd56_ili93404ws_deselect(struct ili9340_lcd_s *lcd)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
SPI_SELECT(priv->spi, SPIDEV_DISPLAY(0), false);
|
||||
SPI_LOCK(priv->spi, false);
|
||||
@@ -144,7 +144,7 @@ static void cxd56_ili93404ws_deselect(FAR struct ili9340_lcd_s *lcd)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_backlight(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_backlight(struct ili9340_lcd_s *lcd,
|
||||
int level)
|
||||
{
|
||||
if (level > 0)
|
||||
@@ -176,10 +176,10 @@ static int cxd56_ili93404ws_backlight(FAR struct ili9340_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_sendcmd(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_sendcmd(struct ili9340_lcd_s *lcd,
|
||||
const uint8_t cmd)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
lcdinfo("%02x\n", cmd);
|
||||
|
||||
@@ -212,10 +212,10 @@ static int cxd56_ili93404ws_sendcmd(FAR struct ili9340_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_sendparam(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_sendparam(struct ili9340_lcd_s *lcd,
|
||||
const uint8_t param)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
cxd56_gpio_write(DISPLAY_DC, true); /* Indicate DATA */
|
||||
SPI_SEND(priv->spi, param);
|
||||
@@ -239,10 +239,10 @@ static int cxd56_ili93404ws_sendparam(FAR struct ili9340_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_sendgram(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_sendgram(struct ili9340_lcd_s *lcd,
|
||||
const uint16_t *wd, uint32_t nwords)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
lcdinfo("lcd:%p, wd=%p, nwords=%" PRId32 "\n", lcd, wd, nwords);
|
||||
|
||||
@@ -267,10 +267,10 @@ static int cxd56_ili93404ws_sendgram(FAR struct ili9340_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_recvparam(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_recvparam(struct ili9340_lcd_s *lcd,
|
||||
uint8_t *param)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = (FAR struct ili93404ws_lcd_s *)lcd;
|
||||
struct ili93404ws_lcd_s *priv = (struct ili93404ws_lcd_s *)lcd;
|
||||
|
||||
cxd56_gpio_write(DISPLAY_DC, true); /* Indicate DATA */
|
||||
*param = (uint8_t)(SPI_SEND(priv->spi, param) & 0xff);
|
||||
@@ -294,7 +294,7 @@ static int cxd56_ili93404ws_recvparam(FAR struct ili9340_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_ili93404ws_recvgram(FAR struct ili9340_lcd_s *lcd,
|
||||
static int cxd56_ili93404ws_recvgram(struct ili9340_lcd_s *lcd,
|
||||
uint16_t *wd, uint32_t nwords)
|
||||
{
|
||||
lcdinfo("wd=%p, nwords=%" PRId32 "\n", wd, nwords);
|
||||
@@ -318,8 +318,8 @@ static int cxd56_ili93404ws_recvgram(FAR struct ili9340_lcd_s *lcd,
|
||||
|
||||
int board_lcd_initialize(void)
|
||||
{
|
||||
FAR struct ili93404ws_lcd_s *priv = &g_lcddev;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct ili93404ws_lcd_s *priv = &g_lcddev;
|
||||
struct spi_dev_s *spi;
|
||||
#if defined(CONFIG_CXD56_DMAC)
|
||||
DMA_HANDLE hdl;
|
||||
dma_config_t conf;
|
||||
@@ -403,7 +403,7 @@ int board_lcd_initialize(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct lcd_dev_s *board_lcd_getdev(int lcddev)
|
||||
struct lcd_dev_s *board_lcd_getdev(int lcddev)
|
||||
{
|
||||
if (lcddev == 0)
|
||||
{
|
||||
|
||||
@@ -226,7 +226,7 @@ static void ip_semgive(sem_t * id)
|
||||
nxsem_post(id);
|
||||
}
|
||||
|
||||
static int intr_handler_rot(int irq, FAR void *context, FAR void *arg)
|
||||
static int intr_handler_rot(int irq, void *context, void *arg)
|
||||
{
|
||||
putreg32(1, ROT_INTR_CLEAR);
|
||||
putreg32(0, ROT_INTR_ENABLE);
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@@ -157,7 +157,7 @@ void board_isx012_release_sleep(void)
|
||||
nxsig_usleep(SLEEP_CANCEL_TIME);
|
||||
}
|
||||
|
||||
int isx012_register(FAR struct i2c_master_s *i2c);
|
||||
int isx012_register(struct i2c_master_s *i2c);
|
||||
int isx012_unregister(void);
|
||||
|
||||
int board_isx012_initialize(int i2c_bus_num)
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SENSORS_KX022_SCU
|
||||
int board_kx022_initialize(FAR const char *devpath, int bus)
|
||||
int board_kx022_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int fifoid = 0;
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing KX022...\n");
|
||||
|
||||
|
||||
@@ -100,10 +100,10 @@ static struct lcd_dev_s *g_lcd = NULL;
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void cxd56_lpm013m091a4ws_select(FAR struct lpm013m091a_lcd_s *lcd)
|
||||
static void cxd56_lpm013m091a4ws_select(struct lpm013m091a_lcd_s *lcd)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
SPI_LOCK(priv->spi, true);
|
||||
SPI_SELECT(priv->spi, SPIDEV_DISPLAY(0), true);
|
||||
@@ -122,10 +122,10 @@ static void cxd56_lpm013m091a4ws_select(FAR struct lpm013m091a_lcd_s *lcd)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void cxd56_lpm013m091a4ws_deselect(FAR struct lpm013m091a_lcd_s *lcd)
|
||||
static void cxd56_lpm013m091a4ws_deselect(struct lpm013m091a_lcd_s *lcd)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
SPI_SELECT(priv->spi, SPIDEV_DISPLAY(0), false);
|
||||
SPI_LOCK(priv->spi, false);
|
||||
@@ -146,7 +146,7 @@ static void cxd56_lpm013m091a4ws_deselect(FAR struct lpm013m091a_lcd_s *lcd)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_backlight(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_backlight(struct lpm013m091a_lcd_s *lcd,
|
||||
int level)
|
||||
{
|
||||
if (level > 0)
|
||||
@@ -178,11 +178,11 @@ static int cxd56_lpm013m091a4ws_backlight(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_sendcmd(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_sendcmd(struct lpm013m091a_lcd_s *lcd,
|
||||
const uint8_t cmd)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
lcdinfo("%02x\n", cmd);
|
||||
|
||||
@@ -215,11 +215,11 @@ static int cxd56_lpm013m091a4ws_sendcmd(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_sendparam(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_sendparam(struct lpm013m091a_lcd_s *lcd,
|
||||
const uint8_t param)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
cxd56_gpio_write(DISPLAY_DC, true); /* Indicate DATA */
|
||||
SPI_SEND(priv->spi, param);
|
||||
@@ -243,11 +243,11 @@ static int cxd56_lpm013m091a4ws_sendparam(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_sendgram(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_sendgram(struct lpm013m091a_lcd_s *lcd,
|
||||
const uint16_t *wd, uint32_t nwords)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
lcdinfo("lcd:%p, wd=%p, nwords=%d\n", lcd, wd, nwords);
|
||||
|
||||
@@ -272,11 +272,11 @@ static int cxd56_lpm013m091a4ws_sendgram(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_recvparam(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_recvparam(struct lpm013m091a_lcd_s *lcd,
|
||||
uint8_t *param)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv
|
||||
= (FAR struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
struct lpm013m091a4ws_lcd_s *priv
|
||||
= (struct lpm013m091a4ws_lcd_s *)lcd;
|
||||
|
||||
cxd56_gpio_write(DISPLAY_DC, true); /* Indicate DATA */
|
||||
*param = (uint8_t)(SPI_SEND(priv->spi, param) & 0xff);
|
||||
@@ -300,7 +300,7 @@ static int cxd56_lpm013m091a4ws_recvparam(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int cxd56_lpm013m091a4ws_recvgram(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
static int cxd56_lpm013m091a4ws_recvgram(struct lpm013m091a_lcd_s *lcd,
|
||||
uint16_t *wd, uint32_t nwords)
|
||||
{
|
||||
lcdinfo("wd=%p, nwords=%d\n", wd, nwords);
|
||||
@@ -324,8 +324,8 @@ static int cxd56_lpm013m091a4ws_recvgram(FAR struct lpm013m091a_lcd_s *lcd,
|
||||
|
||||
int board_lcd_initialize(void)
|
||||
{
|
||||
FAR struct lpm013m091a4ws_lcd_s *priv = &g_lcddev;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct lpm013m091a4ws_lcd_s *priv = &g_lcddev;
|
||||
struct spi_dev_s *spi;
|
||||
#if defined(CONFIG_CXD56_DMAC)
|
||||
DMA_HANDLE hdl;
|
||||
dma_config_t conf;
|
||||
@@ -409,7 +409,7 @@ int board_lcd_initialize(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct lcd_dev_s *board_lcd_getdev(int lcddev)
|
||||
struct lcd_dev_s *board_lcd_getdev(int lcddev)
|
||||
{
|
||||
if (lcddev == 0)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
int board_lt1pa01_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing LT1PA01...\n");
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
int board_rpr0521rs_initialize(int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing RPR0521RS...\n");
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
|
||||
#if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_SCD41)
|
||||
|
||||
int board_scd41_initialize(FAR const char *devpath, int bus)
|
||||
int board_scd41_initialize(const char *devpath, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct i2c_master_s *i2c;
|
||||
struct i2c_master_s *i2c;
|
||||
|
||||
sninfo("Initializing SCD41...\n");
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
typedef int (*_init_t)(int bus);
|
||||
typedef int (*_initdev_t)(FAR const char *devpath, int bus);
|
||||
typedef int (*_initdev_t)(const char *devpath, int bus);
|
||||
|
||||
struct sensor_device_s
|
||||
{
|
||||
@@ -237,7 +237,7 @@ int board_sensors_initialize(void)
|
||||
{
|
||||
int ret = 0;
|
||||
int i;
|
||||
FAR struct sensor_device_s *dev;
|
||||
struct sensor_device_s *dev;
|
||||
|
||||
ret = board_power_control(POWER_SENSOR, true);
|
||||
if (ret)
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
int board_spidev_initialize(int port)
|
||||
{
|
||||
int ret;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
|
||||
_info("Initializing /dev/spi%d..\n", port);
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
int board_spisd_initialize(int minor, int bus)
|
||||
{
|
||||
int ret;
|
||||
FAR struct spi_dev_s *spi;
|
||||
struct spi_dev_s *spi;
|
||||
|
||||
/* Enable input of detect pin */
|
||||
|
||||
@@ -112,7 +112,7 @@ int board_spisd_initialize(int minor, int bus)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
uint8_t board_spisd_status(FAR struct spi_dev_s *dev, uint32_t devid)
|
||||
uint8_t board_spisd_status(struct spi_dev_s *dev, uint32_t devid)
|
||||
{
|
||||
uint8_t ret = 0;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
static char g_serialstr[CONFIG_BOARDCTL_UNIQUEID_SIZE * 2 + 1];
|
||||
|
||||
FAR const char *board_usbdev_serialstr(void)
|
||||
const char *board_usbdev_serialstr(void)
|
||||
{
|
||||
uint8_t uid[CONFIG_BOARDCTL_UNIQUEID_SIZE];
|
||||
|
||||
|
||||
@@ -71,13 +71,13 @@ struct dnc_param_s
|
||||
{
|
||||
bool en;
|
||||
cxd56_audio_dnc_id_t id;
|
||||
FAR cxd56_audio_dnc_bin_t *bin;
|
||||
cxd56_audio_dnc_bin_t *bin;
|
||||
};
|
||||
|
||||
struct deq_param_s
|
||||
{
|
||||
bool en;
|
||||
FAR cxd56_audio_deq_coef_t *coef;
|
||||
cxd56_audio_deq_coef_t *coef;
|
||||
};
|
||||
|
||||
struct input_param_s
|
||||
@@ -437,7 +437,7 @@ CXD56_AUDIO_ECODE cxd56_audio_poweroff_dnc(void)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_en_dnc(cxd56_audio_dnc_id_t id,
|
||||
FAR cxd56_audio_dnc_bin_t *bin)
|
||||
cxd56_audio_dnc_bin_t *bin)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -475,7 +475,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dis_dnc(cxd56_audio_dnc_id_t id)
|
||||
return ret;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_en_deq(FAR cxd56_audio_deq_coef_t *coef)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_en_deq(cxd56_audio_deq_coef_t *coef)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -863,7 +863,7 @@ CXD56_AUDIO_ECODE cxd56_audio_stop_beep(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_set_micgain(FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_set_micgain(cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -900,7 +900,7 @@ CXD56_AUDIO_ECODE cxd56_audio_set_micgain(FAR cxd56_audio_mic_gain_t *gain)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_get_dmahandle(cxd56_audio_dma_path_t path,
|
||||
FAR cxd56_audio_dma_t *handle)
|
||||
cxd56_audio_dma_t *handle)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -929,7 +929,7 @@ CXD56_AUDIO_ECODE cxd56_audio_get_dmahandle(cxd56_audio_dma_path_t path,
|
||||
return ret;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_free_dmahandle(FAR cxd56_audio_dma_t handle)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_free_dmahandle(cxd56_audio_dma_t handle)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -979,7 +979,7 @@ CXD56_AUDIO_ECODE cxd56_audio_set_datapath(cxd56_audio_signal_t sig,
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_init_dma(cxd56_audio_dma_t handle,
|
||||
cxd56_audio_samp_fmt_t fmt,
|
||||
FAR uint8_t *ch_num)
|
||||
uint8_t *ch_num)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -1007,7 +1007,7 @@ CXD56_AUDIO_ECODE cxd56_audio_init_dma(cxd56_audio_dma_t handle,
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_set_dmacb(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_cb_t cb)
|
||||
cxd56_audio_dma_cb_t cb)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -1029,7 +1029,7 @@ CXD56_AUDIO_ECODE cxd56_audio_set_dmacb(cxd56_audio_dma_t handle,
|
||||
|
||||
CXD56_AUDIO_ECODE
|
||||
cxd56_audio_get_dmamstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state)
|
||||
cxd56_audio_dma_mstate_t *state)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ void set_deq_coef(uint32_t reg_id, cxd56_audio_deq_coef_func_t *coef)
|
||||
}
|
||||
|
||||
static void set_cic_gain(uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
uint32_t val;
|
||||
uint8_t write_num;
|
||||
@@ -1123,7 +1123,7 @@ void cxd56_audio_ac_reg_enable_dnc(cxd56_audio_dnc_id_t id)
|
||||
}
|
||||
|
||||
void cxd56_audio_ac_reg_set_dncram(cxd56_audio_dnc_id_t id,
|
||||
FAR cxd56_audio_dnc_bin_t *bin)
|
||||
cxd56_audio_dnc_bin_t *bin)
|
||||
{
|
||||
uint32_t iram_reg;
|
||||
uint32_t cram_reg;
|
||||
@@ -1159,7 +1159,7 @@ void cxd56_audio_ac_reg_disable_deq(void)
|
||||
write_ac_reg(RI_DEQ_EN, 0);
|
||||
}
|
||||
|
||||
void cxd56_audio_ac_reg_set_deq_param(FAR cxd56_audio_deq_coef_t *deq)
|
||||
void cxd56_audio_ac_reg_set_deq_param(cxd56_audio_deq_coef_t *deq)
|
||||
{
|
||||
set_deq_coef(RI_DEQ_COEF_1B0, &deq->coef[0]);
|
||||
set_deq_coef(RI_DEQ_COEF_2B0, &deq->coef[1]);
|
||||
@@ -1173,7 +1173,7 @@ CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(
|
||||
uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
/* Power on CIC. */
|
||||
|
||||
@@ -1412,7 +1412,7 @@ void cxd56_audio_ac_reg_set_beep_vol(uint32_t vol)
|
||||
}
|
||||
|
||||
void cxd56_audio_ac_reg_set_cicgain(uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
set_cic_gain(cic_num, gain);
|
||||
}
|
||||
@@ -1433,7 +1433,7 @@ void cxd56_audio_ac_reg_set_dsrrate(uint32_t rate)
|
||||
}
|
||||
|
||||
void cxd56_audio_ac_reg_set_seloutch(
|
||||
FAR cxd56_audio_ac_reg_seloutch_t *seloutch)
|
||||
cxd56_audio_ac_reg_seloutch_t *seloutch)
|
||||
{
|
||||
write_ac_reg(RI_SEL_OUT1_L, seloutch->ch[0]);
|
||||
write_ac_reg(RI_SEL_OUT1_R, seloutch->ch[1]);
|
||||
|
||||
@@ -393,15 +393,15 @@ void cxd56_audio_ac_reg_enable_dnc(cxd56_audio_dnc_id_t id);
|
||||
void cxd56_audio_ac_reg_mute_dnc(cxd56_audio_dnc_id_t id);
|
||||
void cxd56_audio_ac_reg_unmute_dnc(cxd56_audio_dnc_id_t id);
|
||||
void cxd56_audio_ac_reg_set_dncram(cxd56_audio_dnc_id_t id,
|
||||
FAR cxd56_audio_dnc_bin_t *bin);
|
||||
cxd56_audio_dnc_bin_t *bin);
|
||||
void cxd56_audio_ac_reg_enable_deq(void);
|
||||
void cxd56_audio_ac_reg_disable_deq(void);
|
||||
void cxd56_audio_ac_reg_set_deq_param(FAR cxd56_audio_deq_coef_t *deq);
|
||||
void cxd56_audio_ac_reg_set_deq_param(cxd56_audio_deq_coef_t *deq);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(
|
||||
uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
void cxd56_audio_ac_reg_poweroff_cic(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_decim(uint8_t mic_mode,
|
||||
uint8_t clk_mode);
|
||||
@@ -415,12 +415,12 @@ void cxd56_audio_ac_reg_disable_beep(void);
|
||||
void cxd56_audio_ac_reg_set_beep_freq(uint32_t freq);
|
||||
void cxd56_audio_ac_reg_set_beep_vol(uint32_t vol);
|
||||
void cxd56_audio_ac_reg_set_cicgain(uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
void cxd56_audio_ac_reg_enable_digsft(void);
|
||||
void cxd56_audio_ac_reg_disable_digsft(void);
|
||||
void cxd56_audio_ac_reg_set_dsrrate(uint32_t rate);
|
||||
void cxd56_audio_ac_reg_set_seloutch(
|
||||
FAR cxd56_audio_ac_reg_seloutch_t *seloutch);
|
||||
cxd56_audio_ac_reg_seloutch_t *seloutch);
|
||||
void cxd56_audio_ac_reg_enable_dma(void);
|
||||
|
||||
void cxd56_audio_ac_reg_poweron_i2s(uint8_t clk_mode);
|
||||
|
||||
@@ -375,7 +375,7 @@ static void get_osc_mode(uint8_t cfg_mclk,
|
||||
}
|
||||
|
||||
static void get_mic_dev(uint32_t cfg_mic,
|
||||
FAR as_aca_pulco_mic_device_id_t *dev)
|
||||
as_aca_pulco_mic_device_id_t *dev)
|
||||
{
|
||||
bool is_amic = false;
|
||||
bool is_dmic = false;
|
||||
@@ -410,7 +410,7 @@ static void get_mic_dev(uint32_t cfg_mic,
|
||||
}
|
||||
|
||||
static void get_drv_str(uint8_t cfg_ds,
|
||||
FAR as_aca_pulco_io_ds_id_t *ds)
|
||||
as_aca_pulco_io_ds_id_t *ds)
|
||||
{
|
||||
switch (cfg_ds)
|
||||
{
|
||||
@@ -437,7 +437,7 @@ static void get_drv_str(uint8_t cfg_ds,
|
||||
}
|
||||
|
||||
static void get_mic_bias(uint8_t cfg_bsel,
|
||||
FAR as_aca_pulco_mic_bias_sel_id_t *bsel)
|
||||
as_aca_pulco_mic_bias_sel_id_t *bsel)
|
||||
{
|
||||
switch (cfg_bsel)
|
||||
{
|
||||
@@ -456,7 +456,7 @@ static void get_mic_bias(uint8_t cfg_bsel,
|
||||
}
|
||||
|
||||
static void get_sp_split_on(uint8_t cf_sp_spliton,
|
||||
FAR as_aca_sp_spliton_sel_id_t *sp_spliton)
|
||||
as_aca_sp_spliton_sel_id_t *sp_spliton)
|
||||
{
|
||||
switch (cf_sp_spliton)
|
||||
{
|
||||
@@ -479,7 +479,7 @@ static void get_sp_split_on(uint8_t cf_sp_spliton,
|
||||
}
|
||||
|
||||
static void get_sp_driver(uint8_t cfg_sp_drv,
|
||||
FAR as_aca_sp_drv_sel_id_t *sp_drv)
|
||||
as_aca_sp_drv_sel_id_t *sp_drv)
|
||||
{
|
||||
switch (cfg_sp_drv)
|
||||
{
|
||||
@@ -539,7 +539,7 @@ void get_serial_param(as_ser_des_param_t *param)
|
||||
}
|
||||
|
||||
void get_input_param(as_aca_pulco_in_param_t *param,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
uint8_t mic_sel;
|
||||
uint8_t mic_id;
|
||||
@@ -666,7 +666,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
as_aca_pulco_in_param_t pwon_input_param;
|
||||
|
||||
@@ -753,7 +753,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_disable_output(void)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
as_aca_pulco_in_param_t mic_gain_param;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_smaster(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void);
|
||||
@@ -64,7 +64,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_enable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_disable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_notify_micbootdone(void);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ACA_H */
|
||||
|
||||
@@ -148,7 +148,7 @@ CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff(void)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE
|
||||
cxd56_audio_analog_poweron_input(FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_analog_poweron_input(cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -262,7 +262,7 @@ CXD56_AUDIO_ECODE cxd56_audio_analog_disable_output(void)
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE
|
||||
cxd56_audio_analog_set_micgain(FAR cxd56_audio_mic_gain_t *gain)
|
||||
cxd56_audio_analog_set_micgain(cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
|
||||
@@ -50,14 +50,14 @@
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff_input(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_enable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_disable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_wait_input_standby(void);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ANALOG_H */
|
||||
|
||||
@@ -522,7 +522,7 @@ void cxd56_audio_bca_reg_en_fmt16(cxd56_audio_dma_t handle, uint8_t ch_num)
|
||||
}
|
||||
|
||||
void cxd56_audio_bca_reg_get_dma_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state)
|
||||
cxd56_audio_dma_mstate_t *state)
|
||||
{
|
||||
BCA_REG_ID reg_id_start;
|
||||
BCA_REG_ID reg_id_error;
|
||||
|
||||
@@ -234,7 +234,7 @@ void cxd56_audio_bca_reg_en_bus_err_int(void);
|
||||
void cxd56_audio_bca_reg_dis_bus_err_int(void);
|
||||
|
||||
void cxd56_audio_bca_reg_get_dma_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state);
|
||||
cxd56_audio_dma_mstate_t *state);
|
||||
|
||||
uint32_t cxd56_audio_bca_reg_get_dma_done_state_mic(void);
|
||||
uint32_t cxd56_audio_bca_reg_get_dma_done_state_i2s1(void);
|
||||
|
||||
@@ -140,7 +140,7 @@ static uint32_t write_int_reg(uint32_t reg, uint32_t data)
|
||||
}
|
||||
|
||||
static CXD56_AUDIO_ECODE get_dma_handle(cxd56_audio_dma_path_t path,
|
||||
FAR cxd56_audio_dma_t *handle)
|
||||
cxd56_audio_dma_t *handle)
|
||||
{
|
||||
switch (path)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ static CXD56_AUDIO_ECODE get_dma_handle(cxd56_audio_dma_path_t path,
|
||||
}
|
||||
|
||||
static CXD56_AUDIO_ECODE get_dma_path(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_path_t *path)
|
||||
cxd56_audio_dma_path_t *path)
|
||||
{
|
||||
switch (handle)
|
||||
{
|
||||
@@ -355,7 +355,7 @@ static CXD56_AUDIO_ECODE start_dma_workaround(cxd56_audio_dma_t handle)
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_handle(cxd56_audio_dma_path_t path,
|
||||
FAR cxd56_audio_dma_t *handle)
|
||||
cxd56_audio_dma_t *handle)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
|
||||
@@ -384,7 +384,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_get_handle(cxd56_audio_dma_path_t path,
|
||||
return CXD56_AUDIO_ECODE_OK;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_free_handle(FAR cxd56_audio_dma_t handle)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_free_handle(cxd56_audio_dma_t handle)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
cxd56_audio_dma_path_t path;
|
||||
@@ -402,7 +402,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_free_handle(FAR cxd56_audio_dma_t handle)
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_init(cxd56_audio_dma_t handle,
|
||||
cxd56_audio_samp_fmt_t fmt,
|
||||
FAR uint8_t *ch_num)
|
||||
uint8_t *ch_num)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
uint32_t ch_setting;
|
||||
@@ -473,7 +473,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_init(cxd56_audio_dma_t handle,
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_set_cb(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_cb_t cb)
|
||||
cxd56_audio_dma_cb_t cb)
|
||||
{
|
||||
g_dma_cb[handle] = cb;
|
||||
|
||||
@@ -481,7 +481,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_set_cb(cxd56_audio_dma_t handle,
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state)
|
||||
cxd56_audio_dma_mstate_t *state)
|
||||
{
|
||||
cxd56_audio_bca_reg_get_dma_mstate(handle, state);
|
||||
|
||||
|
||||
@@ -49,15 +49,15 @@
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_handle(cxd56_audio_dma_path_t path,
|
||||
FAR cxd56_audio_dma_t *handle);
|
||||
cxd56_audio_dma_t *handle);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_free_handle(cxd56_audio_dma_t handle);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_init(cxd56_audio_dma_t handle,
|
||||
cxd56_audio_samp_fmt_t fmt,
|
||||
FAR uint8_t *ch_num);
|
||||
uint8_t *ch_num);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_set_cb(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_cb_t cb);
|
||||
cxd56_audio_dma_cb_t cb);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state);
|
||||
cxd56_audio_dma_mstate_t *state);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_en_dmaint(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_dis_dmaint(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_start(cxd56_audio_dma_t handle,
|
||||
|
||||
@@ -61,7 +61,7 @@ void cxd56_audio_filter_poweroff_dnc(void)
|
||||
|
||||
void cxd56_audio_filter_set_dnc(cxd56_audio_dnc_id_t id,
|
||||
bool en,
|
||||
FAR cxd56_audio_dnc_bin_t *bin)
|
||||
cxd56_audio_dnc_bin_t *bin)
|
||||
{
|
||||
/* Desable DNC. */
|
||||
|
||||
@@ -83,7 +83,7 @@ void cxd56_audio_filter_set_dnc(cxd56_audio_dnc_id_t id,
|
||||
}
|
||||
|
||||
void cxd56_audio_filter_set_deq(bool en,
|
||||
FAR cxd56_audio_deq_coef_t *deq)
|
||||
cxd56_audio_deq_coef_t *deq)
|
||||
{
|
||||
/* Disable DEQ. */
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ void cxd56_audio_filter_poweron_dnc(void);
|
||||
void cxd56_audio_filter_poweroff_dnc(void);
|
||||
void cxd56_audio_filter_set_dnc(cxd56_audio_dnc_id_t id,
|
||||
bool en,
|
||||
FAR cxd56_audio_dnc_bin_t *bin);
|
||||
cxd56_audio_dnc_bin_t *bin);
|
||||
void cxd56_audio_filter_set_deq(bool en,
|
||||
FAR cxd56_audio_deq_coef_t *deq);
|
||||
cxd56_audio_deq_coef_t *deq);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_FILTER_H */
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_enable(FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_enable(cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
uint8_t mic_num;
|
||||
@@ -117,7 +117,7 @@ CXD56_AUDIO_ECODE cxd56_audio_mic_disable(void)
|
||||
return CXD56_AUDIO_ECODE_OK;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_set_gain(FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_set_gain(cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
CXD56_AUDIO_ECODE ret = CXD56_AUDIO_ECODE_OK;
|
||||
uint8_t mic_num;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user