-
Thread
ARM: kompliziert?
paar Eigenheiten der Controller einzustellen ist nun wirklich nicht so schwer. Immer noch besser als PSTR-Orgie beim avr.
-
Thread
AVR-Bootloader mit Verschlüsselung
[c] // in Firmware void uart_handlemsg(const char* msg) { ... if (0 == strcmp_P(msg, PSTR("<rest>")) { cli(); wdt_enable(WDTO_15MS); while (1) { } } ... } // in AVRootloader.asm BootSign: .db "<rest>" [/c]
-
Thread
LCD, HD44780 und KS0076
automatically storing string constant in program memory */ #define lcd_puts_P(__s) lcd_puts_p(PSTR(__s)) /*@}*/ #endif //LCD_H [/c] main.c [c]int main(void) { //Globale Interrupts einschalten sei(); /*-------------------------------------------------------------------------
-
Thread
atmega328 funktioniert teilweise nicht
automatically storing string constant in program memory */ #define lcd_puts_P(__s) lcd_puts_p(PSTR(__s)) /*@}*/ #endif //LCD_H [/c]
-
Thread
Asuros fahren nicht
data Pointer to string */ void SerPrint_p(const char *data); #define SerPrint_P(_str) SerPrint_p(PSTR(_str)) /**************** Print Funktionen Floting Point printf.c ********/ /*! * \~english * \brief Send a Float value converted to a string to UART * \param wert float value * \param vorkomma
-
Thread
Peter Fleury LCD Lib für AT90USB162?
automatically storing string constant in program memory */ #define lcd_puts_P(__s) lcd_puts_p(PSTR(__s)) /*@}*/ #endif //LCD_H [/c] und hier die lcd.c [c]/**************************************************************************** Title : HD44780U LCD library Author: Peter Fleury