include/nuttx.h: add common align definitions for nuttx

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
lipengfei28 2024-10-08 20:12:51 +08:00 committed by Xiang Xiao
parent 4ebf830bbd
commit 42041a428c
1 changed files with 2 additions and 9 deletions

View File

@ -22,24 +22,17 @@
* Included Files
****************************************************************************/
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <string.h>
#include <nuttx/lib/math32.h>
#include <nuttx/nuttx.h>
#include <nuttx/kmalloc.h>
#include <nuttx/pci/pci_epc.h>
#include <nuttx/pci/pci_epf.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef ALIGN_UP
# define ALIGN_UP(s, a) (((s) + (a) - 1) & ~((a) - 1))
#endif
/****************************************************************************
* Private Data
****************************************************************************/