LED clock
 All Files Functions Variables Macros Groups
Macros | Functions
global.h File Reference

global definitions and methods More...

Go to the source code of this file.

Macros

#define LENGTH(x)   (sizeof(x) / sizeof((x)[0]))
 get the length of an array
 

Functions

void led_on (void)
 switch on board LED
 
void led_off (void)
 switch off board LED
 
void led_toggle (void)
 toggle board LED
 
int _write (int file, char *ptr, int len)
 default printf output
 
char * b2s (uint64_t binary, uint8_t rjust)
 get binary representation of a number More...
 

Detailed Description

global definitions and methods

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

Definition in file global.h.

Function Documentation

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 146 of file main.c.