Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AIROC™ Bluetooth Forum Discussions

adam
Level 4
Level 4
25 replies posted 50 sign-ins First like received

hi:

I want to save more power comsumption of cyw20706, so after init rx pin and uart, I want to de-init it. 

Is there any API function or example I can reference?

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

There is no de-init API available.

For saving power, you can keep the gpio pins at appropriate configurations using GPIO APis. Please check wiced_hal_gpio.h

Thanks,

-Dheeraj.P.K

View solution in original post

0 Likes
3 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

May I know the APIs used by you to enable/init such items? -  init rx pin and uart

Thanks,

-Dheeraj.P.K

0 Likes

Hi,

I use wiced_transport_init(&transport_cfg); to init uart.

transport_cfg is be setting like :

wiced_transport_cfg_t transport_cfg =
{
  .type = WICED_TRANSPORT_UART,
  .cfg =
  {
    .uart_cfg =
    {
    .mode = WICED_TRANSPORT_UART_RAW_MODE,
    .baud_rate = HCI_UART_DEFAULT_BAUD
    },
  },
  .rx_buff_pool_cfg =
  {
    .buffer_size = TRANS_UART_BUFFER_SIZE,
    .buffer_count = WICED_TRANSPORT_BUFFER_COUNT
  },
  .p_status_handler = NULL,
  .p_data_handler = hci_control_proc_rx_cmd,
  .p_tx_complete_cback = NULL
};

and I use wiced_hal_puart_select_uart_pads( WICED_PUART_RXD, WICED_PUART_TXD, 0, 0); to init uart pin.

is there any APIs I can close UART and remove function of uart pin ?

0 Likes
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

There is no de-init API available.

For saving power, you can keep the gpio pins at appropriate configurations using GPIO APis. Please check wiced_hal_gpio.h

Thanks,

-Dheeraj.P.K

0 Likes