fix nxstyle

corrected comments in C89 style
This commit is contained in:
simbit18 2024-05-09 14:14:32 +02:00 committed by Xiang Xiao
parent a1f5fd4e72
commit 792b99473c
4 changed files with 20 additions and 20 deletions

View File

@ -83,22 +83,22 @@
/* TPM0 Channels */ /* TPM0 Channels */
#define GPIO_TPM0_CH0OUT PIN_TPM0_CH0_2 // Pin 22: PTC1 #define GPIO_TPM0_CH0OUT PIN_TPM0_CH0_2 /* Pin 22: PTC1 */
#define GPIO_TPM0_CH1OUT PIN_TPM0_CH1_2 // Pin 23: PTC2 #define GPIO_TPM0_CH1OUT PIN_TPM0_CH1_2 /* Pin 23: PTC2 */
#define GPIO_TPM0_CH2OUT PIN_TPM0_CH2_2 // Pin 9: PTC3 #define GPIO_TPM0_CH2OUT PIN_TPM0_CH2_2 /* Pin 9: PTC3 */
#define GPIO_TPM0_CH3OUT PIN_TPM0_CH3_1 // Pin 10: PTC4 #define GPIO_TPM0_CH3OUT PIN_TPM0_CH3_1 /* Pin 10: PTC4 */
#define GPIO_TPM0_CH4OUT PIN_TPM0_CH4_2 // Pin 6: PTD4 #define GPIO_TPM0_CH4OUT PIN_TPM0_CH4_2 /* Pin 6: PTD4 */
#define GPIO_TPM0_CH5OUT PIN_TPM0_CH5_3 // Pin 20: PTD5 #define GPIO_TPM0_CH5OUT PIN_TPM0_CH5_3 /* Pin 20: PTD5 */
/* TPM1 Channels */ /* TPM1 Channels */
#define GPIO_TPM1_CH0OUT PIN_TPM1_CH0_2 // Pin 16: PTB0 #define GPIO_TPM1_CH0OUT PIN_TPM1_CH0_2 /* Pin 16: PTB0 */
#define GPIO_TPM1_CH1OUT PIN_TPM1_CH1_2 // Pin 17: PTB1 #define GPIO_TPM1_CH1OUT PIN_TPM1_CH1_2 /* Pin 17: PTB1 */
/* TPM2 Channels */ /* TPM2 Channels */
#define GPIO_TPM2_CH0OUT PIN_TPM2_CH0_1 // Pin 3: PTA1 #define GPIO_TPM2_CH0OUT PIN_TPM2_CH0_1 /* Pin 3: PTA1 */
#define GPIO_TPM2_CH1OUT PIN_TPM2_CH1_1 // Pin 4: PTA2 #define GPIO_TPM2_CH1OUT PIN_TPM2_CH1_1 /* Pin 4: PTA2 */
/* LED definitions **********************************************************/ /* LED definitions **********************************************************/
@ -122,12 +122,12 @@
* LED. Use pin 14 instead. * LED. Use pin 14 instead.
*/ */
#define PIN_SPI0_SCK (PIN_SPI0_SCK_3 | PIN_ALT2_PULLUP) // Pin 14: PTD1 #define PIN_SPI0_SCK (PIN_SPI0_SCK_3 | PIN_ALT2_PULLUP) /* Pin 14: PTD1 */
#define PIN_SPI0_MISO (PIN_SPI0_MISO_4 | PIN_ALT2_PULLUP) // Pin 12: PTC7 #define PIN_SPI0_MISO (PIN_SPI0_MISO_4 | PIN_ALT2_PULLUP) /* Pin 12: PTC7 */
#define PIN_SPI0_MOSI (PIN_SPI0_MOSI_3 | PIN_ALT2_PULLUP) // Pin 11: PTC6 #define PIN_SPI0_MOSI (PIN_SPI0_MOSI_3 | PIN_ALT2_PULLUP) /* Pin 11: PTC6 */
#define PIN_SPI1_SCK (PIN_SPI1_SCK_2 | PIN_ALT2_PULLUP) // Pin 20: PTD5 #define PIN_SPI1_SCK (PIN_SPI1_SCK_2 | PIN_ALT2_PULLUP) /* Pin 20: PTD5 */
#define PIN_SPI1_MISO (PIN_SPI1_MISO_2 | PIN_ALT2_PULLUP) // Pin 1: PTB17 #define PIN_SPI1_MISO (PIN_SPI1_MISO_2 | PIN_ALT2_PULLUP) /* Pin 1: PTB17 */
#define PIN_SPI1_MOSI (PIN_SPI0_MOSI_1 | PIN_ALT2_PULLUP) // Pin 0: PTB16 #define PIN_SPI1_MOSI (PIN_SPI0_MOSI_1 | PIN_ALT2_PULLUP) /* Pin 0: PTB16 */
#endif /* __BOARDS_ARM_KL_TEENSY_LC_INCLUDE_BOARD_H */ #endif /* __BOARDS_ARM_KL_TEENSY_LC_INCLUDE_BOARD_H */

View File

@ -65,8 +65,8 @@ extern int phyplus_timer_initialize(const char *devpath, int timer);
* Called from the NSH library * Called from the NSH library
* *
****************************************************************************/ ****************************************************************************/
#define PPLUS_MTD_START_OFFSET 0x60000 //start from 384k offset #define PPLUS_MTD_START_OFFSET 0x60000 /* start from 384k offset */
#define PPLUS_MTD_SIZE 0x20000 //mtd size is 128k bytes #define PPLUS_MTD_SIZE 0x20000 /* mtd size is 128k bytes */
int phy62xx_bringup(void) int phy62xx_bringup(void)
{ {

View File

@ -85,7 +85,7 @@
* The unit is 10 millisecond. * The unit is 10 millisecond.
*/ */
#define AK09912_POLLING_TIMEOUT (1) // 10 ms #define AK09912_POLLING_TIMEOUT (1) /* 10 ms */
/* The parameter for compensating. */ /* The parameter for compensating. */

View File

@ -1031,7 +1031,7 @@ mipi_dsi_device_register(FAR struct mipi_dsi_host *host,
kmm_free(dev); kmm_free(dev);
dev = NULL; dev = NULL;
} }
#endif // CONFIG_MIPI_DSI_DRIVER #endif /* CONFIG_MIPI_DSI_DRIVER */
} }
return dev; return dev;