arch: arm: cxd56xx: nxstyle fixes

nxstyle fixes for cxd56xx

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2020-04-14 12:50:12 +02:00 committed by Abdelatif Guettouche
parent 6725a29b60
commit 222a3b9fe8
16 changed files with 329 additions and 336 deletions

View File

@ -37,8 +37,8 @@
#define __ARCH_ARM_INCLUDE_CXD56XX_ADC_H
/****************************************************************************
* include files
***************************************************************************/
* Included Files
****************************************************************************/
#include <stdint.h>
#include <stdbool.h>

View File

@ -1,4 +1,4 @@
/***************************************************************************
/****************************************************************************
* arch/arm/include/cxd56xx/audio.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
@ -48,17 +48,17 @@
* CXD5602 Audio SW Team
*/
/***************************************************************************
/****************************************************************************
* Included Files
***************************************************************************/
****************************************************************************/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
/***************************************************************************
/****************************************************************************
* Pre-processor Definitions
***************************************************************************/
****************************************************************************/
/* Mic channel max. */

View File

@ -38,7 +38,7 @@
/****************************************************************************
* Included Files
***************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@ -55,7 +55,7 @@ extern "C"
#endif
/****************************************************************************
* Public Functions
* Public Functions Prototypes
****************************************************************************/
/****************************************************************************

View File

@ -36,6 +36,10 @@
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_BATTERY_IOCTL_H
#define __ARCH_ARM_INCLUDE_CXD56XX_BATTERY_IOCTL_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/fs/ioctl.h>
/****************************************************************************

View File

@ -1,4 +1,4 @@
/*****************************************************************************
/****************************************************************************
* arch/arm/include/cxd56xx/chip.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation

View File

@ -40,8 +40,12 @@
* Public Types
****************************************************************************/
typedef void (*notify_callback_t)(uint8_t code, uint32_t size, uint32_t addr);
typedef void (*comp_callback_t)(uint8_t code, uint32_t size, uint32_t addr);
typedef void (*notify_callback_t)(uint8_t code,
uint32_t size,
uint32_t addr);
typedef void (*comp_callback_t)(uint8_t code,
uint32_t size,
uint32_t addr);
struct cisif_init_yuv_param_s
{

View File

@ -71,7 +71,7 @@
#define ARRAYSIZE(a) (sizeof((a))/sizeof(a[0]))
/* For Assert keep this much of the file name*/
/* For Assert keep this much of the file name */
#define MAX_FILE_PATH_LENGTH 40

View File

@ -192,7 +192,7 @@ struct cxd56_geofence_region_s
struct cxd56_geofence_mode_s
{
uint16_t deadzone; /* dead zone [meter] */
uint16_t deadzone; /* dead zone [meter] */
uint16_t dwell_detecttime; /* Dewlling period time [sec] */
};

View File

@ -45,7 +45,7 @@ extern "C"
#endif
/****************************************************************************
* include files
* Included Files
****************************************************************************/
#include <arch/chip/gnss_type.h>
@ -55,7 +55,9 @@ extern "C"
*
* param arg
* Start mode value of uint32_t. Not address pointer.
* One of #CXD56_GNSS_STMOD_COLD, #CXD56_GNSS_STMOD_WARM, #CXD56_GNSS_STMOD_HOT
* One of #CXD56_GNSS_STMOD_COLD,
* #CXD56_GNSS_STMOD_WARM,
* #CXD56_GNSS_STMOD_HOT
*/
#define CXD56_GNSS_IOCTL_START 1
@ -177,8 +179,8 @@ extern "C"
#define CXD56_GNSS_IOCTL_GET_TCXO_OFFSET 10
/* Set receiver time to GNSS.
* The UTC time standard is used for the receiver time stored in a argument of
* cxd56_gnss_datetime type.
* The UTC time standard is used for the receiver time stored in a argument
* of cxd56_gnss_datetime type.
* The receiver position, current time and TCXO offset value, ephemeris data
* are required in order to initiate a hot start.
* Set the time with this command before hot start if GPS time is not counted

View File

@ -53,7 +53,7 @@ extern "C"
#endif
/****************************************************************************
* include files
* Included Files
****************************************************************************/
#include <stdint.h>
@ -288,23 +288,24 @@ struct cxd56_gnss_receiver_s
uint32_t possource; /* [out] position source; 0:Invalid, 1:GNSS,
* 2:IMES, 3:user set, 4:previous
*/
int32_t tcxo_offset; /* [out] TCXO offset[Hz] */
struct cxd56_gnss_dop_s pos_dop; /* [out] DOPs of Position */
struct cxd56_gnss_dop_s vel_idx; /* [out] Weighted DOPs of Velocity */
struct cxd56_gnss_var_s pos_accuracy; /* [out] Accuracy of Position */
double latitude; /* [out] Latitude [degree] */
double longitude; /* [out] Longitude [degree] */
double altitude; /* [out] Altitude [m] */
double geoid; /* [out] Geoid height [m] */
float velocity; /* [out] Velocity [m/s] */
float direction; /* [out] Direction [degree] */
struct cxd56_gnss_date_s date; /* [out] Current day (UTC) */
struct cxd56_gnss_time_s time; /* [out] Current time (UTC) */
struct cxd56_gnss_date_s gpsdate; /* [out] Current day (GPS) */
struct cxd56_gnss_time_s gpstime; /* [out] Current time (GPS) */
struct cxd56_gnss_time_s receivetime; /* [out] Receive time (UTC) */
uint32_t priv; /* [out] For internal use */
CXD56_GNSS_PVT_RECEIVER_EXTRA_DATA; /* [out] Receiver extra data */
struct cxd56_gnss_dop_s pos_dop; /* [out] DOPs of Position */
struct cxd56_gnss_dop_s vel_idx; /* [out] Weighted DOPs of Velocity */
struct cxd56_gnss_var_s pos_accuracy; /* [out] Accuracy of Position */
double latitude; /* [out] Latitude [degree] */
double longitude; /* [out] Longitude [degree] */
double altitude; /* [out] Altitude [m] */
double geoid; /* [out] Geoid height [m] */
float velocity; /* [out] Velocity [m/s] */
float direction; /* [out] Direction [degree] */
struct cxd56_gnss_date_s date; /* [out] Current day (UTC) */
struct cxd56_gnss_time_s time; /* [out] Current time (UTC) */
struct cxd56_gnss_date_s gpsdate; /* [out] Current day (GPS) */
struct cxd56_gnss_time_s gpstime; /* [out] Current time (GPS) */
struct cxd56_gnss_time_s receivetime; /* [out] Receive time (UTC) */
uint32_t priv; /* [out] For internal use */
CXD56_GNSS_PVT_RECEIVER_EXTRA_DATA; /* [out] Receiver extra data */
};
/* GNSS satellite data */
@ -325,6 +326,7 @@ struct cxd56_gnss_sv_s
uint8_t elevation; /* [out] Elevation [degree] */
int16_t azimuth; /* [out] Azimuth [degree] */
float siglevel; /* [out] CN */
CXD56_GNSS_PVT_SV_EXTRA_DATA; /* [out] Sv extra data */
};
@ -332,10 +334,13 @@ struct cxd56_gnss_sv_s
struct cxd56_gnss_positiondata_s
{
uint64_t data_timestamp; /* [out] Timestamp */
uint32_t status; /* [out] Positioning data status 0 : Valid, <0: Invalid */
uint32_t svcount; /* [out] Sv data count */
struct cxd56_gnss_receiver_s receiver; /* [out] Receiver data */
uint64_t data_timestamp; /* [out] Timestamp */
uint32_t status; /* [out] Positioning data
* status 0 : Valid,
* <0 : Invalid
*/
uint32_t svcount; /* [out] Sv data count */
struct cxd56_gnss_receiver_s receiver; /* [out] Receiver data */
struct cxd56_gnss_sv_s sv[CXD56_GNSS_MAX_SV_NUM]; /* [out] Sv data array */
};
@ -442,6 +447,7 @@ struct cxd56_rtk_info_s
int8_t cdvalidity; /* [out] clock drift validity
* (0: invalid, 1: valid)
*/
uint8_t ppsstatus; /* [out] 1PPS synchronization status */
int8_t svcount; /* [out] Num of sv */
};
@ -534,37 +540,37 @@ struct cxd56_rtk_glonassephemeris_s
uint64_t timesnow; /* [out] system now times */
uint32_t valid; /* [out] valid */
uint8_t ppsstatus; /* [out] 1PPS synchronization status */
uint8_t slot; /* [out] slot 1...24 (It generates from svid. Usually same as me->n) */
int8_t ch; /* [out] ch -7...6 */
uint8_t p1; /* [out] The difference of t_b from the previous frame */
uint8_t tk_h; /* [out] Current frame first time (hours) */
uint8_t tk_m; /* [out] Current frame first time (minutes) */
uint8_t tk_s; /* [out] Current frame first time (seconds) */
double xv; /* [out] The velocity vector components of t_b */
float xa; /* [out] The acceleration components of t_b */
double xp; /* [out] The position of t_b */
uint8_t bn; /* [out] The health info */
uint8_t p2; /* [out] flag of oddness ("1") or evenness ("0") of the value of t_b */
uint16_t tb; /* [out] Reference time t_b (15...1425) */
uint8_t hn_e; /* [out] Carrier frequency number (0...31, (25...31)=(7...-1)) */
double yv; /* [out] The velocity vector components of t_b */
float ya; /* [out] The acceleration components of t_b */
double yp; /* [out] The position of t_b */
uint8_t p3; /* [out] Number of almanacs in the current frame */
float gn; /* [out] Carrier frequency relative deviation of t_b */
uint8_t p; /* [out] Origin of tau variable */
uint8_t health; /* [out] Health flag */
double zv; /* [out] The velocity vector components of t_b */
float za; /* [out] The acceleration components of t_b */
double zp; /* [out] The position of t_b */
float tn; /* [out] Correction to the satellite time t_n relative to GLONASS time t_c */
float dtn; /* [out] Difference in internal delay between L2 and L1 */
uint8_t en; /* [out] Number of days from when data was uploaded until t_b (0...31) */
uint8_t p4; /* [out] Flag of ephemeris parameters updating */
uint8_t ft; /* [out] The URA (index) of t_b */
uint16_t nt; /* [out] Number of days since 1/1 of a leap year */
uint8_t n; /* [out] Slot number of the signaling satellite (0...31) */
uint8_t m; /* [out] Satellite type (0...3) */
uint8_t slot; /* [out] slot 1...24 (It generates from svid. Usually same as me->n) */
int8_t ch; /* [out] ch -7...6 */
uint8_t p1; /* [out] The difference of t_b from the previous frame */
uint8_t tk_h; /* [out] Current frame first time (hours) */
uint8_t tk_m; /* [out] Current frame first time (minutes) */
uint8_t tk_s; /* [out] Current frame first time (seconds) */
double xv; /* [out] The velocity vector components of t_b */
float xa; /* [out] The acceleration components of t_b */
double xp; /* [out] The position of t_b */
uint8_t bn; /* [out] The health info */
uint8_t p2; /* [out] flag of oddness ("1") or evenness ("0") of the value of t_b */
uint16_t tb; /* [out] Reference time t_b (15...1425) */
uint8_t hn_e; /* [out] Carrier frequency number (0...31, (25...31)=(7...-1)) */
double yv; /* [out] The velocity vector components of t_b */
float ya; /* [out] The acceleration components of t_b */
double yp; /* [out] The position of t_b */
uint8_t p3; /* [out] Number of almanacs in the current frame */
float gn; /* [out] Carrier frequency relative deviation of t_b */
uint8_t p; /* [out] Origin of tau variable */
uint8_t health; /* [out] Health flag */
double zv; /* [out] The velocity vector components of t_b */
float za; /* [out] The acceleration components of t_b */
double zp; /* [out] The position of t_b */
float tn; /* [out] Correction to the satellite time t_n relative to GLONASS time t_c */
float dtn; /* [out] Difference in internal delay between L2 and L1 */
uint8_t en; /* [out] Number of days from when data was uploaded until t_b (0...31) */
uint8_t p4; /* [out] Flag of ephemeris parameters updating */
uint8_t ft; /* [out] The URA (index) of t_b */
uint16_t nt; /* [out] Number of days since 1/1 of a leap year */
uint8_t n; /* [out] Slot number of the signaling satellite (0...31) */
uint8_t m; /* [out] Satellite type (0...3) */
};
/* Spectrum Data */
@ -578,6 +584,7 @@ struct cxd56_gnss_spectrum_s
uint8_t datanum; /* Spectrum data Size */
uint8_t ifgain; /* IfGain 0-15 */
uint16_t dataindex; /* Spectrum data Inex */
uint16_t spectrum[CXD56_GNSS_SPECTRUM_MAXNUM]; /* Spectrum Data Buffer */
double peak[CXD56_GNSS_PEAK_SPECTRUM_MAXNUM]; /* Peak Spectrum */
};
@ -593,10 +600,11 @@ struct cxd56_gnss_sbasdata_s
uint16_t gpswn; /* GPS week number */
uint16_t svid; /* satellite id */
uint8_t msgid; /* sbas message ID */
uint8_t sbasmsg[CXD56_GNSS_SBAS_MESSAGE_DATA_LEN]; /* sbas message data */
};
/******** PVTLog Parameter ***********/
/* PVTLog Parameter */
/* Latitude of PVT data */
@ -689,7 +697,7 @@ struct cxd56_pvtlog_data_s
struct cxd56_pvtlog_s
{
uint32_t log_count; /* [in] Valid log count of log_data */
uint32_t log_count; /* [in] Valid log count of log_data */
struct cxd56_pvtlog_data_s log_data[CXD56_GNSS_PVTLOG_MAXNUM]; /* [in] Stored log data */
};
@ -697,7 +705,7 @@ struct cxd56_pvtlog_s
struct cxd56_gnss_status_s
{
uint32_t log_count; /* [in] Saved log count */
uint32_t log_count; /* [in] Saved log count */
struct cxd56_pvtlog_time_s start_time; /* [in] Time (UTC) 4B */
struct cxd56_pvtlog_date_s start_date; /* [in] Date (UTC) 4B */
struct cxd56_pvtlog_time_s end_time; /* [in] Time (UTC) 4B */

View File

@ -79,134 +79,134 @@
/* Cortex-M4 External interrupts (vectors >= 16) */
#define CXD56_IRQ_PMU (CXD56_IRQ_EXTINT+0) /**< PMU IRQ number */
#define CXD56_IRQ_CRG (CXD56_IRQ_EXTINT+1) /**< CRG IRQ number */
#define CXD56_IRQ_HVDD (CXD56_IRQ_EXTINT+2) /**< HVDD IRQ number */
#define CXD56_IRQ_LP (CXD56_IRQ_EXTINT+3) /**< LP IRQ number */
#define CXD56_IRQ_RTC0_A0 (CXD56_IRQ_EXTINT+4) /**< RTC0_A0 IRQ number */
#define CXD56_IRQ_RTC0_A1 (CXD56_IRQ_EXTINT+5) /**< RTC0_A1 IRQ number */
#define CXD56_IRQ_RTC0_A2 (CXD56_IRQ_EXTINT+6) /**< RTC0_A2 IRQ number */
#define CXD56_IRQ_RTC1_A0 (CXD56_IRQ_EXTINT+7) /**< RTC1_A0 IRQ number */
#define CXD56_IRQ_RTC1_A1 (CXD56_IRQ_EXTINT+8) /**< RTC1_A1 IRQ number */
#define CXD56_IRQ_RTC1_A2 (CXD56_IRQ_EXTINT+9) /**< RTC1_A2 IRQ number */
#define CXD56_IRQ_RTC_INT (CXD56_IRQ_EXTINT+10) /**< RTC_INT IRQ number */
#define CXD56_IRQ_UART1 (CXD56_IRQ_EXTINT+11) /**< UART1 IRQ number */
#define CXD56_IRQ_UART0 (CXD56_IRQ_EXTINT+12) /**< UART0 IRQ number */
#define CXD56_IRQ_HOSTIF_0 (CXD56_IRQ_EXTINT+13) /**< HOSTIF_0 IRQ number */
#define CXD56_IRQ_HOSTIF_1 (CXD56_IRQ_EXTINT+14) /**< HOSTIF_1 IRQ number */
#define CXD56_IRQ_HOSTIF_2 (CXD56_IRQ_EXTINT+15) /**< HOSTIF_2 IRQ number */
#define CXD56_IRQ_SCU_SPI (CXD56_IRQ_EXTINT+16) /**< SCU_0 SPI IRQ number */
#define CXD56_IRQ_SCU_I2C0 (CXD56_IRQ_EXTINT+17) /**< SCU_1 I2C1 IRQ number */
#define CXD56_IRQ_SCU_I2C1 (CXD56_IRQ_EXTINT+18) /**< SCU_2 I2C2 IRQ number */
#define CXD56_IRQ_SCU_3 (CXD56_IRQ_EXTINT+19) /**< SCU_3 SCU IRQ number */
#define CXD56_IRQ_EXDEVICE_0 (CXD56_IRQ_EXTINT+20) /**< EXDEVICE_0 IRQ number */
#define CXD56_IRQ_EXDEVICE_1 (CXD56_IRQ_EXTINT+21) /**< EXDEVICE_1 IRQ number */
#define CXD56_IRQ_EXDEVICE_2 (CXD56_IRQ_EXTINT+22) /**< EXDEVICE_2 IRQ number */
#define CXD56_IRQ_EXDEVICE_3 (CXD56_IRQ_EXTINT+23) /**< EXDEVICE_3 IRQ number */
#define CXD56_IRQ_EXDEVICE_4 (CXD56_IRQ_EXTINT+24) /**< EXDEVICE_4 IRQ number */
#define CXD56_IRQ_EXDEVICE_5 (CXD56_IRQ_EXTINT+25) /**< EXDEVICE_5 IRQ number */
#define CXD56_IRQ_EXDEVICE_6 (CXD56_IRQ_EXTINT+26) /**< EXDEVICE_6 IRQ number */
#define CXD56_IRQ_EXDEVICE_7 (CXD56_IRQ_EXTINT+27) /**< EXDEVICE_7 IRQ number */
#define CXD56_IRQ_EXDEVICE_8 (CXD56_IRQ_EXTINT+28) /**< EXDEVICE_8 IRQ number */
#define CXD56_IRQ_EXDEVICE_9 (CXD56_IRQ_EXTINT+29) /**< EXDEVICE_9 IRQ number */
#define CXD56_IRQ_EXDEVICE_10 (CXD56_IRQ_EXTINT+30) /**< EXDEVICE_10 IRQ number */
#define CXD56_IRQ_EXDEVICE_11 (CXD56_IRQ_EXTINT+31) /**< EXDEVICE_11 IRQ number */
#define CXD56_IRQ_DMA_A_0 (CXD56_IRQ_EXTINT+32) /**< DMA_A_0 IRQ number */
#define CXD56_IRQ_DMA_A_1 (CXD56_IRQ_EXTINT+33) /**< DMA_A_1 IRQ number */
#define CXD56_IRQ_DMA_A_2 (CXD56_IRQ_EXTINT+34) /**< DMA_A_2 IRQ number */
#define CXD56_IRQ_DMA_A_3 (CXD56_IRQ_EXTINT+35) /**< DMA_A_3 IRQ number */
#define CXD56_IRQ_DMA_A_4 (CXD56_IRQ_EXTINT+36) /**< DMA_A_4 IRQ number */
#define CXD56_IRQ_DMA_A_5 (CXD56_IRQ_EXTINT+37) /**< DMA_A_5 IRQ number */
#define CXD56_IRQ_DMA_A_6 (CXD56_IRQ_EXTINT+38) /**< DMA_A_6 IRQ number */
#define CXD56_IRQ_DMA_A_7 (CXD56_IRQ_EXTINT+39) /**< DMA_A_7 IRQ number */
#define CXD56_IRQ_DMA_A_8 (CXD56_IRQ_EXTINT+40) /**< DMA_A_8 IRQ number */
#define CXD56_IRQ_DMA_A_9 (CXD56_IRQ_EXTINT+41) /**< DMA_A_9 IRQ number */
#define CXD56_IRQ_DMA_A_10 (CXD56_IRQ_EXTINT+42) /**< DMA_A_10 IRQ number */
#define CXD56_IRQ_DMA_A_11 (CXD56_IRQ_EXTINT+43) /**< DMA_A_11 IRQ number */
#define CXD56_IRQ_DMA_A_12 (CXD56_IRQ_EXTINT+44) /**< DMA_A_12 IRQ number */
#define CXD56_IRQ_DMA_A_13 (CXD56_IRQ_EXTINT+45) /**< DMA_A_13 IRQ number */
#define CXD56_IRQ_DMA_A_14 (CXD56_IRQ_EXTINT+46) /**< DMA_A_14 IRQ number */
#define CXD56_IRQ_DMA_A_15 (CXD56_IRQ_EXTINT+47) /**< DMA_A_15 IRQ number */
#define CXD56_IRQ_DMA_A_16 (CXD56_IRQ_EXTINT+48) /**< DMA_A_16 IRQ number */
#define CXD56_IRQ_DMA_A_17 (CXD56_IRQ_EXTINT+49) /**< DMA_A_17 IRQ number */
#define CXD56_IRQ_DMA_A_18 (CXD56_IRQ_EXTINT+50) /**< DMA_A_18 IRQ number */
#define CXD56_IRQ_DMA_A_19 (CXD56_IRQ_EXTINT+51) /**< DMA_A_19 IRQ number */
#define CXD56_IRQ_DMA_A_20 (CXD56_IRQ_EXTINT+52) /**< DMA_A_20 IRQ number */
#define CXD56_IRQ_DMA_A_21 (CXD56_IRQ_EXTINT+53) /**< DMA_A_21 IRQ number */
#define CXD56_IRQ_DMA_A_22 (CXD56_IRQ_EXTINT+54) /**< DMA_A_22 IRQ number */
#define CXD56_IRQ_DMA_A_23 (CXD56_IRQ_EXTINT+55) /**< DMA_A_23 IRQ number */
#define CXD56_IRQ_DMA_A_24 (CXD56_IRQ_EXTINT+56) /**< DMA_A_24 IRQ number */
#define CXD56_IRQ_DMA_A_25 (CXD56_IRQ_EXTINT+57) /**< DMA_A_25 IRQ number */
#define CXD56_IRQ_DMA_A_26 (CXD56_IRQ_EXTINT+58) /**< DMA_A_26 IRQ number */
#define CXD56_IRQ_DMA_A_27 (CXD56_IRQ_EXTINT+59) /**< DMA_A_27 IRQ number */
#define CXD56_IRQ_DMA_A_28 (CXD56_IRQ_EXTINT+60) /**< DMA_A_28 IRQ number */
#define CXD56_IRQ_DMA_A_29 (CXD56_IRQ_EXTINT+61) /**< DMA_A_29 IRQ number */
#define CXD56_IRQ_DMA_A_30 (CXD56_IRQ_EXTINT+62) /**< DMA_A_30 IRQ number */
#define CXD56_IRQ_DMA_A_31 (CXD56_IRQ_EXTINT+63) /**< DMA_A_31 IRQ number */
#define CXD56_IRQ_DMA_B_0 (CXD56_IRQ_EXTINT+64) /**< DMA_B_0 IRQ number */
#define CXD56_IRQ_DMA_B_1 (CXD56_IRQ_EXTINT+65) /**< DMA_B_1 IRQ number */
#define CXD56_IRQ_DMA_C_0 (CXD56_IRQ_EXTINT+66) /**< DMA_C_0 IRQ number */
#define CXD56_IRQ_DMA_C_1 (CXD56_IRQ_EXTINT+67) /**< DMA_C_1 IRQ number */
#define CXD56_IRQ_DMA_D_0 (CXD56_IRQ_EXTINT+68) /**< DMA_D_0 IRQ number */
#define CXD56_IRQ_DMA_D_1 (CXD56_IRQ_EXTINT+69) /**< DMA_D_1 IRQ number */
#define CXD56_IRQ_SAKE_NSEC (CXD56_IRQ_EXTINT+70) /**< SAKE_NSEC IRQ number */
#define CXD56_IRQ_SAKE_SEC (CXD56_IRQ_EXTINT+71) /**< SAKE_SEC IRQ number */
#define CXD56_IRQ_USB_VBUS (CXD56_IRQ_EXTINT+72) /**< USB_VBUS IRQ number */
#define CXD56_IRQ_USB_VBUSN (CXD56_IRQ_EXTINT+73) /**< USB_VBUSN IRQ number */
#define CXD56_IRQ_SPIM (CXD56_IRQ_EXTINT+74) /**< SPI0 IRQ number */
#define CXD56_IRQ_I2CM (CXD56_IRQ_EXTINT+75) /**< I2C0 IRQ number */
#define CXD56_IRQ_DEBUG0 (CXD56_IRQ_EXTINT+76) /**< DEBUG0 IRQ number */
#define CXD56_IRQ_DEBUG1 (CXD56_IRQ_EXTINT+77) /**< DEBUG1 IRQ number */
#define CXD56_IRQ_FIFO_TO (CXD56_IRQ_EXTINT+78) /**< FIFO_TO IRQ number */
#define CXD56_IRQ_FIFO_FROM (CXD56_IRQ_EXTINT+79) /**< FIFO_FROM IRQ number */
#define CXD56_IRQ_SPH0 (CXD56_IRQ_EXTINT+80) /**< SPH0 IRQ number */
#define CXD56_IRQ_SPH1 (CXD56_IRQ_EXTINT+81) /**< SPH1 IRQ number */
#define CXD56_IRQ_SPH2 (CXD56_IRQ_EXTINT+82) /**< SPH2 IRQ number */
#define CXD56_IRQ_SPH3 (CXD56_IRQ_EXTINT+83) /**< SPH3 IRQ number */
#define CXD56_IRQ_SPH4 (CXD56_IRQ_EXTINT+84) /**< SPH4 IRQ number */
#define CXD56_IRQ_SPH5 (CXD56_IRQ_EXTINT+85) /**< SPH5 IRQ number */
#define CXD56_IRQ_SPH6 (CXD56_IRQ_EXTINT+86) /**< SPH6 IRQ number */
#define CXD56_IRQ_SPH7 (CXD56_IRQ_EXTINT+87) /**< SPH7 IRQ number */
#define CXD56_IRQ_SPH8 (CXD56_IRQ_EXTINT+88) /**< SPH8 IRQ number */
#define CXD56_IRQ_SPH9 (CXD56_IRQ_EXTINT+89) /**< SPH9 IRQ number */
#define CXD56_IRQ_SPH10 (CXD56_IRQ_EXTINT+90) /**< SPH10 IRQ number */
#define CXD56_IRQ_SPH11 (CXD56_IRQ_EXTINT+91) /**< SPH11 IRQ number */
#define CXD56_IRQ_SPH12 (CXD56_IRQ_EXTINT+92) /**< SPH12 IRQ number */
#define CXD56_IRQ_SPH13 (CXD56_IRQ_EXTINT+93) /**< SPH13 IRQ number */
#define CXD56_IRQ_SPH14 (CXD56_IRQ_EXTINT+94) /**< SPH14 IRQ number */
#define CXD56_IRQ_SPH15 (CXD56_IRQ_EXTINT+95) /**< SPH15 IRQ number */
#define CXD56_IRQ_SW_INT (CXD56_IRQ_EXTINT+96) /**< SW_INT IRQ number */
#define CXD56_IRQ_TIMER0 (CXD56_IRQ_EXTINT+97) /**< TIMER0 IRQ number */
#define CXD56_IRQ_TIMER1 (CXD56_IRQ_EXTINT+98) /**< TIMER1 IRQ number */
#define CXD56_IRQ_TIMER2 (CXD56_IRQ_EXTINT+99) /**< TIMER2 IRQ number */
#define CXD56_IRQ_WDT_INT (CXD56_IRQ_EXTINT+100) /**< WDT_INT IRQ number */
#define CXD56_IRQ_WDT_RES (CXD56_IRQ_EXTINT+101) /**< WDT_RES IRQ number */
#define CXD56_IRQ_AUDIO_0 (CXD56_IRQ_EXTINT+102) /**< AUDIO_0(MIC) IRQ number */
#define CXD56_IRQ_AUDIO_1 (CXD56_IRQ_EXTINT+103) /**< AUDIO_1(I2S1) IRQ number */
#define CXD56_IRQ_AUDIO_2 (CXD56_IRQ_EXTINT+104) /**< AUDIO_2(I2S2) IRQ number */
#define CXD56_IRQ_AUDIO_3 (CXD56_IRQ_EXTINT+105) /**< AUDIO_3(CODEC) IRQ number */
#define CXD56_IRQ_GE2D (CXD56_IRQ_EXTINT+106) /**< APP_IMG 2D Graphics Engine IRQ number */
#define CXD56_IRQ_ROT (CXD56_IRQ_EXTINT+107) /**< APP_IMG_ROTation IRQ number */
#define CXD56_IRQ_CISIF (CXD56_IRQ_EXTINT+108) /**< APP_IMG CISIF IRQ number */
#define CXD56_IRQ_IMG_WSPI (CXD56_IRQ_EXTINT+109) /**< APP_IMG WSSP IRQ number */
#define CXD56_IRQ_IDMAC (CXD56_IRQ_EXTINT+110) /**< APP_IMG DMAC IRQ number */
#define CXD56_IRQ_APP_UART (CXD56_IRQ_EXTINT+111) /**< APP_IMG UART IRQ number */
#define CXD56_IRQ_VSYNC (CXD56_IRQ_EXTINT+112) /**< APP_IMG VSYNC IRQ number */
#define CXD56_IRQ_IMG_SPI (CXD56_IRQ_EXTINT+113) /**< APP_IMG SSP IRQ number */
#define CXD56_IRQ_EMMC (CXD56_IRQ_EXTINT+114) /**< APP_PER EMMC IRQ number */
#define CXD56_IRQ_SDIO (CXD56_IRQ_EXTINT+115) /**< APP_PER SDIO IRQ number */
#define CXD56_IRQ_USB_INT (CXD56_IRQ_EXTINT+116) /**< APP_PER USB_INT IRQ number */
#define CXD56_IRQ_USB_SYS (CXD56_IRQ_EXTINT+117) /**< APP_PER USB_SYS IRQ number */
#define CXD56_IRQ_APP_DMAC0 (CXD56_IRQ_EXTINT+118) /**< APP_DMAC0 IRQ number */
#define CXD56_IRQ_APP_DMAC1 (CXD56_IRQ_EXTINT+119) /**< APP_DMAC1 IRQ number */
#define CXD56_IRQ_APP_SAKE_NSEC (CXD56_IRQ_EXTINT+120) /**< APP_SAKE_NSEC IRQ number */
#define CXD56_IRQ_APP_SAKE_SEC (CXD56_IRQ_EXTINT+121) /**< APP_SAKE_SEC IRQ number */
#define CXD56_IRQ_SKDMAC_0 (CXD56_IRQ_EXTINT+122) /**< APP_SAKE_DMAC_0 IRQ number */
#define CXD56_IRQ_SKDMAC_1 (CXD56_IRQ_EXTINT+123) /**< APP_SAKE_DMAC_1 IRQ number */
#define CXD56_IRQ_APP_PPB (CXD56_IRQ_EXTINT+124) /**< reserved */
#define CXD56_IRQ_GPS_OR (CXD56_IRQ_EXTINT+125) /**< GNSS_OR IRQ number */
#define CXD56_IRQ_SFC (CXD56_IRQ_EXTINT+126) /**< SFC IRQ number */
#define CXD56_IRQ_PMIC (CXD56_IRQ_EXTINT+127) /**< PMIC IRQ number */
#define CXD56_IRQ_PMU (CXD56_IRQ_EXTINT+0) /* PMU IRQ number */
#define CXD56_IRQ_CRG (CXD56_IRQ_EXTINT+1) /* CRG IRQ number */
#define CXD56_IRQ_HVDD (CXD56_IRQ_EXTINT+2) /* HVDD IRQ number */
#define CXD56_IRQ_LP (CXD56_IRQ_EXTINT+3) /* LP IRQ number */
#define CXD56_IRQ_RTC0_A0 (CXD56_IRQ_EXTINT+4) /* RTC0_A0 IRQ number */
#define CXD56_IRQ_RTC0_A1 (CXD56_IRQ_EXTINT+5) /* RTC0_A1 IRQ number */
#define CXD56_IRQ_RTC0_A2 (CXD56_IRQ_EXTINT+6) /* RTC0_A2 IRQ number */
#define CXD56_IRQ_RTC1_A0 (CXD56_IRQ_EXTINT+7) /* RTC1_A0 IRQ number */
#define CXD56_IRQ_RTC1_A1 (CXD56_IRQ_EXTINT+8) /* RTC1_A1 IRQ number */
#define CXD56_IRQ_RTC1_A2 (CXD56_IRQ_EXTINT+9) /* RTC1_A2 IRQ number */
#define CXD56_IRQ_RTC_INT (CXD56_IRQ_EXTINT+10) /* RTC_INT IRQ number */
#define CXD56_IRQ_UART1 (CXD56_IRQ_EXTINT+11) /* UART1 IRQ number */
#define CXD56_IRQ_UART0 (CXD56_IRQ_EXTINT+12) /* UART0 IRQ number */
#define CXD56_IRQ_HOSTIF_0 (CXD56_IRQ_EXTINT+13) /* HOSTIF_0 IRQ number */
#define CXD56_IRQ_HOSTIF_1 (CXD56_IRQ_EXTINT+14) /* HOSTIF_1 IRQ number */
#define CXD56_IRQ_HOSTIF_2 (CXD56_IRQ_EXTINT+15) /* HOSTIF_2 IRQ number */
#define CXD56_IRQ_SCU_SPI (CXD56_IRQ_EXTINT+16) /* SCU_0 SPI IRQ number */
#define CXD56_IRQ_SCU_I2C0 (CXD56_IRQ_EXTINT+17) /* SCU_1 I2C1 IRQ number */
#define CXD56_IRQ_SCU_I2C1 (CXD56_IRQ_EXTINT+18) /* SCU_2 I2C2 IRQ number */
#define CXD56_IRQ_SCU_3 (CXD56_IRQ_EXTINT+19) /* SCU_3 SCU IRQ number */
#define CXD56_IRQ_EXDEVICE_0 (CXD56_IRQ_EXTINT+20) /* EXDEVICE_0 IRQ number */
#define CXD56_IRQ_EXDEVICE_1 (CXD56_IRQ_EXTINT+21) /* EXDEVICE_1 IRQ number */
#define CXD56_IRQ_EXDEVICE_2 (CXD56_IRQ_EXTINT+22) /* EXDEVICE_2 IRQ number */
#define CXD56_IRQ_EXDEVICE_3 (CXD56_IRQ_EXTINT+23) /* EXDEVICE_3 IRQ number */
#define CXD56_IRQ_EXDEVICE_4 (CXD56_IRQ_EXTINT+24) /* EXDEVICE_4 IRQ number */
#define CXD56_IRQ_EXDEVICE_5 (CXD56_IRQ_EXTINT+25) /* EXDEVICE_5 IRQ number */
#define CXD56_IRQ_EXDEVICE_6 (CXD56_IRQ_EXTINT+26) /* EXDEVICE_6 IRQ number */
#define CXD56_IRQ_EXDEVICE_7 (CXD56_IRQ_EXTINT+27) /* EXDEVICE_7 IRQ number */
#define CXD56_IRQ_EXDEVICE_8 (CXD56_IRQ_EXTINT+28) /* EXDEVICE_8 IRQ number */
#define CXD56_IRQ_EXDEVICE_9 (CXD56_IRQ_EXTINT+29) /* EXDEVICE_9 IRQ number */
#define CXD56_IRQ_EXDEVICE_10 (CXD56_IRQ_EXTINT+30) /* EXDEVICE_10 IRQ number */
#define CXD56_IRQ_EXDEVICE_11 (CXD56_IRQ_EXTINT+31) /* EXDEVICE_11 IRQ number */
#define CXD56_IRQ_DMA_A_0 (CXD56_IRQ_EXTINT+32) /* DMA_A_0 IRQ number */
#define CXD56_IRQ_DMA_A_1 (CXD56_IRQ_EXTINT+33) /* DMA_A_1 IRQ number */
#define CXD56_IRQ_DMA_A_2 (CXD56_IRQ_EXTINT+34) /* DMA_A_2 IRQ number */
#define CXD56_IRQ_DMA_A_3 (CXD56_IRQ_EXTINT+35) /* DMA_A_3 IRQ number */
#define CXD56_IRQ_DMA_A_4 (CXD56_IRQ_EXTINT+36) /* DMA_A_4 IRQ number */
#define CXD56_IRQ_DMA_A_5 (CXD56_IRQ_EXTINT+37) /* DMA_A_5 IRQ number */
#define CXD56_IRQ_DMA_A_6 (CXD56_IRQ_EXTINT+38) /* DMA_A_6 IRQ number */
#define CXD56_IRQ_DMA_A_7 (CXD56_IRQ_EXTINT+39) /* DMA_A_7 IRQ number */
#define CXD56_IRQ_DMA_A_8 (CXD56_IRQ_EXTINT+40) /* DMA_A_8 IRQ number */
#define CXD56_IRQ_DMA_A_9 (CXD56_IRQ_EXTINT+41) /* DMA_A_9 IRQ number */
#define CXD56_IRQ_DMA_A_10 (CXD56_IRQ_EXTINT+42) /* DMA_A_10 IRQ number */
#define CXD56_IRQ_DMA_A_11 (CXD56_IRQ_EXTINT+43) /* DMA_A_11 IRQ number */
#define CXD56_IRQ_DMA_A_12 (CXD56_IRQ_EXTINT+44) /* DMA_A_12 IRQ number */
#define CXD56_IRQ_DMA_A_13 (CXD56_IRQ_EXTINT+45) /* DMA_A_13 IRQ number */
#define CXD56_IRQ_DMA_A_14 (CXD56_IRQ_EXTINT+46) /* DMA_A_14 IRQ number */
#define CXD56_IRQ_DMA_A_15 (CXD56_IRQ_EXTINT+47) /* DMA_A_15 IRQ number */
#define CXD56_IRQ_DMA_A_16 (CXD56_IRQ_EXTINT+48) /* DMA_A_16 IRQ number */
#define CXD56_IRQ_DMA_A_17 (CXD56_IRQ_EXTINT+49) /* DMA_A_17 IRQ number */
#define CXD56_IRQ_DMA_A_18 (CXD56_IRQ_EXTINT+50) /* DMA_A_18 IRQ number */
#define CXD56_IRQ_DMA_A_19 (CXD56_IRQ_EXTINT+51) /* DMA_A_19 IRQ number */
#define CXD56_IRQ_DMA_A_20 (CXD56_IRQ_EXTINT+52) /* DMA_A_20 IRQ number */
#define CXD56_IRQ_DMA_A_21 (CXD56_IRQ_EXTINT+53) /* DMA_A_21 IRQ number */
#define CXD56_IRQ_DMA_A_22 (CXD56_IRQ_EXTINT+54) /* DMA_A_22 IRQ number */
#define CXD56_IRQ_DMA_A_23 (CXD56_IRQ_EXTINT+55) /* DMA_A_23 IRQ number */
#define CXD56_IRQ_DMA_A_24 (CXD56_IRQ_EXTINT+56) /* DMA_A_24 IRQ number */
#define CXD56_IRQ_DMA_A_25 (CXD56_IRQ_EXTINT+57) /* DMA_A_25 IRQ number */
#define CXD56_IRQ_DMA_A_26 (CXD56_IRQ_EXTINT+58) /* DMA_A_26 IRQ number */
#define CXD56_IRQ_DMA_A_27 (CXD56_IRQ_EXTINT+59) /* DMA_A_27 IRQ number */
#define CXD56_IRQ_DMA_A_28 (CXD56_IRQ_EXTINT+60) /* DMA_A_28 IRQ number */
#define CXD56_IRQ_DMA_A_29 (CXD56_IRQ_EXTINT+61) /* DMA_A_29 IRQ number */
#define CXD56_IRQ_DMA_A_30 (CXD56_IRQ_EXTINT+62) /* DMA_A_30 IRQ number */
#define CXD56_IRQ_DMA_A_31 (CXD56_IRQ_EXTINT+63) /* DMA_A_31 IRQ number */
#define CXD56_IRQ_DMA_B_0 (CXD56_IRQ_EXTINT+64) /* DMA_B_0 IRQ number */
#define CXD56_IRQ_DMA_B_1 (CXD56_IRQ_EXTINT+65) /* DMA_B_1 IRQ number */
#define CXD56_IRQ_DMA_C_0 (CXD56_IRQ_EXTINT+66) /* DMA_C_0 IRQ number */
#define CXD56_IRQ_DMA_C_1 (CXD56_IRQ_EXTINT+67) /* DMA_C_1 IRQ number */
#define CXD56_IRQ_DMA_D_0 (CXD56_IRQ_EXTINT+68) /* DMA_D_0 IRQ number */
#define CXD56_IRQ_DMA_D_1 (CXD56_IRQ_EXTINT+69) /* DMA_D_1 IRQ number */
#define CXD56_IRQ_SAKE_NSEC (CXD56_IRQ_EXTINT+70) /* SAKE_NSEC IRQ number */
#define CXD56_IRQ_SAKE_SEC (CXD56_IRQ_EXTINT+71) /* SAKE_SEC IRQ number */
#define CXD56_IRQ_USB_VBUS (CXD56_IRQ_EXTINT+72) /* USB_VBUS IRQ number */
#define CXD56_IRQ_USB_VBUSN (CXD56_IRQ_EXTINT+73) /* USB_VBUSN IRQ number */
#define CXD56_IRQ_SPIM (CXD56_IRQ_EXTINT+74) /* SPI0 IRQ number */
#define CXD56_IRQ_I2CM (CXD56_IRQ_EXTINT+75) /* I2C0 IRQ number */
#define CXD56_IRQ_DEBUG0 (CXD56_IRQ_EXTINT+76) /* DEBUG0 IRQ number */
#define CXD56_IRQ_DEBUG1 (CXD56_IRQ_EXTINT+77) /* DEBUG1 IRQ number */
#define CXD56_IRQ_FIFO_TO (CXD56_IRQ_EXTINT+78) /* FIFO_TO IRQ number */
#define CXD56_IRQ_FIFO_FROM (CXD56_IRQ_EXTINT+79) /* FIFO_FROM IRQ number */
#define CXD56_IRQ_SPH0 (CXD56_IRQ_EXTINT+80) /* SPH0 IRQ number */
#define CXD56_IRQ_SPH1 (CXD56_IRQ_EXTINT+81) /* SPH1 IRQ number */
#define CXD56_IRQ_SPH2 (CXD56_IRQ_EXTINT+82) /* SPH2 IRQ number */
#define CXD56_IRQ_SPH3 (CXD56_IRQ_EXTINT+83) /* SPH3 IRQ number */
#define CXD56_IRQ_SPH4 (CXD56_IRQ_EXTINT+84) /* SPH4 IRQ number */
#define CXD56_IRQ_SPH5 (CXD56_IRQ_EXTINT+85) /* SPH5 IRQ number */
#define CXD56_IRQ_SPH6 (CXD56_IRQ_EXTINT+86) /* SPH6 IRQ number */
#define CXD56_IRQ_SPH7 (CXD56_IRQ_EXTINT+87) /* SPH7 IRQ number */
#define CXD56_IRQ_SPH8 (CXD56_IRQ_EXTINT+88) /* SPH8 IRQ number */
#define CXD56_IRQ_SPH9 (CXD56_IRQ_EXTINT+89) /* SPH9 IRQ number */
#define CXD56_IRQ_SPH10 (CXD56_IRQ_EXTINT+90) /* SPH10 IRQ number */
#define CXD56_IRQ_SPH11 (CXD56_IRQ_EXTINT+91) /* SPH11 IRQ number */
#define CXD56_IRQ_SPH12 (CXD56_IRQ_EXTINT+92) /* SPH12 IRQ number */
#define CXD56_IRQ_SPH13 (CXD56_IRQ_EXTINT+93) /* SPH13 IRQ number */
#define CXD56_IRQ_SPH14 (CXD56_IRQ_EXTINT+94) /* SPH14 IRQ number */
#define CXD56_IRQ_SPH15 (CXD56_IRQ_EXTINT+95) /* SPH15 IRQ number */
#define CXD56_IRQ_SW_INT (CXD56_IRQ_EXTINT+96) /* SW_INT IRQ number */
#define CXD56_IRQ_TIMER0 (CXD56_IRQ_EXTINT+97) /* TIMER0 IRQ number */
#define CXD56_IRQ_TIMER1 (CXD56_IRQ_EXTINT+98) /* TIMER1 IRQ number */
#define CXD56_IRQ_TIMER2 (CXD56_IRQ_EXTINT+99) /* TIMER2 IRQ number */
#define CXD56_IRQ_WDT_INT (CXD56_IRQ_EXTINT+100) /* WDT_INT IRQ number */
#define CXD56_IRQ_WDT_RES (CXD56_IRQ_EXTINT+101) /* WDT_RES IRQ number */
#define CXD56_IRQ_AUDIO_0 (CXD56_IRQ_EXTINT+102) /* AUDIO_0(MIC) IRQ number */
#define CXD56_IRQ_AUDIO_1 (CXD56_IRQ_EXTINT+103) /* AUDIO_1(I2S1) IRQ number */
#define CXD56_IRQ_AUDIO_2 (CXD56_IRQ_EXTINT+104) /* AUDIO_2(I2S2) IRQ number */
#define CXD56_IRQ_AUDIO_3 (CXD56_IRQ_EXTINT+105) /* AUDIO_3(CODEC) IRQ number */
#define CXD56_IRQ_GE2D (CXD56_IRQ_EXTINT+106) /* APP_IMG 2D Graphics Engine IRQ number */
#define CXD56_IRQ_ROT (CXD56_IRQ_EXTINT+107) /* APP_IMG_ROTation IRQ number */
#define CXD56_IRQ_CISIF (CXD56_IRQ_EXTINT+108) /* APP_IMG CISIF IRQ number */
#define CXD56_IRQ_IMG_WSPI (CXD56_IRQ_EXTINT+109) /* APP_IMG WSSP IRQ number */
#define CXD56_IRQ_IDMAC (CXD56_IRQ_EXTINT+110) /* APP_IMG DMAC IRQ number */
#define CXD56_IRQ_APP_UART (CXD56_IRQ_EXTINT+111) /* APP_IMG UART IRQ number */
#define CXD56_IRQ_VSYNC (CXD56_IRQ_EXTINT+112) /* APP_IMG VSYNC IRQ number */
#define CXD56_IRQ_IMG_SPI (CXD56_IRQ_EXTINT+113) /* APP_IMG SSP IRQ number */
#define CXD56_IRQ_EMMC (CXD56_IRQ_EXTINT+114) /* APP_PER EMMC IRQ number */
#define CXD56_IRQ_SDIO (CXD56_IRQ_EXTINT+115) /* APP_PER SDIO IRQ number */
#define CXD56_IRQ_USB_INT (CXD56_IRQ_EXTINT+116) /* APP_PER USB_INT IRQ number */
#define CXD56_IRQ_USB_SYS (CXD56_IRQ_EXTINT+117) /* APP_PER USB_SYS IRQ number */
#define CXD56_IRQ_APP_DMAC0 (CXD56_IRQ_EXTINT+118) /* APP_DMAC0 IRQ number */
#define CXD56_IRQ_APP_DMAC1 (CXD56_IRQ_EXTINT+119) /* APP_DMAC1 IRQ number */
#define CXD56_IRQ_APP_SAKE_NSEC (CXD56_IRQ_EXTINT+120) /* APP_SAKE_NSEC IRQ number */
#define CXD56_IRQ_APP_SAKE_SEC (CXD56_IRQ_EXTINT+121) /* APP_SAKE_SEC IRQ number */
#define CXD56_IRQ_SKDMAC_0 (CXD56_IRQ_EXTINT+122) /* APP_SAKE_DMAC_0 IRQ number */
#define CXD56_IRQ_SKDMAC_1 (CXD56_IRQ_EXTINT+123) /* APP_SAKE_DMAC_1 IRQ number */
#define CXD56_IRQ_APP_PPB (CXD56_IRQ_EXTINT+124) /* reserved */
#define CXD56_IRQ_GPS_OR (CXD56_IRQ_EXTINT+125) /* GNSS_OR IRQ number */
#define CXD56_IRQ_SFC (CXD56_IRQ_EXTINT+126) /* SFC IRQ number */
#define CXD56_IRQ_PMIC (CXD56_IRQ_EXTINT+127) /* PMIC IRQ number */
#define CXD56_IRQ_NEXTINT (128)
#define CXD56_IRQ_NIRQS (CXD56_IRQ_EXTINT+CXD56_IRQ_NEXTINT)

View File

@ -41,7 +41,7 @@
/****************************************************************************
* Included Files
***************************************************************************/
****************************************************************************/
#include <nuttx/config.h>

View File

@ -36,9 +36,9 @@
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_PM_H
#define __ARCH_ARM_INCLUDE_CXD56XX_PM_H
/*-----------------------------------------------------------------------------
* include files
*---------------------------------------------------------------------------*/
/****************************************************************************
* Included Files
****************************************************************************/
#include <queue.h>
@ -279,8 +279,8 @@ int up_pm_count_acquire_wakelock(void);
*
* Description:
* Get the system boot cause. This boot cause indicates the cause why the
* system is launched from the state of power-off, deep sleep or cold sleep.
* Each boot cause is defined as PM_BOOT_XXX.
* system is launched from the state of power-off, deep sleep or cold
* sleep. Each boot cause is defined as PM_BOOT_XXX.
*
* Return:
* Boot cause

View File

@ -37,14 +37,14 @@
#define __ARCH_ARM_INCLUDE_CXD56XX_SCU_H
/****************************************************************************
* include files
* Included Files
****************************************************************************/
#include <stdint.h>
#include <stdbool.h>
#include <nuttx/fs/ioctl.h>
/***************************************************************************
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -53,8 +53,7 @@
#define _SCUIOCVALID(c) (_IOC_TYPE(c)==_SCUIOCBASE)
#define _SCUIOC(nr) _IOC(_SCUIOCBASE,nr)
/*
* Set FIFO size used by sequencer
/* Set FIFO size used by sequencer
*
* uint16_t FIFO size in bytes
* return ioctl return value provides success/failure indication
@ -62,8 +61,7 @@
#define SCUIOC_SETFIFO _SCUIOC(0x0001)
/*
* Free FIFO used by sequencer
/* Free FIFO used by sequencer
*
* param: none
* return: ioctl return value provides success/failure indication
@ -71,8 +69,7 @@
#define SCUIOC_FREEFIFO _SCUIOC(0x0002)
/*
* Set sequencer sampling rate
/* Set sequencer sampling rate
*
* param: uint8_t: sampling rate
* return: ioctl return value provides success/failure indication
@ -80,8 +77,7 @@
#define SCUIOC_SETSAMPLE _SCUIOC(0x0003)
/*
* Enable/Disable sign conversion preprocessing
/* Enable/Disable sign conversion preprocessing
*
* param: unsigned long: 0 = disable, 1 = enable
* return: ioctl return value provides success/failure indication
@ -89,8 +85,7 @@
#define SCUIOC_SETSIGNCONV _SCUIOC(0x0004)
/*
* Set offset/gain adjustment parameter
/* Set offset/gain adjustment parameter
*
* param: Pointer to struct adjust_xyz_s.
* return: ioctl return value provides success/failure indication
@ -98,8 +93,7 @@
#define SCUIOC_SETOGADJUST _SCUIOC(0x0005)
/*
* Clear offset/gain adjustment parameter
/* Clear offset/gain adjustment parameter
*
* param: none
* return: ioctl return value provides success/failure indication
@ -107,8 +101,7 @@
#define SCUIOC_CLROGADJUST _SCUIOC(0x0006)
/*
* Set IIR filter coefficiencies
/* Set IIR filter coefficiencies
*
* param: Pointer to struct math_filter_s
* return: ioctl return value provides success/failure indication
@ -116,8 +109,7 @@
#define SCUIOC_SETFILTER _SCUIOC(0x0007)
/*
* Set event notifier parameters
/* Set event notifier parameters
*
* Set event notifier. This command must use with IIR filter, so it will be
* error when no filter set by SCUIOC_SETFILTER.
@ -128,8 +120,7 @@
#define SCUIOC_SETNOTIFY _SCUIOC(0x0008)
/*
* Set elements per sample
/* Set elements per sample
*
* SCU can be treat 3 axis sample data as 1 or 2 axis data. For example,
* user can be used to detect via event notifier, about the board is
@ -142,8 +133,7 @@
#define SCUIOC_SETELEMENTS _SCUIOC(0x0009)
/*
* Set decimation parameters (Decimator only)
/* Set decimation parameters (Decimator only)
*
* param: Pointer to struct decimation_s
* return: ioctl return value provides success/failure indication
@ -151,8 +141,7 @@
#define SCUIOC_SETDECIMATION _SCUIOC(0x000a)
/*
* Set FIFO sample data watermark
/* Set FIFO sample data watermark
*
* param: Pointer of struct scufifo_wm_s
* return: ioctl return value provides success/failure indication
@ -160,8 +149,7 @@
#define SCUIOC_SETWATERMARK _SCUIOC(0x000b)
/*
* Start sequencer
/* Start sequencer
*
* param: None
* return: ioctl return value provides success/failure indication
@ -169,8 +157,7 @@
#define SCUIOC_START _SCUIOC(0x0010)
/*
* Stop sequencer
/* Stop sequencer
*
* param: None
* return: ioctl return value provides success/failure indication
@ -178,8 +165,7 @@
#define SCUIOC_STOP _SCUIOC(0x0011)
/*
* Set FIFO overwrite mode
/* Set FIFO overwrite mode
*
* param: unsigned long: 0 = overwrite disable, 1 = overwrite enable
* return: ioctl return value provides success/failure indication
@ -187,8 +173,7 @@
#define SCUIOC_SETFIFOMODE _SCUIOC(0x0012)
/*
* Delete FIFO data
/* Delete FIFO data
*
* param: uint16_t delete size
* return: ioctl return value provides success/failure indication
@ -196,15 +181,15 @@
#define SCUIOC_DELFIFODATA _SCUIOC(0x0013)
#define SCU_BUS_SPI 1 /*< SPI bus */
#define SCU_BUS_I2C0 2 /*< I2C0 bus */
#define SCU_BUS_I2C1 3 /*< I2C1 bus */
#define SCU_BUS_LPADC0 0x10 /*< LPADC0 */
#define SCU_BUS_LPADC1 0x11 /*< LPADC1 */
#define SCU_BUS_LPADC2 0x12 /*< LPADC2 */
#define SCU_BUS_LPADC3 0x13 /*< LPADC3 */
#define SCU_BUS_HPADC0 0x14 /*< HPADC1 */
#define SCU_BUS_HPADC1 0x15 /*< HPADC2 */
#define SCU_BUS_SPI 1 /* SPI bus */
#define SCU_BUS_I2C0 2 /* I2C0 bus */
#define SCU_BUS_I2C1 3 /* I2C1 bus */
#define SCU_BUS_LPADC0 0x10 /* LPADC0 */
#define SCU_BUS_LPADC1 0x11 /* LPADC1 */
#define SCU_BUS_LPADC2 0x12 /* LPADC2 */
#define SCU_BUS_LPADC3 0x13 /* LPADC3 */
#define SCU_BUS_HPADC0 0x14 /* HPADC1 */
#define SCU_BUS_HPADC1 0x15 /* HPADC2 */
/* Send 1 byte instruction */
@ -224,21 +209,21 @@
/* Sequencer types */
#define SEQ_TYPE_NORMAL 0 /*< Normal sequencer */
#define SEQ_TYPE_DECI 1 /*< Decimator */
#define SEQ_TYPE_NORMAL 0 /* Normal sequencer */
#define SEQ_TYPE_DECI 1 /* Decimator */
/* Event control */
#define SCU_EV_RISE_EN (1 << 31) /*< Rise event enable */
#define SCU_EV_FALL_EN (1 << 30) /*< Fall event enable */
#define SCU_EV_OUT8BITS (1 << 29) /*< Output only upper 8 bits */
#define SCU_EV_RISE_EN (1 << 31) /* Rise event enable */
#define SCU_EV_FALL_EN (1 << 30) /* Fall event enable */
#define SCU_EV_OUT8BITS (1 << 29) /* Output only upper 8 bits */
#define SCU_EV_OUTSHIFT 16
#define SCU_EV_OUTMASK (3 << SCU_EV_OUTSHIFT)
#define SCU_EV_OUTALWAYS (0 << SCU_EV_OUTSHIFT) /*< Always output to FIFO */
#define SCU_EV_OUTSTART (1 << SCU_EV_OUTSHIFT) /*< Output start after event occurred */
#define SCU_EV_OUTSTOP (2 << SCU_EV_OUTSHIFT) /*< Output stop after event occurred */
#define SCU_EV_NOTOUT (3 << SCU_EV_OUTSHIFT) /*< No output to FIFO */
#define SCU_EV_OUTALWAYS (0 << SCU_EV_OUTSHIFT) /* Always output to FIFO */
#define SCU_EV_OUTSTART (1 << SCU_EV_OUTSHIFT) /* Output start after event occurred */
#define SCU_EV_OUTSTOP (2 << SCU_EV_OUTSHIFT) /* Output stop after event occurred */
#define SCU_EV_NOTOUT (3 << SCU_EV_OUTSHIFT) /* No output to FIFO */
#define SCU_EV_WRITESAMPLEMASK 0xfff
@ -248,43 +233,42 @@
/* Event type flags */
#define SCU_EV_RISE (1) /*< Rise (low to high) event occurred */
#define SCU_EV_FALL (2) /*< Fall (high to low) event occurred */
#define SCU_EV_RISE (1) /* Rise (low to high) event occurred */
#define SCU_EV_FALL (2) /* Fall (high to low) event occurred */
/* Level adjustment (decimator only) */
#define SCU_LEVELADJ_X1 (0) /*< Level adjustment x1 */
#define SCU_LEVELADJ_X2 (1) /*< Level adjustment x2 */
#define SCU_LEVELADJ_X4 (2) /*< Level adjustment x4 */
#define SCU_LEVELADJ_X8 (3) /*< Level adjustment x8 */
#define SCU_LEVELADJ_X1 (0) /* Level adjustment x1 */
#define SCU_LEVELADJ_X2 (1) /* Level adjustment x2 */
#define SCU_LEVELADJ_X4 (2) /* Level adjustment x4 */
#define SCU_LEVELADJ_X8 (3) /* Level adjustment x8 */
/****************************************************************************
* Public Types
****************************************************************************/
/*
* IIR filter position
/* IIR filter position
* details IIR filter can be set 2 filters on data path.
* image html scu_IIR_filter_path.png
*/
enum filter_pos_e
{
FILTER_POS_NONE = 0, /*< Filter none */
FILTER_POS_AA, /*< 2 for all */
FILTER_POS_FF, /*< 2 for FIFO */
FILTER_POS_AF, /*< 1 for all, 1 for FIFO */
FILTER_POS_EE, /*< 2 for Event detector */
FILTER_POS_AE, /*< 1 for all, 1 for Event detector */
FILTER_POS_FE, /*< 1 for FIFO, 1 for Event detector */
FILTER_POS_NONE = 0, /* Filter none */
FILTER_POS_AA, /* 2 for all */
FILTER_POS_FF, /* 2 for FIFO */
FILTER_POS_AF, /* 1 for all, 1 for FIFO */
FILTER_POS_EE, /* 2 for Event detector */
FILTER_POS_AE, /* 1 for all, 1 for Event detector */
FILTER_POS_FE, /* 1 for FIFO, 1 for Event detector */
};
/* Sample timestamp */
struct scutimestamp_s
{
uint32_t sec; /*< Seconds */
uint16_t tick; /*< Clock tick (based on 32768 Hz) */
uint32_t sec; /* Seconds */
uint16_t tick; /* Clock tick (based on 32768 Hz) */
};
/* IIR filter coefficiencies */
@ -299,21 +283,20 @@ struct iir_coeff_s
struct iir_filter_s
{
uint8_t ishift; /*< Input shift */
uint8_t oshift; /*< Output shift */
struct iir_coeff_s coeff[5]; /*< IIR filter coefficiencies */
uint8_t ishift; /* Input shift */
uint8_t oshift; /* Output shift */
struct iir_coeff_s coeff[5]; /* IIR filter coefficiencies */
};
/* Math Function IIR filter setting */
struct math_filter_s
{
enum filter_pos_e pos; /*< Insert position identifier */
struct iir_filter_s filter[2]; /*< IIR filter parameters */
enum filter_pos_e pos; /* Insert position identifier */
struct iir_filter_s filter[2]; /* IIR filter parameters */
};
/*
* Event configuration
/* Event configuration
*
* a threshold is rise/fall threshold for input data.
* When set this member for a rise in struct scuev_notify_s, counting data
@ -334,70 +317,71 @@ struct math_filter_s
struct sensor_event_s
{
uint16_t threshold; /*< Threshold */
uint16_t count0; /*< Preventing counts */
uint16_t count1; /*< Actual counts */
uint16_t delaysamples; /*< Event notification delay in samples */
uint16_t threshold; /* Threshold */
uint16_t count0; /* Preventing counts */
uint16_t count1; /* Actual counts */
uint16_t delaysamples; /* Event notification delay in samples */
};
/* Arguments for event signal */
struct scuev_arg_s
{
struct scutimestamp_s ts; /*< timestamp stored when event occurred. */
uint32_t type; /*< Event type (SCU_EV_RISE or SCU_EV_FALL) */
struct scutimestamp_s ts; /* timestamp stored when event occurred. */
uint32_t type; /* Event type (SCU_EV_RISE or SCU_EV_FALL) */
};
/* Event notifier setting */
struct scuev_notify_s
{
int signo; /*< Signal number (0 - 31, except system reserved) */
int signo; /* Signal number (0 - 31, except system reserved) */
struct sensor_event_s rise; /*< Rise threshold */
struct sensor_event_s fall; /*< Fall threshold */
struct sensor_event_s rise; /* Rise threshold */
struct sensor_event_s fall; /* Fall threshold */
uint32_t ctrl; /*< Event control */
uint32_t ctrl; /* Event control */
FAR struct scuev_arg_s *arg; /*< Arguments for event raised */
FAR struct scuev_arg_s *arg; /* Arguments for event raised */
};
/* Offset/gain adjustment parameter */
struct adjust_s {
uint16_t offset; /*< Offset value */
uint16_t gain; /*< Gain value */
struct adjust_s
{
uint16_t offset; /* Offset value */
uint16_t gain; /* Gain value */
};
/* Offset/gain adjustment parameter for 3 axis */
struct adjust_xyz_s {
struct adjust_s x; /*< For X axis */
struct adjust_s y; /*< For Y axis */
struct adjust_s z; /*< For Z axis */
struct adjust_xyz_s
{
struct adjust_s x; /* For X axis */
struct adjust_s y; /* For Y axis */
struct adjust_s z; /* For Z axis */
};
/* Decimation parameter */
struct decimation_s
{
uint8_t ratio; /*< Decimation ratio (1 / (2 ^ ratio)), 0 - 9 */
uint8_t leveladj; /*< Output data multiplier */
uint8_t forcethrough; /*< Force through */
uint8_t ratio; /* Decimation ratio (1 / (2 ^ ratio)), 0 - 9 */
uint8_t leveladj; /* Output data multiplier */
uint8_t forcethrough; /* Force through */
};
/* Watermark notification */
struct scufifo_wm_s
{
int signo; /*< Signal number (0 - 31, except system reserved) */
int signo; /* Signal number (0 - 31, except system reserved) */
/* Pointer to memory to be timestamp stored */
FAR struct scutimestamp_s *ts;
/*
* Watermark value. SCU notifies when
/* Watermark value. SCU notifies when
* stored samples over watermark in FIFO.
* Valid value range: 1 - 65535
*/
@ -407,8 +391,7 @@ struct scufifo_wm_s
struct seq_s; /* The sequencer object */
/*
* Open sequencer
/* Open sequencer
*
* param [in] type : Sequencer type. Set one of the following definitions.
* - #SEQ_TYPE_NORMAL
@ -423,16 +406,14 @@ struct seq_s; /* The sequencer object */
FAR struct seq_s *seq_open(int type, int bustype);
/*
* Close sequencer device
/* Close sequencer device
*
* param [in] seq : Sequencer instance
*/
void seq_close(FAR struct seq_s *seq);
/*
* Read sequencer FIFO data
/* Read sequencer FIFO data
*
* param [in] seq : Sequencer instance
* param [in] fifoid : FIFO ID (decimator only)
@ -444,8 +425,7 @@ void seq_close(FAR struct seq_s *seq);
int seq_read(FAR struct seq_s *seq, int fifoid, char *buffer, int length);
/*
* Sequencer specific ioctl
/* Sequencer specific ioctl
*
* This API should be called from each sensor driver ioctl().
*
@ -461,8 +441,7 @@ int seq_read(FAR struct seq_s *seq, int fifoid, char *buffer, int length);
int seq_ioctl(FAR struct seq_s *seq, int fifoid, int cmd, unsigned long arg);
/*
* Set cyclic sequencer instruction
/* Set cyclic sequencer instruction
*
* param [in] seq : Sequencer instance
* param [in] inst : Pointer to instruction array
@ -474,8 +453,7 @@ int seq_ioctl(FAR struct seq_s *seq, int fifoid, int cmd, unsigned long arg);
int seq_setinstruction(FAR struct seq_s *seq, const uint16_t *inst,
uint16_t nr_insts);
/*
* Set sample data format
/* Set sample data format
*
* param [in] seq : Sequencer instance
* param [in] sample : Bytes per sample
@ -489,8 +467,7 @@ int seq_setinstruction(FAR struct seq_s *seq, const uint16_t *inst,
void seq_setsample(FAR struct seq_s *seq, uint8_t sample, uint8_t offset,
uint8_t elemsize, bool swapbyte);
/*
* Set slave ID or address
/* Set slave ID or address
*
* param [in] seq : An instance of sequencer
* param [in] slave_addr : In SPI, slave select ID. In I2C, bus address.
@ -498,8 +475,7 @@ void seq_setsample(FAR struct seq_s *seq, uint8_t sample, uint8_t offset,
void seq_setaddress(FAR struct seq_s *seq, uint32_t slave_addr);
/*
* SPI data transfer via sequencer.
/* SPI data transfer via sequencer.
*
* This function use 'oneshot' feature on SCU. So user unnecessary to specify
* any opened sequencer.
@ -518,8 +494,7 @@ void seq_setaddress(FAR struct seq_s *seq, uint32_t slave_addr);
int scu_spitransfer(int slavesel, uint16_t *inst, uint32_t nr_insts,
uint8_t *buffer, int len);
/*
* I2C data transfer via sequencer
/* I2C data transfer via sequencer
*
* This function use 'oneshot' feature on SCU. So user unnecessary to
* specify any opened sequencer.
@ -539,8 +514,7 @@ int scu_spitransfer(int slavesel, uint16_t *inst, uint32_t nr_insts,
int scu_i2ctransfer(int port, int slave, uint16_t *inst, uint32_t nr_insts,
uint8_t *buffer, int len);
/*
* Initialize SCU
/* Initialize SCU
*
* warning: This API called from board_app_initialize().
* Do not call this API from each sensor drivers.
@ -548,8 +522,7 @@ int scu_i2ctransfer(int port, int slave, uint16_t *inst, uint32_t nr_insts,
void scu_initialize(void);
/*
* Uninitialize SCU
/* Uninitialize SCU
*
* warning: This API called from board_app_initialize().
* Do not call this API from each sensor drivers.

View File

@ -36,14 +36,17 @@
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_TIMER_H
#define __ARCH_ARM_INCLUDE_CXD56XX_TIMER_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/timers/timer.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/*
* Set callback handler
/* Set callback handler
*
* param A pointer to struct timer_sethandler_s
* return ioctl return value provides success/failure indication

View File

@ -36,21 +36,20 @@
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_USBDEV_H
#define __ARCH_ARM_INCLUDE_CXD56XX_USBDEV_H
/********************************************************************************************
/****************************************************************************
* Included Files
********************************************************************************************/
****************************************************************************/
/********************************************************************************************
/****************************************************************************
* Pre-processor Definitions
********************************************************************************************/
****************************************************************************/
/* BOARDIOC_USBDEV_SETNOTIFYSIG signal value ************************************************/
/* BOARDIOC_USBDEV_SETNOTIFYSIG signal value ********************************/
#define USBDEV_STATE_DETACH 0
#define USBDEV_STATE_ATTACH 1
/*
* The BOARDIOC_USBDEV_SETNOTIFYSIG signal output the VBUS connection state
/* The BOARDIOC_USBDEV_SETNOTIFYSIG signal output the VBUS connection state
* and supply current value to the signal handler argument (sival_int).
*
* Please use the following macros.