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.
122 lines
4.4 KiB
C
122 lines
4.4 KiB
C
/*
|
|
* This file is part of the MicroPython project, http://micropython.org/
|
|
*
|
|
* The MIT License (MIT)
|
|
*
|
|
* Copyright (c) 2019 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_STM32F401XE_PINS_H
|
|
#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PINS_H
|
|
|
|
//Pins in datasheet order: DocID026289 Rev 7 page 38. LQFP100 only
|
|
//pg 38
|
|
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;
|
|
//pg 39
|
|
extern const mcu_pin_obj_t pin_PE06;
|
|
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_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;
|
|
//pg 40
|
|
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;
|
|
//pg 41
|
|
extern const mcu_pin_obj_t pin_PC04;
|
|
extern const mcu_pin_obj_t pin_PC05;
|
|
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_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;
|
|
//pg 42
|
|
extern const mcu_pin_obj_t pin_PB10;
|
|
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_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;
|
|
//pg 43
|
|
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_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_PA08;
|
|
extern const mcu_pin_obj_t pin_PA09;
|
|
//pg 44
|
|
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_PC10;
|
|
extern const mcu_pin_obj_t pin_PC11;
|
|
extern const mcu_pin_obj_t pin_PC12;
|
|
//pg 45
|
|
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_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;
|
|
//pg 46
|
|
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_PE00;
|
|
extern const mcu_pin_obj_t pin_PE01;
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PINS_H
|