dcknightdc

个性签名:In God I trust!

    1. 哪位兄弟研究过EPI指点下!!!! 11/5888 微控制器 MCU 2011-01-27
      #define EXT_SRAM_BASE           0x68000000 //***************************************************************************** // //! Initializes any daughter-board SRAM as the external RAM heap. //! //! When an SRAM/Flash daughter board is installed, this function may be used //! to configure the memory manager to use the SRAM on this board rather than //! the SDRAM as its heap.  This allows software to call the ExtRAMAlloc() and //! ExtRAMFree() functions to manage the SRAM on the daughter board. //! //! Function PinoutSet() must be called before this function. //! //! \return Returns \b true on success of \b false if no SRAM is found or //! any other error occurs. // //***************************************************************************** tBoolean ExtRAMHeapInit(void) {     volatile unsigned char *pucTest;     //     // Is the correct daughter board installed?     //     if(g_eDaughterType == DAUGHTER_SRAM_FLASH)     {         //         // Test that we can access the SRAM on the daughter board.         //         pucTest = (volatile unsigned char *)EXT_SRAM_BASE;         pucTest[0] = 0xAA;         pucTest[1] = 0x55;         if((pucTest[0] == 0xAA) && (pucTest[1] == 0x55))         {             //             // The memory appears to be there so remember that we found it.             //             g_bExtRAMPresent = true;             //             // Now set up the heap that ExtRAMAlloc() and ExtRAMFree() will use.             //             bpool((void *)pucTest, SRAM_MEM_SIZE);         }     }     else     {         //         // The SRAM/Flash daughter board is not currently installed.         //         return(false);     }     //     // If we get here, all is well so pass this good news back to the caller.     //     return(true); } 具体用法,你参考dk-lm3s9b96中的qs-checkout项目里的如上hans

最近访客

< 1/1 >

统计信息

已有24人来访过

  • 芯积分:--
  • 好友:--
  • 主题:--
  • 回复:1

留言

你需要登录后才可以留言 登录 | 注册


现在还没有留言