Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tools-mirror
Micropython
提交
d7399679
M
Micropython
项目概览
tools-mirror
/
Micropython
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Micropython
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d7399679
编写于
5月 14, 2020
作者:
T
Thomas Roberts
提交者:
Damien George
5月 15, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
stm32: Add support for F412 MCUs.
上级
8f3167a9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
154 addition
and
6 deletion
+154
-6
ports/stm32/adc.c
ports/stm32/adc.c
+4
-4
ports/stm32/boards/stm32f412_af.csv
ports/stm32/boards/stm32f412_af.csv
+116
-0
ports/stm32/boards/stm32f412zx.ld
ports/stm32/boards/stm32f412zx.ld
+28
-0
ports/stm32/flashbdev.c
ports/stm32/flashbdev.c
+1
-1
ports/stm32/modmachine.c
ports/stm32/modmachine.c
+1
-1
ports/stm32/timer.c
ports/stm32/timer.c
+4
-0
未找到文件。
ports/stm32/adc.c
浏览文件 @
d7399679
...
...
@@ -132,10 +132,10 @@
defined(STM32F407xx) || defined(STM32F417xx) || \
defined(STM32F401xC) || defined(STM32F401xE)
#define VBAT_DIV (2)
#elif defined(STM32F411xE) || defined(STM32F41
3x
x) || \
defined(STM32F4
27xx) || defined(STM32F429
xx) || \
defined(STM32F4
37xx) || defined(STM32F439
xx) || \
defined(STM32F446xx)
#elif defined(STM32F411xE) || defined(STM32F41
2Z
x) || \
defined(STM32F4
13xx) || defined(STM32F427
xx) || \
defined(STM32F4
29xx) || defined(STM32F437
xx) || \
defined(STM32F4
39xx) || defined(STM32F4
46xx)
#define VBAT_DIV (4)
#elif defined(STM32F722xx) || defined(STM32F723xx) || \
defined(STM32F732xx) || defined(STM32F733xx) || \
...
...
ports/stm32/boards/stm32f412_af.csv
0 → 100644
浏览文件 @
d7399679
Port,,AF0,AF1,AF2,AF3,AF4,AF5,AF6,AF7,AF8,AF9,AF10,AF11,AF12,AF13,AF14,AF15,
,,SYS_AF,TIM1/TIM2,TIM3/TIM4/TIM5,TIM8/9/10/11,I2C1/2/3/I2CFMP1,SPI1/2/3/4/I2S1/2/3/4,SPI2/3/4/5/I2S2/3/4/5/DFSDM1/2,SPI3/I2S3/USART1/2/3,USART3/6/CAN1/DFSDM1,I2C2/I2C3/I2CFMP1/CAN1/2/TIM12/13/14/QUADSPI,DFSDM1/QUADSPI/FSMC/OTG1_FS,,FSMC /SDIO,,,SYS_AF,ADC
PortA,PA0,,TIM2_CH1/TIM2_ETR,TIM5_CH1,TIM8_ETR,,,,USART2_CTS,,,,,,,,EVENTOUT,ADC1_IN0
PortA,PA1,,TIM2_CH2,TIM5_CH2,,,SPI4_MOSI/I2S4_SD,,USART2_RTS,,QUADSPI_BK1_IO3,,,,,,EVENTOUT,ADC1_IN1
PortA,PA2,,TIM2_CH3,TIM5_CH3,TIM9_CH1,,I2S2_CKIN,,USART2_TX,,,,,FSMC_D4,,,EVENTOUT,ADC1_IN2
PortA,PA3,,TIM2_CH4,TIM5_CH4,TIM9_CH2,,I2S2_MCK,,USART2_RX,,,,,FSMC_D5,,,EVENTOUT,ADC1_IN3
PortA,PA4,,,,,,SPI1_NSS/I2S1_WS,SPI3_NSS/I2S3_WS,USART2_CK,DFSDM1_DATIN1,,,,FSMC_D6,,,EVENTOUT,ADC1_IN4
PortA,PA5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TOUT,
PortG,PG12,,,,,,,,,USART6_RTS,CAN2_TX,,,FSMC_NE4,,,EVENTOUT,
PortG,PG13,TRACED2,,,,,,,,USART6_CTS,,,,FSMC_A24,,,EVENTOUT,
PortG,PG14,TRACED3,,,,,,,,USART6_TX,QUADSPI_BK2_IO3,,,FSMC_A25,,,EVENTOUT,
PortG,PG15,,,,,,,,,USART6_CTS,,,,,,,EVENTOUT,
PortH,PH0,,,,,,,,,,,,,,,,EVENTOUT,
PortH,PH1,,,,,,,,,,,,,,,,EVENTOUT,
ports/stm32/boards/stm32f412zx.ld
0 → 100644
浏览文件 @
d7399679
/*
GNU linker script for STM32F412zx (1MB flash, 256kB RAM)
*/
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* entire flash */
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 112K /* sectors 1,2,3 are 16K, 4 is 64K */
FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 896K /* sectors 5,6,7,8,9,10,11 are 128K */
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 256K
}
/* produce a link error if there is not this amount of RAM for these sections */
_minimum_stack_size = 2K;
_minimum_heap_size = 16K;
/* Define the stack. The stack is full descending so begins just above last byte
of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
_estack = ORIGIN(RAM) + LENGTH(RAM) - _estack_reserve;
_sstack = _estack - 16K; /* tunable */
/* RAM extents for the garbage collector */
_ram_start = ORIGIN(RAM);
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
_heap_start = _ebss; /* heap starts just after statically allocated memory */
_heap_end = _sstack;
ports/stm32/flashbdev.c
浏览文件 @
d7399679
...
...
@@ -53,7 +53,7 @@
#define FLASH_MEM_SEG2_NUM_BLOCKS (128) // sector 11: 128k
#endif
#elif defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx)
#elif defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F4
12Zx) || defined(STM32F4
46xx)
STATIC
byte
flash_cache_mem
[
0x4000
]
__attribute__
((
aligned
(
4
)));
// 16k
#define CACHE_MEM_START_ADDR (&flash_cache_mem[0])
...
...
ports/stm32/modmachine.c
浏览文件 @
d7399679
...
...
@@ -124,7 +124,7 @@ void machine_init(void) {
if
(
state
&
RCC_SR_IWDGRSTF
||
state
&
RCC_SR_WWDGRSTF
)
{
reset_cause
=
PYB_RESET_WDT
;
}
else
if
(
state
&
RCC_SR_PORRSTF
#if !defined(STM32F0)
#if !defined(STM32F0)
&& !defined(STM32F412Zx)
||
state
&
RCC_SR_BORRSTF
#endif
)
{
...
...
ports/stm32/timer.c
浏览文件 @
d7399679
...
...
@@ -820,8 +820,12 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY
(
5
,
TIM5_IRQn
),
#endif
#if defined(TIM6)
#if defined(STM32F412Zx)
TIM_ENTRY
(
6
,
TIM6_IRQn
),
#else
TIM_ENTRY
(
6
,
TIM6_DAC_IRQn
),
#endif
#endif
#if defined(TIM7)
TIM_ENTRY
(
7
,
TIM7_IRQn
),
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录