Revision history for NutOS


Revision [15686]

Last edited on 2013-03-12 21:18:27 by ToBo
Additions:
==a==Netzwerk==a==
UDP
http://www.ethernut.de/nutwiki/Basic_UDP_Server


Revision [15589]

Edited on 2013-03-09 21:04:13 by ToBo
Additions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack. NutOS verwende ich auf dem [[WebCAT WebCAT-Board]] für das [[RapidAccessTerminal Rapid Access Terminal]].
Deletions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack. NutOS verwende ich auf dem [[WebCAT WebCAT-Board]] für das System [[RapidAccessTerminal]].


Revision [15588]

Edited on 2013-03-09 21:03:48 by ToBo
Additions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack. NutOS verwende ich auf dem [[WebCAT WebCAT-Board]] für das System [[RapidAccessTerminal]].
Deletions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack. NutOS verwende ich auf meiner [[WebCAT WebCAT-Board]] für das System [[RapidAccessTerminal]].


Revision [15587]

Edited on 2013-03-09 21:03:13 by ToBo
Additions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack. NutOS verwende ich auf meiner [[WebCAT WebCAT-Board]] für das System [[RapidAccessTerminal]].
Deletions:
""NutOS"" is an intentionally simple RTOS for the [[AtmelAvr ATmega128]], which provides a minimum of services to run Nut/Net, the TCP/IP stack.


Revision [15584]

Edited on 2013-03-09 17:43:56 by ToBo
Additions:
==a==Thread-Priorität==a==
- 255 to kill the thread
- 0 specifies the highest priority
- The idle thread is running at level 254 (lowest priority)
- Application threads should use levels from 32 to 253
- Standard für einen neuen Thread ohne Angabe der Priorität ist 64
Quelle: http://www.ethernut.de/api/group__xg_thread.html
==a==Thread anlegen==a==
Der Thread wird definiert durch das Schlüsselwort THREAD. Man definiert gleich am Anfang eines Threads die Thread-Priorität.
#include <sys/thread.h>
THREAD(taskLed, arg)
NutThreadSetPriority(63);
LED_TOGGLE;
Der Start des Thread erfolgt durch den folgenden Code
NutThreadCreate("LED", taskLed, 0, 640);
==a==Sleep-Funktionen==a==
Mit NutSleep() gibt der Thread die gibt man den anderen Threads
void NutMicroDelay (uint32_t us)
Loop for a specified number of microseconds.
void NutDelay (uint8_t ms)
Loop for a specified number of milliseconds.
==a==Timer==a==
Zyklisch eine Funktion aufrufen
NUTTIMERINFO * NutTimerCreate (uint32_t ticks, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
Create a new system timer.
HANDLE NutTimerStartTicks (uint32_t ticks, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
Start a system timer.
HANDLE NutTimerStart (uint32_t ms, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
Start a system timer.
==a==Zeit-Funktionen==a==
Sehr nützlich sind auch die Zeit-Funktionen
uint32_t NutGetTickCount (void)
Return the number of system timer ticks.
uint32_t NutGetSeconds (void)
Return the seconds counter value.
uint32_t NutGetMillis (void)
Return the milliseconds counter value.
==a==Timer==a==
Deletions:
/**
* Thread Task 1
*/
THREAD(task1, arg)
u_int16 i = 0;
i++;
// konsole_printf("Test Nr. %d \n", i);
u_int8 stat = 0;
/**
* Thread Task 2
*/
THREAD(task2, arg)
NutSleep(3000);
//konsole_puts("Das Herzstück ist der Mikrocontroller ATmega128 getaktet mit 14.7456 Mhz, einem internen Speicher von 4 kByte RAM und einer externen Speichererweiterung von 28 kB SRAM.");


Revision [5572]

The oldest known version of this page was created on 2008-10-06 01:11:08 by ToBo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki