Beispiel #1
0
int main(void)
{
 	int SYSm;

    /* Initialise MPU, I/O and SysTick */
    SCS_init();
    UART_init();
    SysTick_init();

    /* Finally change Thread mode to unprivileged
     * but continue using Main Stack Pointer */
    SYSm = __MRS_control();
    SYSm |= 1;
    __MSR_control(SYSm);

    /* Flush and refill pipline with unprivileged permissions */
    __ISB();

    printf("Cortex-M3 Example - Build 3\n");

    /* Loop forever */
    while( 1 )
    {
        Display_80((char*) ".");
    }
}
Beispiel #2
0
/*\/////////////////////////////////////////////////////////////////
//   
//  Description:
//
//     Initialization function for LC module.
//
//     Calls SCS initialization module.
//
//  Inputs:
//
//  Outputs:
//
//  Returns:
//     There are no return values defined for this function.
//
//  Globals:
//
//   Notes:         
//      All global variables are defined and described in 
//      crda_control_rda.h.  These will begin with CR_.  All file 
//      scope global variables are defined and described at the 
//      top of the file.
//
//////////////////////////////////////////////////////////////////\*/
void LC_init(){

   /* Initialize SCS module. */
   SCS_init( );

   /* Initialize flags. */
   Reconnect_wideband_line_after_failure = 0;
 
/* End of LC_init() */
}