It's just cool....
try it:
# sudo aptitude install guake
# sudo aptitude install guake
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
Take an example of compiling a fresh configured buildroot, depends on the packages selected it takes hours/days to download the sources and compile:
EXAMPLE
$ nohup make buildroot &
Then the buildroot compilation will continue after you close your terminal/laptop.
gideon@gideon-desktop-i5:~$ xinput --list --short
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ RAPOO RAPOO 5G Wireless Device id=9 [slave pointer (2)]
⎜ ↳ MemsArt MA144 RF Controller id=11 [slave pointer (2)]
⎜ ↳ MemsArt MA144 RF Controller id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ RAPOO RAPOO 5G Wireless Device id=8 [slave keyboard (3)]
↳ MemsArt MA144 RF Controller id=10 [slave keyboard (3)]
↳ MemsArt MA144 RF Controller id=13 [slave keyboard (3)]
gideon@gideon-desktop-i5:~$ xinput --set-prop 9 "Device Accel Velocity Scaling" 1
gideon@gideon-desktop-i5:~$ xinput --set-prop 9 "Device Accel Constant Deceleration" 2
For your mouse, the last 2 commands you may need to play around with the numbers to find the optimum value.
char getchar(void) {
char c;
while (!RI_0)
;
RI_0 = 0;
c = SBUF0;
return c;
}
If you want to read a line input you can use gets():char line[100]; gets(line);
You get the same error for similar printf stdio.h functions (e.g. vprintf, sprintf, vsprintf, puts etc...)?ASlink-Warning-Undefined Global '_putchar' referenced by module 'hello' make: *** [hello] Error 1
#include <stdio.h>
#include "sdcc_reg420.h"
void delay(void)
{
unsigned int i, j;
for(j=0; j<12; j++)
{
for(i=0; i<3000; i++)
{
}
}
}
void serialInit()
{
TMOD = 0x21; // Timer 1: 8-bit autoreload from TH1
TH1 = 220; // 14400 baud rate
CKMOD = 0x38; // Use system clock for timer inputs
T2CON = 0x00; // Serial 0 runs off timer 1 overflow
TCON = 0x50; // Enable timers 0 and 1
SCON0 = 0x50; // Enable serial port 0
SBUF0 = ' ';
}
void putchar (char c) {
while (!TI_0) /* assumes UART is initialized */
;
TI_0 = 0;
SBUF0 = c;
}
void main(void)
{
serialInit(); // Initialize serial port 0
printf("\rHello World!!\n");
while(1)
{
P1 = 0x01;
delay();
P1 = 0x02;
delay();
P1 = 0x04;
delay();
P1 = 0x08;
delay();
}
}
Then it works! Download your firmware to the evKit and then you can see the "Hello World" displaying on your terminal! If nothing comes up then check if the LED are blinking. If LED are not blinking then the firmware is not running.. something is probably really wrong.
I set 14400 as baudrate because the evKit uses the same baudrate for the in-system programming. I just don't want the hassles of changing the baudrate of my terminal all the time.
If you need the register file sdcc_reg420.h of the above example code, you can get it in the following link:
$ git clone --mirror ssh://user@example.com/path/to/repoTo update the mirror from the original source:
$ git remote update
$ exec ssh-agent bashbut I still have the problem when I use ssh-add under Cygwin in Windows system.... couldn't find a solution :(