mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
use define to support Code in stm32f103
This commit is contained in:
parent
b513605bff
commit
4dba4e92e5
@ -725,6 +725,11 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\pikascript\pikascript-api\STM32_PWM-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaMath_Operator-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\pikascript\pikascript-api\PikaMath_Operator-api.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
@ -795,6 +800,16 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\pikascript\pikascript-lib\PikaStdDevice\PikaStdDevice_PWM.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaMath_Operator.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\pikascript\pikascript-lib\PikaMath\PikaMath_Operator.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>STM32_Code.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\pikascript\pikascript-lib\STM32\STM32_Code.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
|
@ -40,6 +40,7 @@ uint32_t GetPage(uint32_t Addr) {
|
||||
return (Addr - FLASH_BASE) / FLASH_PAGE_SIZE;
|
||||
}
|
||||
|
||||
#if (defined Code_ENABLE)
|
||||
void STM32_Code_flashHandler() {
|
||||
if (!codeHeap.ena){
|
||||
/* recive not activate */
|
||||
@ -135,3 +136,4 @@ void STM32_Code_flashHandler() {
|
||||
printf("\r\n");
|
||||
HAL_NVIC_SystemReset();
|
||||
}
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user