-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Program 資料夾改名為 Software
- Loading branch information
Hom
authored and
Hom
committed
Jan 20, 2014
1 parent
924c9ca
commit 8ca2278
Showing
850 changed files
with
1,783 additions
and
1,783 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
78 changes: 39 additions & 39 deletions
78
...lpha/Program_Algorithm/algorithm_bitmap.h → ...lpha/Program_Algorithm/algorithm_bitmap.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
/* #include "algorithm_bitmap.h" */ | ||
|
||
#ifndef __ALGORITHM_BITMAP_H | ||
#define __ALGORITHM_BITMAP_H | ||
|
||
#include "stm32f4xx.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
// BMP檔案 = 標頭 + 調色盤 + 影像資料 | ||
typedef struct { | ||
|
||
// Bitmap File Header | ||
u16 Identifier; // 固定為'BM' | ||
u32 FileSize; // 檔案大小 | ||
u32 Reserved; // 保留 | ||
u32 DataOffset; // 影像資料在檔案中的位置 | ||
|
||
// Bitmap Info Header | ||
u32 HeaderSize; // Bitmap Info Header長度, 0x28=Windows, 0x0C=OS/2 1.x, 0xF0=OS/2 2.x | ||
u32 Width; // 影像寬度 | ||
u32 Height; // 影像高度 | ||
u16 Planes; // 色彩平面數,固定為1 | ||
u16 BitsPerPixel; // 每點位元數, 1=(2色調色盤), 4=(16色調色盤), 8=(246色調色盤) | ||
// 16=(不一定使用調色盤), 24=(不使用調色盤), 32=(不一定使用調色盤) | ||
u32 Compression; // 壓縮方式, 0=不壓縮, 1=RLE8(256色), 2=RLE4(16色) | ||
u32 DataSize; // 影像資料大小 | ||
u32 H_Resolution; // 水平解析度(per meter) | ||
u32 V_Resolution; // 垂直解析度(per meter) | ||
u32 UsedColors; // 實際使用的顏色數, 0:Bit_Count決定 | ||
u32 ImportantColors; // 重要的色彩數目, 0:都重要 | ||
|
||
} BmpHeader; | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void BMP_ReadInfo( BmpHeader* BMP_Header, u8* ReadData ); | ||
void BMP_WriteInfo( BmpHeader* BMP_Header, u8* WriteData ); | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#endif | ||
/* #include "algorithm_bitmap.h" */ | ||
|
||
#ifndef __ALGORITHM_BITMAP_H | ||
#define __ALGORITHM_BITMAP_H | ||
|
||
#include "stm32f4xx.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
// BMP檔案 = 標頭 + 調色盤 + 影像資料 | ||
typedef struct { | ||
|
||
// Bitmap File Header | ||
u16 Identifier; // 固定為'BM' | ||
u32 FileSize; // 檔案大小 | ||
u32 Reserved; // 保留 | ||
u32 DataOffset; // 影像資料在檔案中的位置 | ||
|
||
// Bitmap Info Header | ||
u32 HeaderSize; // Bitmap Info Header長度, 0x28=Windows, 0x0C=OS/2 1.x, 0xF0=OS/2 2.x | ||
u32 Width; // 影像寬度 | ||
u32 Height; // 影像高度 | ||
u16 Planes; // 色彩平面數,固定為1 | ||
u16 BitsPerPixel; // 每點位元數, 1=(2色調色盤), 4=(16色調色盤), 8=(246色調色盤) | ||
// 16=(不一定使用調色盤), 24=(不使用調色盤), 32=(不一定使用調色盤) | ||
u32 Compression; // 壓縮方式, 0=不壓縮, 1=RLE8(256色), 2=RLE4(16色) | ||
u32 DataSize; // 影像資料大小 | ||
u32 H_Resolution; // 水平解析度(per meter) | ||
u32 V_Resolution; // 垂直解析度(per meter) | ||
u32 UsedColors; // 實際使用的顏色數, 0:Bit_Count決定 | ||
u32 ImportantColors; // 重要的色彩數目, 0:都重要 | ||
|
||
} BmpHeader; | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void BMP_ReadInfo( BmpHeader* BMP_Header, u8* ReadData ); | ||
void BMP_WriteInfo( BmpHeader* BMP_Header, u8* WriteData ); | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#endif |
32 changes: 16 additions & 16 deletions
32
...ha/Program_Algorithm/algorithm_mathUnit.c → ...ha/Program_Algorithm/algorithm_mathUnit.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
#include "algorithm_math.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : | ||
**功能 : | ||
**輸入 : | ||
**輸出 : | ||
**使用 : | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
|
||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
#include "algorithm_math.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : | ||
**功能 : | ||
**輸入 : | ||
**輸出 : | ||
**使用 : | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
|
||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ |
File renamed without changes.
220 changes: 110 additions & 110 deletions
220
... Pre-Alpha/Program_Dirver/stm32f4_delay.c → ... Pre-Alpha/Program_Dirver/stm32f4_delay.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,110 @@ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
#include "stm32f4_delay.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_nop | ||
**功能 : 延遲一個while時間 | ||
**輸入 : nCnt | ||
**輸出 : None | ||
**使用 : Delay_nop(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_nop( vu32 nCnt ) | ||
{ | ||
while(nCnt--) { | ||
} | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_1us | ||
**功能 : 延遲 1us | ||
**輸入 : nCnt_1us | ||
**輸出 : None | ||
**使用 : Delay_1us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_1us( vu32 nCnt_1us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_1us != 0; nCnt_1us--) | ||
for(nCnt = 45; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_10us | ||
**功能 : 延遲 10us | ||
**輸入 : nCnt_10us | ||
**輸出 : None | ||
**使用 : Delay_10us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_10us( vu32 nCnt_10us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_10us != 0; nCnt_10us--) | ||
for(nCnt = 556; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_100us | ||
**功能 : 延遲 100us | ||
**輸入 : nCnt_100us | ||
**輸出 : None | ||
**使用 : Delay_100us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_100us( vu32 nCnt_100us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_100us != 0; nCnt_100us--) | ||
for(nCnt = 5400; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_1ms | ||
**功能 : 延遲 1ms | ||
**輸入 : nCnt_1ms | ||
**輸出 : None | ||
**使用 : Delay_1ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_1ms( vu32 nCnt_1ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_1ms != 0; nCnt_1ms--) | ||
for(nCnt = 56580; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_10ms | ||
**功能 : 延遲 10ms | ||
**輸入 : nCnt_10ms | ||
**輸出 : None | ||
**使用 : Delay_10ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_10ms( vu32 nCnt_10ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_10ms != 0; nCnt_10ms--) | ||
for(nCnt = 559928; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_100ms | ||
**功能 : 延遲 100ms | ||
**輸入 : nCnt_100ms | ||
**輸出 : None | ||
**使用 : Delay_100ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_100ms( vu32 nCnt_100ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_100ms != 0; nCnt_100ms--) | ||
for(nCnt = 5655000; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
#include "stm32f4_delay.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_nop | ||
**功能 : 延遲一個while時間 | ||
**輸入 : nCnt | ||
**輸出 : None | ||
**使用 : Delay_nop(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_nop( vu32 nCnt ) | ||
{ | ||
while(nCnt--) { | ||
} | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_1us | ||
**功能 : 延遲 1us | ||
**輸入 : nCnt_1us | ||
**輸出 : None | ||
**使用 : Delay_1us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_1us( vu32 nCnt_1us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_1us != 0; nCnt_1us--) | ||
for(nCnt = 45; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_10us | ||
**功能 : 延遲 10us | ||
**輸入 : nCnt_10us | ||
**輸出 : None | ||
**使用 : Delay_10us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_10us( vu32 nCnt_10us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_10us != 0; nCnt_10us--) | ||
for(nCnt = 556; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_100us | ||
**功能 : 延遲 100us | ||
**輸入 : nCnt_100us | ||
**輸出 : None | ||
**使用 : Delay_100us(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_100us( vu32 nCnt_100us ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_100us != 0; nCnt_100us--) | ||
for(nCnt = 5400; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_1ms | ||
**功能 : 延遲 1ms | ||
**輸入 : nCnt_1ms | ||
**輸出 : None | ||
**使用 : Delay_1ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_1ms( vu32 nCnt_1ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_1ms != 0; nCnt_1ms--) | ||
for(nCnt = 56580; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_10ms | ||
**功能 : 延遲 10ms | ||
**輸入 : nCnt_10ms | ||
**輸出 : None | ||
**使用 : Delay_10ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_10ms( vu32 nCnt_10ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_10ms != 0; nCnt_10ms--) | ||
for(nCnt = 559928; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : Delay_100ms | ||
**功能 : 延遲 100ms | ||
**輸入 : nCnt_100ms | ||
**輸出 : None | ||
**使用 : Delay_100ms(Times); | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
void Delay_100ms( vu32 nCnt_100ms ) | ||
{ | ||
u32 nCnt; | ||
for(; nCnt_100ms != 0; nCnt_100ms--) | ||
for(nCnt = 5655000; nCnt != 0; nCnt--); | ||
} | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 15 additions & 15 deletions
30
..._QCopterMV_USART/Program/stm32f4_system.c → ...Pre-Alpha/Program_Dirver/stm32f4_system.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : | ||
**功能 : | ||
**輸入 : | ||
**輸出 : | ||
**使用 : | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
|
||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
#include "stm32f4_system.h" | ||
/*=====================================================================================================*/ | ||
/*=====================================================================================================* | ||
**函數 : | ||
**功能 : | ||
**輸入 : | ||
**輸出 : | ||
**使用 : | ||
**=====================================================================================================*/ | ||
/*=====================================================================================================*/ | ||
|
||
/*=====================================================================================================*/ | ||
/*=====================================================================================================*/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.