You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
506 B
C

#ifndef __BSP_H__
#define __BSP_H__
/* system clock tick [Hz] */
#define BSP_TICKS_PER_SEC 100U
void BSP_init(void);
/* get the current value of the clock tick counter (returns immedately) */
uint32_t BSP_tickCtr(void);
/* delay for a specified number of system clock ticks (polling) */
void BSP_delay(uint32_t ticks);
void BSP_ledRedOn(void);
void BSP_ledRedOff(void);
void BSP_ledBlueOn(void);
void BSP_ledBlueOff(void);
void BSP_ledGreenOn(void);
void BSP_ledGreenOff(void);
#endif // __BSP_H__