Some information for peripheral registers

Datasheets, pinouts, FCC/CE documents, ... post or attach them here
rebane
Posts: 18
Joined: Thu Aug 18, 2016 10:11 pm

Some information for peripheral registers

Postby rebane » Sat Aug 20, 2016 2:32 pm

I discovered that all the basic peripherals (UART, SPI, I2C, DMA, GPIO etc.) are identical with Intel Quark D2000 (only base addresses are different). So it might be helpful to understand register definitions: http://www.intel.com/content/dam/www/pu ... asheet.pdf

rebane
Posts: 18
Joined: Thu Aug 18, 2016 10:11 pm

Re: Some information for peripheral registers

Postby rebane » Mon Aug 22, 2016 5:27 pm

In SDK, there is file hal_sdr_controller.c:

Code: Select all

#define REG_PKTBUF_DBG_CTRL_8723B               0x0140

int
rt_rpt_h_addr(u8 rpt)
{
    u32 r_val, offset;

    if (rpt == LLT){
        offset = LLT_H_ADDR;
    }
    else if (rpt == TXRPT){
        offset = TXREPORT_H_ADDR;
    }
    else if (rpt == RXBUFF){
        offset = RXBUFF_H_ADDR;
    }
    else if (rpt == TXBUFF){
        offset = TXBUFF_H_ADDR;
    }
    else {
    }

    r_val = ((HAL_READ32(WIFI_REG_BASE, REG_PKTBUF_DBG_CTRL_8723B)&0xFFFFF000)|offset);
    HAL_WRITE32(WIFI_REG_BASE, REG_PKTBUF_DBG_CTRL_8723B, r_val);
}


We can notice at least one WIFI register at 0x0140. Digging into linux source, there's directory "drivers/net/wireless/realtek/rtl8xxxu" with full source. And in file "rtl8xxxu_regs.h" there is also:

Code: Select all

#define REG_PKTBUF_DBG_CTRL             0x0140


I think the peripheral is same inside rtl8710 and it is probably possible to write true open source wifi driver.

sarwadenj
Posts: 5
Joined: Tue Oct 11, 2016 11:08 am

Re: Some information for peripheral registers

Postby sarwadenj » Tue Oct 11, 2016 11:34 am

Hi,
which Developement IDE i use for programming RTL8710?


Thanks

RTL8710
Posts: 1
Joined: Mon Sep 26, 2016 6:51 am

Re: Some information for peripheral registers

Postby RTL8710 » Sun Oct 30, 2016 4:14 pm

sarwadenj wrote:Hi,
which Developement IDE i use for programming RTL8710?


Thanks


IAR EWARM


Return to “Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest