manualy generated blinky opcodes

This commit is contained in:
e.gavrin
2014-07-03 16:23:25 +04:00
parent 1c4873f4b6
commit 3fde3400f4
33 changed files with 186 additions and 102 deletions
+17
View File
@@ -13,4 +13,21 @@
* limitations under the License.
*/
#include <stdio.h>
#include "actuators.h"
void led_toggle(int led_id)
{
printf("led_toogle: %d", led_id);
}
void led_on(int led_id)
{
printf("led_on: %d", led_id);
}
void led_off(int led_id)
{
printf("led_off: %d", led_id);
}
+9 -7
View File
@@ -13,16 +13,18 @@
* limitations under the License.
*/
/*
* File: actuators.h
* Author: egavrin
*
* Created on July 2, 2014, 2:06 PM
*/
#ifndef ACTUATORS_H
#define ACTUATORS_H
// STM32 F4
#define LED_GREEN 12
#define LED_ORANGE 13
#define LED_RED 14
#define LED_BLUE 15
void led_toggle(int);
void led_on(int);
void led_off(int);
#endif /* ACTUATORS_H */
-7
View File
@@ -13,13 +13,6 @@
* limitations under the License.
*/
/*
* File: common-io.h
* Author: egavrin
*
* Created on July 2, 2014, 2:14 PM
*/
#ifndef COMMON_IO_H
#define COMMON_IO_H
-7
View File
@@ -13,13 +13,6 @@
* limitations under the License.
*/
/*
* File: sensors.h
* Author: egavrin
*
* Created on July 2, 2014, 2:05 PM
*/
#ifndef SENSORS_H
#define SENSORS_H