| ??? 02/01/06 14:45 Read: times |
#108893 - No, that's wrong Responding to: ???'s previous message |
Oliver Sedlacek said:
#define timers (dual_timers *)0x03FF6000This defines a pointer to a variable of type dual_timer No, that's wrong. This casts the hex numeric literal to a pointer to the type "dual_timer" "dual_timer" probably defines a structure that models the registers of some memory-mapped peripheral. |
| Topic | Author | Date |
| Question about pointers with C | 01/01/70 00:00 | |
| Eh??? | 01/01/70 00:00 | |
| Compiler | 01/01/70 00:00 | |
| is that the Keil compiler you are using? | 01/01/70 00:00 | |
| Keil compiler | 01/01/70 00:00 | |
| keil has '51, '251, '16x, ARM which? | 01/01/70 00:00 | |
| A51 | 01/01/70 00:00 | |
| You mean C51 ? | 01/01/70 00:00 | |
| then what is this addressing? | 01/01/70 00:00 | |
| Addressing a RAM chip | 01/01/70 00:00 | |
| Addressing a RAM chip | 01/01/70 00:00 | |
| ah banking | 01/01/70 00:00 | |
| 80c51 Addressing | 01/01/70 00:00 | |
| Pedantic | 01/01/70 00:00 | |
| ridiculous | 01/01/70 00:00 | |
because | 01/01/70 00:00 | |
| Dereference | 01/01/70 00:00 | |
| Pointer hints | 01/01/70 00:00 | |
| No, that's wrong | 01/01/70 00:00 | |
| struct modelling memory-mapped IO | 01/01/70 00:00 | |
| I think it is time to stop replies to | 01/01/70 00:00 | |
| More pedantically | 01/01/70 00:00 | |
| Pointer hints | 01/01/70 00:00 | |
| start small | 01/01/70 00:00 |



