I know I can hack in there pullups, but this is not very nice on already produced boards.
Please post questions to the forums. PM's are for personal communication.
BCHS/3v0's PIC C18 Tutorials
Mondo Tech's Super Probe
Brian Schmalz's USB Bit Whacker
Yes:
http://nongnu.org/avr-libc/user-manu..._sections.htmlCode :#include <avr/io.h> void my_init_portb(void) __attribute__ ((naked)) __attribute__ ((section (".init0"))); void my_init_portb(void) { PORTB = 0xff; DDRB = 0xff; }
The "naked" attribute strips off all the function entry and exit code. The section(".init0") defines the memory location where the piece of code is placed.
Last edited by misterT; 12th April 2012 at 07:36 AM.
"I cannot prove it because it is too basic. Every mathematician knows that the simplest things are the hardest to prove."
thanks that is exactly what i was looking for![]()
| Tags |
| Similar Threads | ||||
| Thread | Starter | Forum | Replies | Last Post |
| need help modifying some pic ASM code | justDIY | Microcontrollers | 18 | 27th September 2008, 02:04 PM |
| Can some one help me to edit this CLOCK ASM ? | pasanlaksiri | Microcontrollers | 0 | 4th January 2008, 03:21 PM |
| what to look for in a multimeter before buying it. | pkshima | General Electronics Chat | 17 | 24th February 2004, 02:46 AM |
| Need help grounding some exposed metal. | RisingFire | Electronic Projects Design/Ideas/Reviews | 6 | 30th January 2003, 06:17 AM |
| Interresting project, need some help | eliasbo | Electronic Projects Design/Ideas/Reviews | 2 | 5th January 2003, 10:42 PM |