This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i don't understand the syntax ((typedef *) address value)

hi Everybody,
i copy and paste a line of code bellow as an example:

"#define USB (( USB_TypeDef *) USB_BASE)"

( suppose #define USB_BASE 0x0C000 )

i don't understand the "(( USB_TypeDef *) USB_BASE)"?
why the *, the pointer operator, is placed with type inside parenthesis?

thanks,
Ras