mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
440ad137b8
Implement `cc1101_file_ioctl` to map common NuttX wireless IOCTL commands to CC1101 hardware registers. This allows dynamic configuration of radio parameters from user-space applications. * Map `WLIOC_SETRADIOFREQ` and `GETRADIOFREQ` to `FREQ[2:0]`. * Map `WLIOC_SETADDR` and `GETADDR` to `ADDR`. * Map `WLIOC_SETTXPOWER` and `GETTXPOWER` to internal PATABLE indexing. * Map `WLIOC_SETMODU` and `GETMODU` to `MDMCFG2`. * Map `WLIOC_FSK_SETBITRATE` and `GETBITRATE` to `MDMCFG4` and `MDMCFG3`. * Map `WLIOC_FSK_SETFDEV` and `GETFDEV` to `DEVIATN`. * Normalize positive SPI status byte returns from `cc1101_access` to `OK` (0) to ensure POSIX compliance and prevent silently skipped register writes. Signed-off-by: Chip L. <chplee@gmail.com>