global definitions and methods
More...
Go to the source code of this file.
|
#define | LENGTH(x) (sizeof(x) / sizeof((x)[0])) |
|
|
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...
|
|
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.
#define LENGTH |
( |
|
x | ) |
(sizeof(x) / sizeof((x)[0])) |
get the length of an array
Definition at line 26 of file global.h.
char* b2s |
( |
uint32_t |
binary, |
|
|
uint8_t |
rjust |
|
) |
| |
get binary representation of a number
- Parameters
-
[in] | binary | number to represent in binary |
[in] | rjust | justify representation with leading zeros |
- Returns
- string with binary representation of the number
Definition at line 132 of file main.c.