SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Macros | Functions
common.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
Include dependency graph for common.h:

Go to the source code of this file.

Macros

#define ARRAY_SIZE(array)   (sizeof(array) / sizeof((array)[0]))
 
#define ALIGN(size, align)   (((size) + (align) -1) & (~((align) -1)))
 
#define OF_ALIGN(size)   ALIGN(size, 4)
 
#define NULL   0
 
#define FALSE   0
 
#define TRUE   1
 

Functions

static uint32_t swap_uint32 (uint32_t data)
 
void abort (void)
 
int raise (int signum)
 
void show_banner (void)
 

Macro Definition Documentation

◆ ALIGN

#define ALIGN (   size,
  align 
)    (((size) + (align) -1) & (~((align) -1)))

◆ ARRAY_SIZE

#define ARRAY_SIZE (   array)    (sizeof(array) / sizeof((array)[0]))

◆ FALSE

#define FALSE   0

◆ NULL

#define NULL   0

◆ OF_ALIGN

#define OF_ALIGN (   size)    ALIGN(size, 4)

◆ TRUE

#define TRUE   1

Function Documentation

◆ abort()

void abort ( void  )

◆ raise()

int raise ( int  signum)

◆ show_banner()

void show_banner ( void  )

◆ swap_uint32()

static uint32_t swap_uint32 ( uint32_t  data)
inlinestatic