sbit and bit type

Post your requests and ideas on the future development of mikroPascal PRO for PIC.
Post Reply
Author
Message
piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

sbit and bit type

#1 Post by piort » 08 Dec 2010 17:33

hi,
that will be nice if we will be able to use bit or sbit as procedure and function parameter... like :

Code: Select all

var
some_one : sbit at portb.0;
....

procedure show_out(pin_out : sbit);
begin
pin_out := 1;
end;

begin // main
while true do
begin
show_out(some_one);
end;
thx ;-)

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: sbit and bit type

#2 Post by zristic » 09 Dec 2010 11:25

Hmmm, pretty impossible for now, you are left to use them as globals.
Sorry.

piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

Re: sbit and bit type

#3 Post by piort » 09 Dec 2010 12:30

asking cost nothing ;-)

Post Reply

Return to “mikroPascal PRO for PIC Wish List”