Menu

Commit [r212]  Maximize  Restore  History

Major changes on the R1 codeline that have been pending for a long time.

- Added a bunch of "how-to" examples based on flAVR
- Fixed up the GUI library and built-in control code, added a GUI example (using flAVR, again)
- Ported idle-function support to all current AVR targets
- Got rid of some old examples that were more confusing than helpful
- Moved profiling and sanity tests into the unit-test directory, and refactored to support the unit-test APIs
- unit-test APIs now moved out of the "middleware libraries" section, and now get built into the UT platform directly
- Added thread-state tracking to Thread object. APIs allow a user to see if threads are ready, blocked, stopped, or exit'd.
- Fixed a bunch of instrumentation code that breaks now that g_pstNext is volatile
- Changed stacks in UT code to K_WORD from K_UCHAR (portability issues)
- Fixed logic in semaphore/mutex/event-flag objects to determine when a Yield() is required.
- Previous implementation did not handle priority inheritence properly
- Fixed bug preventing round-robin scheduling from being applied to static threads (those created before the kernel starts)
- Fixed a bug in Thread::Exit() that could hang the kernel in a variety of circumstances
- Fixed a similar bug in Thread::Stop()
- Change to remove pending timer callbacks from threads when Thread::Stop() is called, which could cause trouble.
- Fixed a bug in Timers where erratic behavior could be observed due to the m_ulTimerTolerance flag not being initialized
- Fixed a bug in Round-Robin scheduling where unblocking multiple threads in a given priority level can result in the wrong thread being scheduled.
- New approach ensures that threads get added to the *tail* of the threadlist, not the *head*

Summary:
- Dynamic threading is much more reliable (Stop & Exit behavior)
- Round-robin scheduling is much more reliable
- Timers are more reliable
- Priority inheritence works correctly
- Idle function works on all supported AVRs.

m0slevin 2015-05-28

<< < 1 2 3 4 5 > >> (Page 4 of 5)
changed /branch/release/R1/embedded/services/gui/public/gui.h
removed /branch/release/R1/embedded/services/unit_test
removed /branch/release/R1/embedded/tests/sanity
changed /branch/release/R1/embedded/tests/unit/ut_eventflag/makefile
changed /branch/release/R1/embedded/tests/unit/ut_eventflag/ut_eventflag.cpp
changed /branch/release/R1/embedded/tests/unit/ut_heap/makefile
changed /branch/release/R1/embedded/tests/unit/ut_heap/ut_heap.cpp
changed /branch/release/R1/embedded/tests/unit/ut_logic/makefile
changed /branch/release/R1/embedded/tests/unit/ut_message/makefile
changed /branch/release/R1/embedded/tests/unit/ut_message/ut_message.cpp
changed /branch/release/R1/embedded/tests/unit/ut_mutex/makefile
changed /branch/release/R1/embedded/tests/unit/ut_mutex/ut_mutex.cpp
changed /branch/release/R1/embedded/tests/unit/ut_platform.cpp
changed /branch/release/R1/embedded/tests/unit/ut_platform.h
added /branch/release/R1/embedded/tests/unit/ut_sanity
added /branch/release/R1/embedded/tests/unit/ut_sanity/makefile
added /branch/release/R1/embedded/tests/unit/ut_sanity/obj
added /branch/release/R1/embedded/tests/unit/ut_sanity/obj/avr
added /branch/release/R1/embedded/tests/unit/ut_sanity/obj/avr/atmega328p
added /branch/release/R1/embedded/tests/unit/ut_sanity/obj/avr/atmega328p/gcc
added /branch/release/R1/embedded/tests/unit/ut_sanity/ut_sanity.cpp
added /branch/release/R1/embedded/tests/unit/ut_sanity/ut_sanity.sa
changed /branch/release/R1/embedded/tests/unit/ut_semaphore/makefile
changed /branch/release/R1/embedded/tests/unit/ut_semaphore/ut_semaphore.cpp
changed /branch/release/R1/embedded/tests/unit/ut_thread/makefile
/branch/release/R1/embedded/services/gui/public/gui.h Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_eventflag/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_eventflag/ut_eventflag.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_heap/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_heap/ut_heap.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_logic/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_message/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_message/ut_message.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_mutex/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_mutex/ut_mutex.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_platform.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_platform.h Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_sanity/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_sanity/ut_sanity.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_sanity/ut_sanity.sa Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_semaphore/makefile Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_semaphore/ut_semaphore.cpp Diff Switch to side-by-side view
Loading...
/branch/release/R1/embedded/tests/unit/ut_thread/makefile Diff Switch to side-by-side view
Loading...
<< < 1 2 3 4 5 > >> (Page 4 of 5)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.