gnupic: Help! How do i 'include' a module in GPAL?


Previous by date: 24 Oct 2004 14:30:07 +0100 gpsim gui screen shot, Scott Dattalo
Next by date: 24 Oct 2004 14:30:07 +0100 Here's a simple working GPAL example, David McNab
Previous in thread:
Next in thread: 24 Oct 2004 14:30:07 +0100 Re: Help! How do i 'include' a module in GPAL?, Craig Franklin

Subject: Help! How do i 'include' a module in GPAL?
From: David McNab ####@####.####
Date: 24 Oct 2004 14:30:07 +0100
Message-Id: <417BAE55.9010401@rebirthing.co.nz>

Hi,

How do I import another module into a GPAL module?

For instance, the following 'hello world' program:

   module helloleds is

   pragma processor = "16f873a";

   procedure main is
     begin
        p16f873a.TRISB = 0x00;
        p16f873a.PORTB = 0xa5;
     end procedure;

   end module;

I've spent a couple of frustrating hours trying to figure out how to get 
this thing to compile. No mention in the docs of how to import needed 
modules and access their namespaces.

Please help

-- 
Cheers
David

Previous by date: 24 Oct 2004 14:30:07 +0100 gpsim gui screen shot, Scott Dattalo
Next by date: 24 Oct 2004 14:30:07 +0100 Here's a simple working GPAL example, David McNab
Previous in thread:
Next in thread: 24 Oct 2004 14:30:07 +0100 Re: Help! How do i 'include' a module in GPAL?, Craig Franklin


Powered by ezmlm-browse 0.20.