mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Preparation for using instruction cache on F7
This commit is contained in:
parent
a0f6d10b72
commit
12640972a9
13 changed files with 59 additions and 31 deletions
|
@ -236,6 +236,14 @@ void spiPreInit(void)
|
|||
|
||||
void init(void)
|
||||
{
|
||||
#ifdef USE_ITCM_RAM
|
||||
/* Load functions into ITCM RAM */
|
||||
extern unsigned char tcm_code_start;
|
||||
extern unsigned char tcm_code_end;
|
||||
extern unsigned char tcm_code;
|
||||
memcpy(&tcm_code_start, &tcm_code, (int)(&tcm_code_end - &tcm_code_start));
|
||||
#endif
|
||||
|
||||
#ifdef USE_HAL_DRIVER
|
||||
HAL_Init();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue