From: batt Date: Fri, 8 Jun 2007 14:25:43 +0000 (+0000) Subject: Merge from Kseries. X-Git-Tag: 1.0.0~440 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=79cad0453ea3f2f219d7652413136bb904e9bc53;p=bertos.git Merge from Kseries. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@801 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/mware/kfile.h b/mware/kfile.h index bbad769b..dbb6b13b 100755 --- a/mware/kfile.h +++ b/mware/kfile.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.7 2007/06/08 14:25:43 batt + *#* Merge from project_ks. + *#* *#* Revision 1.6 2006/07/19 12:56:28 bernie *#* Convert to new Doxygen style. *#* @@ -60,8 +63,8 @@ typedef struct _KFile SeekFunc_t seek; /* NOTE: these must _NOT_ be size_t on 16bit CPUs! */ - uint32_t SeekPos; - uint32_t Size; + uint32_t seek_pos; + uint32_t size; } KFile; #endif /* MWARE_KFILE_H */ diff --git a/mware/pgm.h b/mware/pgm.h index 5f10d002..f0dc05a4 100755 --- a/mware/pgm.h +++ b/mware/pgm.h @@ -41,26 +41,6 @@ ); \ __result; \ }) - #if 0 // 128/103 - #define pgm_read_uint16_t(addr) \ - ({ \ - uint32_t __addr32 = (uint32_t)(addr); \ - uint16_t __result; \ - __asm__ \ - ( \ - "out %2, %C1" "\n\t" \ - "movw r30, %1" "\n\t" \ - "elpm %A0, Z+" "\n\t" \ - "elpm %B0, Z" "\n\t" \ - : "=r" (__result) \ - : "r" (__addr32), \ - "I" (_SFR_IO_ADDR(RAMPZ)) \ - : "r30", "r31" \ - ); \ - __result; \ - }) - #endif - #define pgm_read_uint16_t(addr) \ ({ \ uint16_t __addr16 = (uint16_t)(addr); \ @@ -92,32 +72,6 @@ ); \ __result; \ }) - #if 0 // 128/103 - #define pgm_read_uint16_t(addr) \ - ({ \ - uint32_t __addr32 = (uint32_t)(addr); \ - uint16_t __result; \ - __asm__ \ - ( \ - "out %2, %C1" "\n\t" \ - "mov r31, %B1" "\n\t" \ - "mov r30, %A1" "\n\t" \ - "elpm" "\n\t" \ - "mov %A0, r0" "\n\t" \ - "in r0, %2" "\n\t" \ - "adiw r30, 1" "\n\t" \ - "adc r0, __zero_reg__" "\n\t" \ - "out %2, r0" "\n\t" \ - "elpm" "\n\t" \ - "mov %B0, r0" "\n\t" \ - : "=r" (__result) \ - : "r" (__addr32), \ - "I" (_SFR_IO_ADDR(RAMPZ)) \ - : "r0", "r30", "r31" \ - ); \ - __result; \ - }) - #endif #define pgm_read_uint16_t(addr) \ ({ \ uint16_t __addr16 = (uint16_t)(addr); \