Ignore:
Timestamp:
Jan 13, 2011, 2:19:14 PM (9 years ago)
Author:
mulligan
Message:

Got Test.native to compile. Added functions for exporting intel hex format records to a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D4.1/IntelHex.ml

    r443 r444  
    33open Util;;
    44open Parser;;
     5open Printf;;
    56
    67exception WrongFormat of string
     
    235236    processed @ end_buffer
    236237;;
     238
     239let file_of_intel_hex path fmt =
     240  let str_fmt = string_of_intel_hex_format fmt in
     241  let channel = open_out path in
     242    fprintf channel "%s\n" str_fmt;
     243    close_out channel
     244;;
Note: See TracChangeset for help on using the changeset viewer.