STM32F7XXX Discovery Ether
[詳解]
#include "sysconfig.h"
#include "device.h"
#include "interrupt.h"
#include "str.h"
#include "tkprintf.h"
#include "device/ether_ioctl.h"
#include "task/event.h"
#include "task/syscall.h"
#include "stm32f7xx_hal_conf.h"
#include "stm32f7xx_hal_eth.h"
#include "dkprintf.h"
[ソースコード]
|
#define | LAN8742A_PHY_ADDRESS 0x00U |
|
#define | RMII_TXD1_Pin GPIO_PIN_14 |
|
#define | RMII_TXD1_GPIO_Port GPIOG |
|
#define | RMII_TXD0_Pin GPIO_PIN_13 |
|
#define | RMII_TXD0_GPIO_Port GPIOG |
|
#define | RMII_TX_EN_Pin GPIO_PIN_11 |
|
#define | RMII_TX_EN_GPIO_Port GPIOG |
|
#define | RMII_RXER_Pin GPIO_PIN_5 |
|
#define | RMII_RXER_GPIO_Port GPIOD |
|
#define | RMII_MDC_Pin GPIO_PIN_1 |
|
#define | RMII_MDC_GPIO_Port GPIOC |
|
#define | RMII_REF_CLK_Pin GPIO_PIN_1 |
|
#define | RMII_REF_CLK_GPIO_Port GPIOA |
|
#define | RMII_RXD0_Pin GPIO_PIN_4 |
|
#define | RMII_RXD0_GPIO_Port GPIOC |
|
#define | RMII_MDIO_Pin GPIO_PIN_2 |
|
#define | RMII_MDIO_GPIO_Port GPIOA |
|
#define | RMII_RXD1_Pin GPIO_PIN_5 |
|
#define | RMII_RXD1_GPIO_Port GPIOC |
|
#define | RMII_CRS_DV_Pin GPIO_PIN_7 |
|
#define | RMII_CRS_DV_GPIO_Port GPIOA |
|
|
ETH_DMADescTypeDef DMARxDscrTab [ETH_RXBUFNB] | __attribute__ ((section(".RxDescripSection"))) |
|
ETH_DMADescTypeDef DMATxDscrTab [ETH_TXBUFNB] | __attribute__ ((section(".TxDescripSection"))) |
|
uint8_t Rx_Buff [ETH_RXBUFNB][ETH_RX_BUF_SIZE] | __attribute__ ((section(".RxBUF"))) |
|
uint8_t Tx_Buff [ETH_TXBUFNB][ETH_TX_BUF_SIZE] | __attribute__ ((section(".TxBUF"))) |
|
void | HAL_ETH_RxCpltCallback (ETH_HandleTypeDef *heth) |
|
static void | inthdr_ether (unsigned int intnum, void *sp) |
|
void | HAL_ETH_MspInit (ETH_HandleTypeDef *heth) |
|
static int | ether_register (struct st_device *dev, char *param) |
|
static int | ether_open (struct st_device *dev) |
|
static int | ether_close (struct st_device *dev) |
|
static int | ether_read (struct st_device *dev, void *data, unsigned int size) |
|
static int | ether_write (struct st_device *dev, const void *data, unsigned int size) |
|
static int | ether_ioctl (struct st_device *dev, unsigned int com, unsigned int arg, void *param) |
|
static int | ether_select (struct st_device *dev, unsigned int timeout) |
|
|
static unsigned char | macaddress [6] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 } |
|
static unsigned char | ether_event [ETH_RXBUFNB+1] |
|
static struct st_event | interrupt_evtque |
|
static ETH_HandleTypeDef | EthHandle |
|
static void * | int_sp |
|
const struct st_device | ether_device |
|
STM32F7XXX Discovery Ether
- 日付
- 2017.02.05
- 著者
- Takashi SHUDO
stm32f7xxx-disc_ether.c に定義があります。
◆ ether_device
初期値:= {
.explan = "STM32F7xxx-Discovery Ether",
.register_dev = ether_register,
.open = ether_open,
.close = ether_close,
.read = ether_read,
.write = ether_write,
.ioctl = ether_ioctl,
.select = ether_select,
}
#define DEF_DEV_NAME_ETHER
標準Etherデバイス名
stm32f7xxx-disc_ether.c の 340 行目に定義があります。