mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
Initial port of Greaseweazle to AT32F415.
This commit is contained in:
@@ -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
2
inc/mcu/at32/f415.h
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
#include "../stm32/f1.h"
|
||||
4
inc/mcu/at32/f415_regs.h
Normal file
4
inc/mcu/at32/f415_regs.h
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "../stm32/f1_regs.h"
|
||||
|
||||
#define TIM_CR1_PMEN (1u<<10)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user