-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,250 changed files
with
9,682 additions
and
1,589,181 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file removed
BIN
-33.9 MB
Documentation/Material/CIAA-NXP y EDU-CIAA-NXP, sAPI y Firmata 01.cdr
Binary file not shown.
Binary file removed
BIN
-33.9 MB
Documentation/Material/Copia_de_seguridad_de_CIAA-NXP y EDU-CIAA-NXP, sAPI y Firmata 01.cdr
Binary file not shown.
778 changes: 0 additions & 778 deletions
778
Documentation/Material/sAPI_modules_an_dependencies.graphml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file removed
BIN
-566 KB
Documentation/sAPI_paper_case2017/sAPI Library - Version enviada a Easychar.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+1.26 MB
examples/sapi_edu-ciaa-nxp/adc_dac_01/EDU-CIAA-NXP Tiras de pines y Potenciómetro.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
86 changes: 86 additions & 0 deletions
86
...ples/sapi_edu-ciaa-nxp/cooperative_os_scheduler_02_seos_background_foreground/src/tasks.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* Copyright 2016, Eric Pernia. | ||
* All rights reserved. | ||
* | ||
* This file is part sAPI library for microcontrollers. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its | ||
* contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
/* Date: 2016-08-16 */ | ||
|
||
/*==================[inclusions]=============================================*/ | ||
|
||
#include "tasks.h" /* <= own header */ | ||
|
||
#include "sapi.h" /* <= sAPI header */ | ||
|
||
/*==================[macros and definitions]=================================*/ | ||
|
||
/*==================[internal data declaration]==============================*/ | ||
|
||
/*==================[internal functions declaration]=========================*/ | ||
|
||
/*==================[internal data definition]===============================*/ | ||
|
||
/*==================[external data definition]===============================*/ | ||
|
||
/*==================[internal functions definition]==========================*/ | ||
|
||
/*==================[external functions definition]==========================*/ | ||
|
||
/* ------------ INICIALIZACION DE TAREAS ------------ */ | ||
|
||
/* FUNCION que inicializa las tareas. */ | ||
void tasksInit(void){ | ||
/* Inicializar la placa */ | ||
boardConfig(); | ||
} | ||
|
||
/* --------------------- TAREAS --------------------- */ | ||
|
||
/* FUNCION que realiza la tarea 1. | ||
Esta tarea lee una tecla cada 40ms y escribe su valor | ||
en LEDG */ | ||
void task1(void){ | ||
gpioWrite( LEDG, !gpioRead(TEC1) ); | ||
} | ||
|
||
/* FUNCION que realiza la tarea 2. | ||
Esta tarea hace destellar el LED1 (blink) cada | ||
250ms. */ | ||
void task2(void){ | ||
gpioToggle( LED1 ); | ||
} | ||
|
||
/* FUNCION que realiza la tarea 3. | ||
Esta tarea hace destellar el LED2 (blink) cada | ||
500ms. */ | ||
void task3(void){ | ||
gpioToggle( LED2 ); | ||
} | ||
|
||
/*==================[end of file]============================================*/ |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* Copyright 2016, Eric Pernia. | ||
* All rights reserved. | ||
* | ||
* This file is part sAPI library for microcontrollers. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its | ||
* contributors may be used to endorse or promote products derived from this | ||
* software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
*/ | ||
|
||
/* | ||
* Date: 2016-04-26 | ||
*/ | ||
|
||
/*==================[inclusions]=============================================*/ | ||
|
||
#include "blinky.h" /* <= own header */ | ||
|
||
#include "sapi.h" /* <= sAPI header */ | ||
|
||
/*==================[macros and definitions]=================================*/ | ||
|
||
/*==================[internal data declaration]==============================*/ | ||
|
||
/*==================[internal functions declaration]=========================*/ | ||
|
||
/*==================[internal data definition]===============================*/ | ||
|
||
/*==================[external data definition]===============================*/ | ||
|
||
/*==================[internal functions definition]==========================*/ | ||
|
||
/*==================[external functions definition]==========================*/ | ||
|
||
/* FUNCION PRINCIPAL, PUNTO DE ENTRADA AL PROGRAMA LUEGO DE RESET. */ | ||
int main(void){ | ||
|
||
/* ------------- INICIALIZACIONES ------------- */ | ||
|
||
/* Inicializar la placa */ | ||
boardConfig(); | ||
|
||
/* ------------- REPETIR POR SIEMPRE ------------- */ | ||
while(1) { | ||
|
||
/* Prendo el led azul */ | ||
gpioWrite( LEDB, ON ); | ||
|
||
delay(500); | ||
|
||
/* Apago el led azul */ | ||
gpioWrite( LEDB, OFF ); | ||
|
||
delay(500); | ||
|
||
} | ||
|
||
/* NO DEBE LLEGAR NUNCA AQUI, debido a que a este programa no es llamado | ||
por ningun S.O. */ | ||
return 0 ; | ||
} | ||
|
||
/*==================[end of file]============================================*/ |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.