mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Add Rx logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3107 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -129,14 +129,23 @@ void up_addregion(void)
|
||||
{
|
||||
/* Banks 0 and 1 are each 16Kb. If both are present, they occupy a
|
||||
* contiguous 32Kb memory region.
|
||||
*
|
||||
* If Ethernet is enabled, it will take all of bank 0 for packet
|
||||
* buffering and descriptor tables.
|
||||
*/
|
||||
|
||||
#ifdef LPC17_HAVE_BANK0
|
||||
# ifdef LPC17_HAVE_BANK1
|
||||
mm_addregion((FAR void*)LPC17_SRAM_BANK0, 32*1024);
|
||||
# else
|
||||
mm_addregion((FAR void*)LPC17_SRAM_BANK0, 16*1024);
|
||||
# endif
|
||||
# if defined(CONFIG_NET) && defined(CONFIG_LPC17_ETHERNET) && defined(LPC17_NETHCONTROLLERS)
|
||||
# ifdef LPC17_HAVE_BANK1
|
||||
mm_addregion((FAR void*)LPC17_SRAM_BANK1, 16*1024);
|
||||
# endif
|
||||
# else
|
||||
# ifdef LPC17_HAVE_BANK1
|
||||
mm_addregion((FAR void*)LPC17_SRAM_BANK0, 32*1024);
|
||||
# else
|
||||
mm_addregion((FAR void*)LPC17_SRAM_BANK0, 16*1024);
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user