CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 8 matches
CCS Forum Index
Author Message
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 2:42 pm   Subject: Menus: linked lists, case/switch, function pointers?
How did you decide on this particular address to start with?It looked pretty Razz

It was near the start of program memory but allowed room for the ISR handler. I don't think it really mattered ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 2:40 pm   Subject: Menus: linked lists, case/switch, function pointers?
/*****************************************************************************
This is an example of how to create a const array of function
pointers and call them. It is a bit of a trick ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 2:29 pm   Subject: Menus: linked lists, case/switch, function pointers?

It just allows you to store them in ROM instead of wasting RAM

The other post is for another compiler which does allow pointers to constants which make things nice. It will not work for CCS

...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 2:11 pm   Subject: Menus: linked lists, case/switch, function pointers?
Did you come across this?

http://www.ccsinfo.com/forum/viewtopic.php?t=20416&start=15

I did indeed - and was wondering whether this was still valid or not - as it appears to be trying to ove ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 4:03 am   Subject: Re: Menus: linked lists, case/switch, function pointers?

Well, in the PC world it would be possible to add to the tree node a pointer to the function, which handles it. However, PIC doesn't support pointers to the functions like PC does. I think, there ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 3:26 am   Subject: Re: Menus: linked lists, case/switch, function pointers?

Well, in the PC world it would be possible to add to the tree node a pointer to the function, which handles it. However, PIC doesn't support pointers to the functions like PC does. I think, there ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 2:29 am   Subject: Re: Menus: linked lists, case/switch, function pointers?
Basically, I am trying to implement a menu system on an LCD - four button input, enter/escape/up/down. This is a hierarchical structure and nested menus are allowed such that from one parent menu, the ...
  Topic: Menus: linked lists, case/switch, function pointers?
kanemoto

Replies: 14
Views: 16965

PostForum: General CCS C Discussion   Posted: Mon Oct 17, 2005 1:00 am   Subject: Menus: linked lists, case/switch, function pointers?
Greetings All,

I have been digging around the forums all day and still can't come up with an answer to my obviously not-so-unique problem!

Basically, I am trying to implement a menu system on an ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group