Pão de Queijo Development Board. This repo has all libraries from pqdb shield.
Pão de Queijo development board is a shield for add-on on any arduino compatible board.
This project presents the libraries to control the board peripherals using mbed framework. The libraries works as interfaces to keep the main code compatible with the examples from the book "Programação de sistemas embarcados". The peripherals on the board are presented on the folowing picture
The main objective of the project is to develop a low cost, easy to assemble board with a group of peripheral that allows one to start learning embedded systems. The board was routed on one side copper PCB to make easier to buid it yourself.
The source code for Arduino boards (wiring) can be found on: https://github.com/projetopqdb/PQDB-Arduino
The source code for freedom frdm KL05 board (using direct register access) can be found on: https://github.com/projetopqdb/PQDB-KL05Z
The source code from the board schematics and layout can be found on: https://github.com/projetopqdb/PQDB-Hardware
kernel.h@6:3fb450ba1e95, 2017-10-03 (annotated)
- Committer:
- rmaalmeida
- Date:
- Tue Oct 03 01:27:24 2017 +0000
- Revision:
- 6:3fb450ba1e95
- Parent:
- 4:357a34c10ef2
timer driver added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rmaalmeida | 4:357a34c10ef2 | 1 | #ifndef KERNEL_H_ |
rmaalmeida | 4:357a34c10ef2 | 2 | #define KERNEL_H_ |
rmaalmeida | 4:357a34c10ef2 | 3 | |
rmaalmeida | 4:357a34c10ef2 | 4 | // c�digos de retorno |
rmaalmeida | 4:357a34c10ef2 | 5 | #define SUCCESS 0 |
rmaalmeida | 4:357a34c10ef2 | 6 | #define FAIL 1 |
rmaalmeida | 4:357a34c10ef2 | 7 | #define REPEAT 2 |
rmaalmeida | 4:357a34c10ef2 | 8 | #define POOL_SIZE 10 |
rmaalmeida | 4:357a34c10ef2 | 9 | |
rmaalmeida | 4:357a34c10ef2 | 10 | // declara��o de ponteiro de fun��o |
rmaalmeida | 4:357a34c10ef2 | 11 | typedef char(*ptrFunc)(void); |
rmaalmeida | 4:357a34c10ef2 | 12 | |
rmaalmeida | 4:357a34c10ef2 | 13 | typedef struct { |
rmaalmeida | 4:357a34c10ef2 | 14 | ptrFunc function; |
rmaalmeida | 4:357a34c10ef2 | 15 | int period; |
rmaalmeida | 4:357a34c10ef2 | 16 | //must be volatile to avoid optmizations on kernel waiting |
rmaalmeida | 4:357a34c10ef2 | 17 | volatile int deadline; |
rmaalmeida | 4:357a34c10ef2 | 18 | } process; |
rmaalmeida | 4:357a34c10ef2 | 19 | |
rmaalmeida | 4:357a34c10ef2 | 20 | // prot�tipos das fun��es do kernel |
rmaalmeida | 4:357a34c10ef2 | 21 | void kernelInit(void); |
rmaalmeida | 4:357a34c10ef2 | 22 | char kernelAddProc(process* func); |
rmaalmeida | 4:357a34c10ef2 | 23 | void kernelLoop(void);// declara��o de ponteiro de fun��o |
rmaalmeida | 4:357a34c10ef2 | 24 | void kernelTick(void); |
rmaalmeida | 4:357a34c10ef2 | 25 | |
rmaalmeida | 4:357a34c10ef2 | 26 | #endif |