摘要:
http://www.coactionos.com/embedded-design/133-effective-use-of-arm-cortex-m3-svcall.htmlThe ARM Cortex-M3 service call (SVCall) can be a tricky feature to integrate in to your system software. It is useful for two things:Allowing a piece of code to execute without interruptionJumping to privileged m 阅读全文
摘要:
unit uMultiInputBox;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls;type TFieldType = ( ftNumber, ftHexNumber, ftFloatNumber, ftText ); TInputRec = record Prompt : string; MaxLength : integer; FieldTy... 阅读全文
摘要:
http://blog.frankvh.com/2011/12/07/cortex-m3-m4-hard-fault-handler/If you’re seeing a Hard Fault exception on your Cortex M3 or Cortex M4 processor, t... 阅读全文
摘要:
This is the difference between a "procedure" and a "procedure of object"TheOnClickis defined as aTNotifyEvent:type TNotifyEvent = procedure(Sender: TObject) of object;You cannot assign a procedure to theOnClickas it is the wrong type. It needs to be a procedure of object.You can 阅读全文
摘要:
procedure MoveMemory(Destination: Pointer; Source: Pointer; Length: NativeUInt);begin Move(Source^, Destination^, Length);end;procedure CopyMemory(Destination: Pointer; Source: Pointer; Length: NativeUInt);begin Move(Source^, Destination^, Length);end;procedure FillMemory(Destination: Pointer; Len.. 阅读全文
摘要:
指针 : 指针是一个特殊的变量, 它里面存储的数值被解释成为内存里的一个地址.(1) 指针对应着一个数据在内存中的地址, 得到了指针就可以自由地修改该数据. (2) 一个指针变量仅仅是存储一个内存的地址, 为指针所指向的内容分配空间是程序员要干的工作. (3) 如果一个指针没有指向任何数据, 它的值是nil, 它就被称为是零( nil )指针或空(null) 指针. (4) 要访问一个指针所指向的内容, 在指针变量名字的后面跟上^运算符. 这种方法称为对指针取内容. (5) 指针的指针就是用来存放指针所在的内存地址的. 要搞清一个指针, 需要了解以下内容:(1) 指针的类型. (2) 指针所. 阅读全文
摘要:
fmOpenRead = $0000; fmOpenWrite = $0001; fmOpenReadWrite = $0002; fmExclusive = $0004; // when used with FileCreate, atomically creates the file only if it doesn't exist, fails otherwise fmShareCompat = $0000 platform; // DOS compatibility mode is not portable fmShareExclu... 阅读全文