Pão de Queijo Development Board. This repo has all libraries from pqdb shield.

Dependents:   pqdb_demo

Pão de Queijo development board is a shield for add-on on any arduino compatible board.

/media/uploads/rmaalmeida/compatibilidade_branco.png

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

/media/uploads/rmaalmeida/pqdb_perifericos.png

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.

/media/uploads/rmaalmeida/pqdb_fenolite_-_cortada.png

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

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?

UserRevisionLine numberNew 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