01 2013 档案

摘要:1 uint32_t calcCrc32(uint8_t* data, uint32_t len) 2 { 3 uint32_t* pBuffer = (uint32_t*) data; 4 uint32_t BufferLength = len/4; 5 uint32_t index... 阅读全文
posted @ 2013-01-09 22:19 IAmAProgrammer 编辑
摘要:1 // Reverse the bit order in a 32-bit word. 2 unsigned int rbit( 3 unsigned int i ) 4 { 5 i = ( ( i & 0x55555555 ) << 1 ) | ( ( i >> 1 ) & 0x55555555 ); 6 i = ( ( i & 0x33333333 ) << 2 ) | ( ( i >> 2 ) & 0x33333333 ); 7 i = ( ( i & 0x0f0f0f0f ) << 4 阅读全文
posted @ 2013-01-05 20:06 IAmAProgrammer 编辑
摘要:Project Options->Linker->Input->Raw binary image选择文件,填变量名,段名,对齐,如 symbol_0, .text, 4还要在Keep symbols中填上对应的变量名symbol_0然后就可以在 源文件 中使用此变量extern unsigned i... 阅读全文
posted @ 2013-01-02 11:31 IAmAProgrammer 编辑
摘要:1 /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 /*-Editor annotation file-*/ 3 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ 4 /*-Memory Regions-*/ 5 define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; 6 define symbol __ICFEDIT_region_ROM_en 阅读全文
posted @ 2013-01-01 14:06 IAmAProgrammer 编辑

点击右上角即可分享
微信分享提示