nuttx/wireless/ieee802154
chao an 6ee9ec7656 build: add initial cmake build system
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)

------------------

How to test

From within nuttx/. Configure:

cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja

(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja

This uses ninja generator (install with sudo apt install ninja-build). To build:

$ cmake --build build

menuconfig:

$ cmake --build build -t menuconfig

--------------------------

2. cmake/build: reformat the cmake style by cmake-format

https://github.com/cheshirekow/cmake_format

$ pip install cmakelang

$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done

Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
ieee802154_primitive.c
Kconfig Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_assoc.c mm/iob: iob members are initialized after allocate 2022-12-16 09:51:53 +08:00
mac802154_assoc.h
mac802154_bind.c
mac802154_data.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_data.h
mac802154_device.c fs: Add g_ prefix for all global file_operations instances 2023-04-24 16:13:29 +02:00
mac802154_disassoc.c
mac802154_get_mhrlen.c
mac802154_getset.c
mac802154_gts.c
mac802154_internal.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_ioctl.c
mac802154_loopback.c net: Remove devif_timer from comment 2022-06-07 20:15:41 +03:00
mac802154_netdev.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
mac802154_orphan.c
mac802154_poll.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_poll.h
mac802154_purge.c
mac802154_reset.c
mac802154_rxenable.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_scan.c wireless/ieee802154: mac lock should in pairs 2022-11-03 14:43:12 +01:00
mac802154_scan.h
mac802154_start.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mac802154_sync.c
mac802154.c wireless/ieee802154: add missinf FAR 2023-05-19 02:40:38 +08:00
mac802154.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
Make.defs tools: replace INCDIR to Makefile variable 2022-11-03 19:59:55 +08:00
README.txt

This will eventually hold some general documentation for the IEEE 802.15.4
MAC implementation.

NOTE: Throughout the code, excerpts from the standard are quoted as to make
the code thoroughly readable. I have tried, to always put a reference [1] and
page number.  Below is the references that correspond with the reference number

[1]