c4db8b87e2
Restructures the STM port of Circuitpython to be more generic about the STM32 chip lines to support the F7 and H7 series of chips. Adds the new Packages directory to organize different chip layouts between lines. Makes general changes to the Makefile to condense board-level flags to the minimum and support the new chip series. Adds the new chip line to the Peripherals directory, along with new python tools used to generate peripheral text automatically in the tools/ directory.
200 lines
7.5 KiB
C
200 lines
7.5 KiB
C
/*
|
|
* This file is part of the MicroPython project, http://micropython.org/
|
|
*
|
|
* The MIT License (MIT)
|
|
*
|
|
* Copyright (c) 2020 Lucian Copeland for Adafruit Industries
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
* THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H
|
|
#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H
|
|
|
|
extern const mcu_pin_obj_t pin_PA00;
|
|
extern const mcu_pin_obj_t pin_PA01;
|
|
extern const mcu_pin_obj_t pin_PA02;
|
|
extern const mcu_pin_obj_t pin_PA03;
|
|
extern const mcu_pin_obj_t pin_PA04;
|
|
extern const mcu_pin_obj_t pin_PA05;
|
|
extern const mcu_pin_obj_t pin_PA06;
|
|
extern const mcu_pin_obj_t pin_PA07;
|
|
extern const mcu_pin_obj_t pin_PA08;
|
|
extern const mcu_pin_obj_t pin_PA09;
|
|
extern const mcu_pin_obj_t pin_PA10;
|
|
extern const mcu_pin_obj_t pin_PA11;
|
|
extern const mcu_pin_obj_t pin_PA12;
|
|
extern const mcu_pin_obj_t pin_PA13;
|
|
extern const mcu_pin_obj_t pin_PA14;
|
|
extern const mcu_pin_obj_t pin_PA15;
|
|
extern const mcu_pin_obj_t pin_PB00;
|
|
extern const mcu_pin_obj_t pin_PB01;
|
|
extern const mcu_pin_obj_t pin_PB02;
|
|
extern const mcu_pin_obj_t pin_PB03;
|
|
extern const mcu_pin_obj_t pin_PB04;
|
|
extern const mcu_pin_obj_t pin_PB05;
|
|
extern const mcu_pin_obj_t pin_PB06;
|
|
extern const mcu_pin_obj_t pin_PB07;
|
|
extern const mcu_pin_obj_t pin_PB08;
|
|
extern const mcu_pin_obj_t pin_PB09;
|
|
extern const mcu_pin_obj_t pin_PB10;
|
|
extern const mcu_pin_obj_t pin_PB11;
|
|
extern const mcu_pin_obj_t pin_PB12;
|
|
extern const mcu_pin_obj_t pin_PB13;
|
|
extern const mcu_pin_obj_t pin_PB14;
|
|
extern const mcu_pin_obj_t pin_PB15;
|
|
extern const mcu_pin_obj_t pin_PC00;
|
|
extern const mcu_pin_obj_t pin_PC01;
|
|
extern const mcu_pin_obj_t pin_PC02;
|
|
extern const mcu_pin_obj_t pin_PC03;
|
|
extern const mcu_pin_obj_t pin_PC04;
|
|
extern const mcu_pin_obj_t pin_PC05;
|
|
extern const mcu_pin_obj_t pin_PC06;
|
|
extern const mcu_pin_obj_t pin_PC07;
|
|
extern const mcu_pin_obj_t pin_PC08;
|
|
extern const mcu_pin_obj_t pin_PC09;
|
|
extern const mcu_pin_obj_t pin_PC10;
|
|
extern const mcu_pin_obj_t pin_PC11;
|
|
extern const mcu_pin_obj_t pin_PC12;
|
|
extern const mcu_pin_obj_t pin_PC13;
|
|
extern const mcu_pin_obj_t pin_PC14;
|
|
extern const mcu_pin_obj_t pin_PC15;
|
|
extern const mcu_pin_obj_t pin_PD00;
|
|
extern const mcu_pin_obj_t pin_PD01;
|
|
extern const mcu_pin_obj_t pin_PD02;
|
|
extern const mcu_pin_obj_t pin_PD03;
|
|
extern const mcu_pin_obj_t pin_PD04;
|
|
extern const mcu_pin_obj_t pin_PD05;
|
|
extern const mcu_pin_obj_t pin_PD06;
|
|
extern const mcu_pin_obj_t pin_PD07;
|
|
extern const mcu_pin_obj_t pin_PD08;
|
|
extern const mcu_pin_obj_t pin_PD09;
|
|
extern const mcu_pin_obj_t pin_PD10;
|
|
extern const mcu_pin_obj_t pin_PD11;
|
|
extern const mcu_pin_obj_t pin_PD12;
|
|
extern const mcu_pin_obj_t pin_PD13;
|
|
extern const mcu_pin_obj_t pin_PD14;
|
|
extern const mcu_pin_obj_t pin_PD15;
|
|
extern const mcu_pin_obj_t pin_PE00;
|
|
extern const mcu_pin_obj_t pin_PE01;
|
|
extern const mcu_pin_obj_t pin_PE02;
|
|
extern const mcu_pin_obj_t pin_PE03;
|
|
extern const mcu_pin_obj_t pin_PE04;
|
|
extern const mcu_pin_obj_t pin_PE05;
|
|
extern const mcu_pin_obj_t pin_PE06;
|
|
extern const mcu_pin_obj_t pin_PE07;
|
|
extern const mcu_pin_obj_t pin_PE08;
|
|
extern const mcu_pin_obj_t pin_PE09;
|
|
extern const mcu_pin_obj_t pin_PE10;
|
|
extern const mcu_pin_obj_t pin_PE11;
|
|
extern const mcu_pin_obj_t pin_PE12;
|
|
extern const mcu_pin_obj_t pin_PE13;
|
|
extern const mcu_pin_obj_t pin_PE14;
|
|
extern const mcu_pin_obj_t pin_PE15;
|
|
extern const mcu_pin_obj_t pin_PF00;
|
|
extern const mcu_pin_obj_t pin_PF01;
|
|
extern const mcu_pin_obj_t pin_PF02;
|
|
extern const mcu_pin_obj_t pin_PF03;
|
|
extern const mcu_pin_obj_t pin_PF04;
|
|
extern const mcu_pin_obj_t pin_PF05;
|
|
extern const mcu_pin_obj_t pin_PF06;
|
|
extern const mcu_pin_obj_t pin_PF07;
|
|
extern const mcu_pin_obj_t pin_PF08;
|
|
extern const mcu_pin_obj_t pin_PF09;
|
|
extern const mcu_pin_obj_t pin_PF10;
|
|
extern const mcu_pin_obj_t pin_PF11;
|
|
extern const mcu_pin_obj_t pin_PF12;
|
|
extern const mcu_pin_obj_t pin_PF13;
|
|
extern const mcu_pin_obj_t pin_PF14;
|
|
extern const mcu_pin_obj_t pin_PF15;
|
|
extern const mcu_pin_obj_t pin_PG00;
|
|
extern const mcu_pin_obj_t pin_PG01;
|
|
extern const mcu_pin_obj_t pin_PG02;
|
|
extern const mcu_pin_obj_t pin_PG03;
|
|
extern const mcu_pin_obj_t pin_PG04;
|
|
extern const mcu_pin_obj_t pin_PG05;
|
|
extern const mcu_pin_obj_t pin_PG06;
|
|
extern const mcu_pin_obj_t pin_PG07;
|
|
extern const mcu_pin_obj_t pin_PG08;
|
|
extern const mcu_pin_obj_t pin_PG09;
|
|
extern const mcu_pin_obj_t pin_PG10;
|
|
extern const mcu_pin_obj_t pin_PG11;
|
|
extern const mcu_pin_obj_t pin_PG12;
|
|
extern const mcu_pin_obj_t pin_PG13;
|
|
extern const mcu_pin_obj_t pin_PG14;
|
|
extern const mcu_pin_obj_t pin_PG15;
|
|
extern const mcu_pin_obj_t pin_PH00;
|
|
extern const mcu_pin_obj_t pin_PH01;
|
|
extern const mcu_pin_obj_t pin_PH02;
|
|
extern const mcu_pin_obj_t pin_PH03;
|
|
extern const mcu_pin_obj_t pin_PH04;
|
|
extern const mcu_pin_obj_t pin_PH05;
|
|
extern const mcu_pin_obj_t pin_PH06;
|
|
extern const mcu_pin_obj_t pin_PH07;
|
|
extern const mcu_pin_obj_t pin_PH08;
|
|
extern const mcu_pin_obj_t pin_PH09;
|
|
extern const mcu_pin_obj_t pin_PH10;
|
|
extern const mcu_pin_obj_t pin_PH11;
|
|
extern const mcu_pin_obj_t pin_PH12;
|
|
extern const mcu_pin_obj_t pin_PH13;
|
|
extern const mcu_pin_obj_t pin_PH14;
|
|
extern const mcu_pin_obj_t pin_PH15;
|
|
extern const mcu_pin_obj_t pin_PI00;
|
|
extern const mcu_pin_obj_t pin_PI01;
|
|
extern const mcu_pin_obj_t pin_PI02;
|
|
extern const mcu_pin_obj_t pin_PI03;
|
|
extern const mcu_pin_obj_t pin_PI04;
|
|
extern const mcu_pin_obj_t pin_PI05;
|
|
extern const mcu_pin_obj_t pin_PI06;
|
|
extern const mcu_pin_obj_t pin_PI07;
|
|
extern const mcu_pin_obj_t pin_PI08;
|
|
extern const mcu_pin_obj_t pin_PI09;
|
|
extern const mcu_pin_obj_t pin_PI10;
|
|
extern const mcu_pin_obj_t pin_PI11;
|
|
extern const mcu_pin_obj_t pin_PI12;
|
|
extern const mcu_pin_obj_t pin_PI13;
|
|
extern const mcu_pin_obj_t pin_PI14;
|
|
extern const mcu_pin_obj_t pin_PI15;
|
|
extern const mcu_pin_obj_t pin_PJ00;
|
|
extern const mcu_pin_obj_t pin_PJ01;
|
|
extern const mcu_pin_obj_t pin_PJ02;
|
|
extern const mcu_pin_obj_t pin_PJ03;
|
|
extern const mcu_pin_obj_t pin_PJ04;
|
|
extern const mcu_pin_obj_t pin_PJ05;
|
|
extern const mcu_pin_obj_t pin_PJ06;
|
|
extern const mcu_pin_obj_t pin_PJ07;
|
|
extern const mcu_pin_obj_t pin_PJ08;
|
|
extern const mcu_pin_obj_t pin_PJ09;
|
|
extern const mcu_pin_obj_t pin_PJ10;
|
|
extern const mcu_pin_obj_t pin_PJ11;
|
|
extern const mcu_pin_obj_t pin_PJ12;
|
|
extern const mcu_pin_obj_t pin_PJ13;
|
|
extern const mcu_pin_obj_t pin_PJ14;
|
|
extern const mcu_pin_obj_t pin_PJ15;
|
|
extern const mcu_pin_obj_t pin_PK00;
|
|
extern const mcu_pin_obj_t pin_PK01;
|
|
extern const mcu_pin_obj_t pin_PK02;
|
|
extern const mcu_pin_obj_t pin_PK03;
|
|
extern const mcu_pin_obj_t pin_PK04;
|
|
extern const mcu_pin_obj_t pin_PK05;
|
|
extern const mcu_pin_obj_t pin_PK06;
|
|
extern const mcu_pin_obj_t pin_PK07;
|
|
|
|
#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H
|