From 0f53d9dc0de5fe534eae3c3de9b7c199eeeaccb2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 17 Jan 2012 14:40:12 +0000 Subject: [PATCH] Finish coding of PIC32MX Ethernet driver git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4306 42af7a65-404d-4744-a932-0658087f49c3 --- configs/pic32-starterkit/include/board.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configs/pic32-starterkit/include/board.h b/configs/pic32-starterkit/include/board.h index e33ae33373..a4b8b47a52 100644 --- a/configs/pic32-starterkit/include/board.h +++ b/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 * * 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