group::EMC

The EMC API allows configuration of the external memory controller.

The EMC is usually initialized by the OS at startup using the following sample code:


Details

defineEMC_VERSION


defineEMC_IOC_IDENT_CHAR


defineI_EMC_GETVERSION


defineI_EMC_GETINFO


defineI_EMC_SETATTR


defineI_EMC_SETACTION


defineI_EMC_TOTAL


enumemc_flag_t

  • EMC_FLAG_DISABLE
  • EMC_FLAG_ENABLE
  • EMC_FLAG_IS_SDRAM
  • EMC_FLAG_IS_PSRAM
  • EMC_FLAG_IS_SRAM
  • EMC_FLAG_IS_NOR
  • EMC_FLAG_IS_NAND
  • EMC_FLAG_IS_8B_ACCESS
  • EMC_FLAG_IS_16B_ACCESS
  • EMC_FLAG_IS_32B_ACCESS
  • EMC_FLAG_IS_AHB use only data bus without address
  • EMC_FLAG_IS_PSRAM_BANK1 use subbank BANK1 - cs0
  • EMC_FLAG_IS_PSRAM_BANK2 use subbank BANK2 - cs1
  • EMC_FLAG_IS_PSRAM_BANK3 use subbank BANK3 - cs2
  • EMC_FLAG_IS_PSRAM_BANK4 use subbank BANK4 - cs3
  • EMC_FLAG_AHB_WRITE_DATA write data throuth ahb
  • EMC_FLAG_AHB_WRITE_REG write reg throuth ahb

These are the flags for mode in emc_attr_t



date: “2019-06-27” layout: post title: struct::emc_pin_assignment_t katex: true

categories: struct

Methods

Details

publicmcu_pin_twe


publicmcu_pin_toe


publicmcu_pin_tbl


publicmcu_pin_tnadv


publicmcu_pin_tnwait


publicmcu_pin_tncs


publicmcu_pin_taddress


publicmcu_pin_tdata



date: “2019-06-27” layout: post title: struct::emc_info_t katex: true

categories: struct

Methods

Details

public u32o_flags


public u32o_events


public u32freq


public u32base_address


public u32size


public u8data_bus_width


public u32resd



date: “2019-06-27” layout: post title: struct::emc_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags


public u32base_address


public u32size


public u32freq


public u32data_or_reg

use for AHB command


public u8data_bus_width


public emc_pin_assignment_tpin_assignment


public u32resd


X

Thanks for Coming!

Subscribe to news and updates