Thread: Top design- real time operating system

  1. #1
    Registered User
    Join Date
    Nov 2019
    Posts
    90

    Top design- real time operating system

    There are two approaches can use in software design and implementation:

    Top-down design
    Bottom-up design

    I want to follow Top-down approach to design RTOS

    For Example:

    Code:
    void main(void)
    {
       init();
       while (1)
       {
          getEvent();
          doEvent();
       } 
    }


    I want to breakdown project into many source files. which files and How many source files should I add into my project ? I will try to work on more detail when I decide source files in project

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Something as complicated as an operating system, even a tiny one, begins with pencil and paper.

    Not deciding on a list of filenames for source code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2019
    Posts
    90
    Quote Originally Posted by Salem View Post
    Something as complicated as an operating system, even a tiny one, begins with pencil and paper.

    Not deciding on a list of filenames for source code.
    sure I will start with paper and pencil but I don't have any idea how to start with top down approach. Can you help me

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Have you ever designed and written any program consisting of more than one file and taking longer than a week to complete from start to end?

    If you haven't, an RTOS is a tough choice.

    > Can you help me
    How To Ask Questions The Smart Way

    Start reading.
    top down approach in software engineering at DuckDuckGo
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Nov 2019
    Posts
    90
    Quote Originally Posted by Salem View Post
    Have you ever designed and written any program consisting of more than one file and taking longer than a week to complete from start to end?
    When I was beginner I was having trouble to write code for microcontroller but now I can write code for any peripheral of microcontroller. I can write code for whatever device is connected with microcontroller

    It's not necessary to use OS in any embedded system It's depend on the programmer choice What the way he want to control device with OS or without OS. I can do without OS. that's why I want to learn to do it with OS

    I want to make tiny OS to control devices connected with microcontroller

    OS control resources of hardware such timer, memory
    Application program run on OS
    Last edited by Player777; 09-05-2021 at 12:08 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 05-07-2012, 09:41 AM
  2. Replies: 0
    Last Post: 08-11-2011, 12:58 PM
  3. Could that/this make a real operating system?
    By azjherben in forum C++ Programming
    Replies: 13
    Last Post: 09-12-2009, 05:52 AM
  4. Operating System
    By Houssen in forum C Programming
    Replies: 18
    Last Post: 04-22-2008, 12:51 PM
  5. Operating System
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2002, 10:02 PM

Tags for this Thread