The Second Version
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -152,34 +152,18 @@
|
||||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>52</LineNumber>
|
||||
<LineNumber>180</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134274254</Address>
|
||||
<Address>134278658</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>D:\Desktop\瀹為獙41 FATFS瀹為獙\USER\main.c</Filename>
|
||||
<Filename>D:\Desktop\瀹為獙41 FATFS瀹為獙\MY\my.c</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\FATFS\main.c\52</Expression>
|
||||
</Bp>
|
||||
<Bp>
|
||||
<Number>1</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>47</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>134274230</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>1</BreakIfRCount>
|
||||
<Filename>D:\Desktop\瀹為獙41 FATFS瀹為獙\USER\main.c</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression>\\FATFS\main.c\47</Expression>
|
||||
<Expression>\\FATFS\../MY/my.c\180</Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<WatchWindow1>
|
||||
@@ -233,17 +217,7 @@
|
||||
<Ww>
|
||||
<count>0</count>
|
||||
<WinNumber>2</WinNumber>
|
||||
<ItemText>\\FATFS\../MY/my.c\conv1_weight</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>1</count>
|
||||
<WinNumber>2</WinNumber>
|
||||
<ItemText>_model</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>2</count>
|
||||
<WinNumber>2</WinNumber>
|
||||
<ItemText>data</ItemText>
|
||||
<ItemText>_larr</ItemText>
|
||||
</Ww>
|
||||
</WatchWindow2>
|
||||
<Tracepoint>
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
<hadIRAM2>1</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>1</useUlib>
|
||||
<useUlib>0</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<nSecure>0</nSecure>
|
||||
|
||||
23
USER/main.c
23
USER/main.c
@@ -15,8 +15,6 @@
|
||||
#include "sdio_sdcard.h"
|
||||
#include "ftl.h"
|
||||
#include "my.h"
|
||||
#include "debug.h"
|
||||
#include "cnn.h"
|
||||
/************************************************
|
||||
ALIENTEK <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>STM32F429<32><39><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>41
|
||||
FATFSʵ<53><CAB5>-HAL<41>⺯<EFBFBD><E2BAAF><EFBFBD><EFBFBD>
|
||||
@@ -32,20 +30,20 @@
|
||||
int main(void)
|
||||
{
|
||||
u32 total,free;
|
||||
u8 t=0;
|
||||
|
||||
HAL_Init(); //<2F><>ʼ<EFBFBD><CABC>HAL<41><4C>
|
||||
Stm32_Clock_Init(360,25,2,8); //<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>,180Mhz
|
||||
delay_init(180); //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
||||
uart_init(9600); //<2F><>ʼ<EFBFBD><CABC>USART
|
||||
|
||||
|
||||
LED_Init(); //<2F><>ʼ<EFBFBD><CABC>LED
|
||||
KEY_Init(); //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
SDRAM_Init(); //SDRAM<41><4D>ʼ<EFBFBD><CABC>
|
||||
LCD_Init(); //LCD<43><44>ʼ<EFBFBD><CABC>
|
||||
my_mem_init(SRAMEX); //<2F><>ʼ<EFBFBD><CABC><EFBFBD>ⲿ<EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>
|
||||
|
||||
|
||||
model_init(); //ģ<>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>
|
||||
TIM3_Init(5000-1,9000-1); //<2F><>ʱ<EFBFBD><CAB1>3<EFBFBD><33>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ʱ<EFBFBD><CAB1>Ϊ90M<30><4D><EFBFBD><EFBFBD>Ƶϵ<C6B5><CFB5>Ϊ9000-1
|
||||
//////////////////////////////<2F><><EFBFBD>Թ<EFBFBD><D4B9><EFBFBD>usmart<72>ij<EFBFBD>ʼ<EFBFBD><CABC>/////////////////////////////////
|
||||
usmart_dev.init(90);
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -62,7 +60,7 @@ int main(void)
|
||||
FTL_Init();
|
||||
exfuns_init(); //Ϊfatfs<66><73><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>
|
||||
f_mount(fs[0],"0:",1); //<2F><><EFBFBD><EFBFBD>SD<53><44>
|
||||
fatbuf=(u8*)mymalloc(SRAMEX,512); //Ϊfatbuf<75><66><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>
|
||||
fatbuf=(u8*)mymalloc(SRAMIN,512); //Ϊfatbuf<75><66><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>
|
||||
LCD_Fill(30,150,240,150+16,WHITE); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
while(exf_getfree("0:",&total,&free)) //<2F>õ<EFBFBD>SD<53><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
@@ -78,11 +76,10 @@ int main(void)
|
||||
LCD_ShowString(30,190,200,16,16,"SD Free Size: MB");
|
||||
LCD_ShowNum(30+8*14,170,total>>10,5,16); //<2F><>ʾSD<53><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MB
|
||||
LCD_ShowNum(30+8*14,190,free>>10,5,16); //<2F><>ʾSD<53><44>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MB
|
||||
|
||||
model_write("all");
|
||||
delay_ms(10000);
|
||||
cnn_run();
|
||||
|
||||
while(1){}
|
||||
|
||||
while(1)
|
||||
{
|
||||
t++;
|
||||
delay_ms(200);
|
||||
LED0=!LED0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user