diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-25 21:16:33 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-25 21:16:33 -0400 |
commit | 603d04992cbf6c02cfc16f06ffab7d014d817634 (patch) | |
tree | bb31f0fe50f322c44a6d637b55cc02583b5b08d2 /include/task.h | |
parent | 5c5c93db40c6412fb46a09383640db01b4c6db4e (diff) |
added licensing
Diffstat (limited to 'include/task.h')
-rw-r--r-- | include/task.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/include/task.h b/include/task.h index 6456bdc..555a470 100644 --- a/include/task.h +++ b/include/task.h @@ -1,6 +1,21 @@ /** * @file task.h * Provides multitasking functionality + * + * Copyright (C) 2018 Clyne Sullivan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. */ #ifndef TASK_H_ @@ -8,10 +23,13 @@ #include <stdint.h> +/** + * A structure to contain task data. + */ typedef struct { - void *next; - uint32_t *stack; - uint32_t *sp; + void *next; /**< pointer to the next task_t instance */ + uint32_t *stack; /**< pointer to the task's stack */ + uint32_t *sp; /**< pointer to the task's last sp register value */ } task_t; /** |