summaryrefslogtreecommitdiff
path: root/nuttx/configs/pic32-starterkit/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-17 14:40:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-17 14:40:12 +0000
commit7067857b49223d259878a3c479f05d7e1bd2b19f (patch)
tree0e2df022fa0781134ddc0a0882c03ce1fa5e3d1f /nuttx/configs/pic32-starterkit/include
parent890c7e343d820612308ec3c38a8e6037e7dc8695 (diff)
downloadpx4-nuttx-7067857b49223d259878a3c479f05d7e1bd2b19f.tar.gz
px4-nuttx-7067857b49223d259878a3c479f05d7e1bd2b19f.tar.bz2
px4-nuttx-7067857b49223d259878a3c479f05d7e1bd2b19f.zip
Finish coding of PIC32MX Ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4306 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/pic32-starterkit/include')
-rw-r--r--nuttx/configs/pic32-starterkit/include/board.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/configs/pic32-starterkit/include/board.h b/nuttx/configs/pic32-starterkit/include/board.h
index e33ae3337..a4b8b47a5 100644
--- a/nuttx/configs/pic32-starterkit/include/board.h
+++ b/nuttx/configs/pic32-starterkit/include/board.h
@@ -2,7 +2,7 @@
* configs/pic32-starterkit/include/board.h
* include/arch/board/board.h
*
- * Copyright (C) 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -87,6 +87,16 @@
#define BOARD_WD_ENABLE 0 /* Watchdog is disabled */
#define BOARD_WD_PRESCALER 8 /* Watchdog pre-scaler */
+/* Ethernet MII clocking.
+ *
+ * The clock divider used to create the MII Management Clock (MDC). The MIIM
+ * module uses the SYSCLK as an input clock. According to the IEEE 802.3
+ * Specification this should be no faster than 2.5 MHz. However, some PHYs
+ * support clock rates up to 12.5 MHz.
+ */
+
+#define BOARD_EMAC_MIIM_DIV 32 /* Ideal: 80MHz/32 = 2.5MHz */
+
/* LED definitions **********************************************************/
/* LED Configuration ********************************************************/
/* The PIC32MX Ethernet Starter kit has 3 user LEDs labeled LED1-3 on the