Tool/software: TI C/C++ Compiler
Section 6.9.1, "Boot Hook Functions for System Pre-Initialization," of the MSP430 Optimizing C/C++ Compiler User's Guide (SLAU132R), says that we have three boot hook functions available to us. Listed are the three functions. I have some questions about them.
- _system_pre_init()
- _system_post_cinit()
- _c_int00( )
When using the _system_post_cinit() function, does this function require a Return statement, and if so what are the values available to me? Also, are there any parameters, or should the parentheses contain void?
Can somebody provide me a code example for using the _c_int00( ) function? I just need something simple to understand the syntax. For example, like setting a bit in Field 0 of the Port 1 Direction Register (P1DIR |= BIT0;) for a GPIO module.