You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5 KiB

#ifndef __TARGET_CONFIG_H__
#define __TARGET_CONFIG_H__
/* vrom */
#define TARGET_CMD_BUFSIZE 512
#define TARGET_CMD_MAXARGS 8
#define TARGET_VROM_START_ADDR 0x08004000
#define TARGET_VROM_SECT_CNT 1
#define APP_ADDRESS (0x08010000)
#define TICKS_PERIOD (2) /* mill seconds */
#define CONSOLE_SERIAL (&serial0)
#define CONSOLE_BAUDRATE (115200)
#define TARGET_HEAP_SIZE (0x1000)
#define I2C_ADDR_EEPROM (0x50)
#define I2C_ADDR_MAX6884 (0x28)
/* max6884 pins */
#define MAX6884_PIN_WDO (PH3) /* input */
#define MAX6884_PIN_RST (PH4) /* input */
#define MAX6884_PIN_UOV (PH5) /* input */
#define MAX6884_PIN_WDI (PH6) /* output */
#define TARGET_HAS_SPI1 1
#define TARGET_HAS_SPI2 1
#define TARGET_CMD_HISTORY (8)
#define TARGET_CMD_MULTIMODE (0)
#define TARGET_SPI_FLASH_PAGE_SIZE (4096)
#define TARGET_HAS_USART1 1
#define TARGET_HAS_USART3 1
#define TARGET_USART3_RX_BUFFER_SIZE (2048)
#define TARGET_USART3_TX_BUFFER_SIZE (2048)
#define TARGET_HAS_USART4 1
#define TARGET_USART4_RX_BUFFER_SIZE (2048)
#define TARGET_USART4_TX_BUFFER_SIZE (2048)
#define TARGET_HAS_USART7 1
#define TARGET_USART7_RX_BUFFER_SIZE (2048)
#define TARGET_USART7_TX_BUFFER_SIZE (2048)
#define TARGET_HAS_CAN0 1
#define TARGET_W5500_SPI (&spi1)
#define TARGET_W5500_SPI_CS (PB9)
#define TARGET_W5500_SPEED (5000000)
#define TARGET_SERVER_RXBUF_SZ (1024)
#define TARGET_SERVER_TXBUF_SZ (1024)
void console_cmd_loop();
#endif