CuVoodoo STM32F1 firmware template
Functions | Variables
global.c File Reference

global definitions and methods (code) More...

Go to the source code of this file.

Functions

char * b2s (uint64_t binary, uint8_t rjust)
 get binary representation of a number More...
 
void led_on (void)
 switch on board LED
 
void led_off (void)
 switch off board LED
 
void led_toggle (void)
 toggle board LED
 
void board_setup (void)
 setup board peripherals
 

Variables

volatile bool button_flag = false
 flag set when board user button has been pressed/released
 

Detailed Description

global definitions and methods (code)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2016

Definition in file global.c.

Function Documentation

◆ b2s()

char* b2s ( uint64_t  binary,
uint8_t  rjust 
)

get binary representation of a number

Parameters
[in]binarynumber to represent in binary
[in]rjustjustify representation with leading zeros
Returns
string with binary representation of the number

Definition at line 36 of file global.c.