embedded-software
reusable software modules for embedded systems
|
#include "timing.h"
#include "uart.h"
#include "project_settings.h"
#include "stdint.h"
#include "laser_comms.h"
#include "stm32l4xx_hal.h"
#include "stm32l475e_iot01.h"
#include "stm32l4xx_hal_tim.h"
Typedefs | |
typedef void(* | functionptr )(uint8_t) |
Functions | |
void | ClearFlag (void) |
void | LaserComms_Init (uint8_t playerid, void(*hit)(uint8_t), uint32_t limit) |
void | LaserComms_Fire (void) |
void | LaserComms_HitFilter (uint8_t enemyPlayer) |
Variables | |
uint8_t | player_id = 0 |
uint8_t | min_limit = MIN_LIMIT |
uint8_t | invincible = 0 |
functionptr | hit_callback = 0 |
volatile unsigned int | i |
typedef void(* functionptr)(uint8_t) |
void ClearFlag | ( | void | ) |
void LaserComms_Fire | ( | void | ) |
void LaserComms_HitFilter | ( | uint8_t | enemyPlayer | ) |
void LaserComms_Init | ( | uint8_t | playerid, |
void(*)(uint8_t) | hit, | ||
uint32_t | limit | ||
) |
functionptr hit_callback = 0 |
volatile unsigned int i |
uint8_t invincible = 0 |
uint8_t min_limit = MIN_LIMIT |
uint8_t player_id = 0 |