FAQ:Compile

From GNU 68HC11/HC12
Revision as of 00:55, 16 January 2006 by Stephane.Carrez (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents


Programming

How can I use the 68HC11/68HC12 IO ports?

The 68HC11 and 68HC12 IO ports are mapped in memory. This means that you don't need any special instruction to read or write to them. GEL defines the IO ports as follows:

 extern volatile unsigned char _io_ports[];

This defines an external unsigned char array which is mapped at the IO port addresses (0x1000 for 68HC11).

How can I inline assembly in C?

How can I access to the BSS start symbol?

How can I put a function or global variable in my own section?

Should I use 'extern inline' or 'static inline' in C?

Optimizations

Personal tools