mirror of
https://github.com/micropython/micropython.git
synced 2025-09-09 19:30:53 +02:00
This change adds the OLIMEX H407 support to the STM32 port. The H407 (https://www.olimex.com/Products/ARM/ST/STM32-H407/) is simliar to the already existing E407 (https://www.olimex.com/Products/ARM/ST/STM32-E407) but does not support Ethernet and has a full-size USB-A port instead of a Mini-USB socket. Both boards use the STM32F407ZGT6 CPU. This port is basically a copy of the E407 but with changed pinmux: * Removed Ethernet pin definition * Removed UART1 (pins are used for other functions) * Removed UART3 flow control pins (pins are used for other functions) * Removed SD-Card detect pin (since it is not connected on the H407) A REPL on UART3 is connected to the U3BOOT-header, a 3-pin header with RX, TX and GND that is intended for the serial terminal. Tested: * Micro-SD Card is detected when inserted on RESET * REPL on UART3 works * Serial port on the mini USB socket Signed-off-by: Chris Fiege <cfi@pengutronix.de>
20 lines
549 B
C
20 lines
549 B
C
/* This file is part of the MicroPython project, http://micropython.org/
|
|
* The MIT License (MIT)
|
|
* Copyright (c) 2019 Damien P. George
|
|
*/
|
|
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
|
|
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
|
|
|
|
#include "boards/stm32f4xx_hal_conf_base.h"
|
|
|
|
// Oscillator values in Hz
|
|
#define HSE_VALUE (12000000)
|
|
#define LSE_VALUE (32768)
|
|
#define EXTERNAL_CLOCK_VALUE (12288000)
|
|
|
|
// Oscillator timeouts in ms
|
|
#define HSE_STARTUP_TIMEOUT (100)
|
|
#define LSE_STARTUP_TIMEOUT (5000)
|
|
|
|
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
|