LED clock
 All Files Functions Variables Macros Groups Pages
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]))
 

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 (uint32_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.

Macro Definition Documentation

#define LENGTH (   x)    (sizeof(x) / sizeof((x)[0]))

get the length of an array

Definition at line 26 of file global.h.

Function Documentation

char* b2s ( uint32_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 132 of file main.c.