Shell
There are a few things that need to be taken care of before u jump in and write your first program, u need to disable the interupts and if you want to write to the display you need to clear the screen. Here is a code sample for displaying onto the screen...
sys_intOff(); //disable ARM interrupts[Main:\%3c\%3c]
sys_slowOn(); //enter 'slow mode', 12MHz, to save battery power[Main:\%3c\%3c]
clear_screen(); //clear the screen
input = readdouble();
/* your code here*/
while(!keyb_isON()){ //loop until ON pressed
}
sys_slowOff();
sys_intOn();
Labels:
Add Comment