How to configure KEIL for tortoise SVN
How to do the autoincrement of revision control
If you are trying to embed revision number into your firmware, have a look at C:\Program Files\TortoiseSVN\bin\SubWCRev.exe