Initial port of Greaseweazle to AT32F415.

This commit is contained in:
Keir Fraser
2021-04-19 15:07:35 +01:00
parent 2809d34c28
commit cfa91ce5f1
29 changed files with 634 additions and 108 deletions

View File

@@ -24,6 +24,9 @@
#elif MCU == STM32F7
#include "mcu/stm32/f7_regs.h"
#include "mcu/stm32/f7.h"
#elif MCU == AT32F415
#include "mcu/at32/f415_regs.h"
#include "mcu/at32/f415.h"
#endif
#include "intrinsics.h"

2
inc/mcu/at32/f415.h Normal file
View File

@@ -0,0 +1,2 @@
#include "../stm32/f1.h"

4
inc/mcu/at32/f415_regs.h Normal file
View File

@@ -0,0 +1,4 @@
#include "../stm32/f1_regs.h"
#define TIM_CR1_PMEN (1u<<10)

View File

@@ -60,6 +60,9 @@ static SER_ID ser_id = (uint32_t *)0x1ffff7e8;
/* No delay required after enabling a peripheral clock, before accessing it. */
#define peripheral_clock_delay() ((void)0)
/* No secondary RAM region */
#define section_ext_ram
/*
* Local variables:
* mode: C