mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Fix typos
This commit is contained in:
committed by
Xiang Xiao
parent
a40b3d37ef
commit
dd718e78f7
@@ -594,7 +594,7 @@ static int nrf52_radio_pkt_cfg(struct nrf52_radio_dev_s *dev,
|
|||||||
|
|
||||||
pcnf1 |= (cfg->bal_len << RADIO_PCNF1_BALEN_SHIFT);
|
pcnf1 |= (cfg->bal_len << RADIO_PCNF1_BALEN_SHIFT);
|
||||||
|
|
||||||
/* Configure on-air endianess of packet */
|
/* Configure on-air endianness of packet */
|
||||||
|
|
||||||
pcnf1 |= (cfg->endian << RADIO_PCNF1_ENDIAN_SHIFT);
|
pcnf1 |= (cfg->endian << RADIO_PCNF1_ENDIAN_SHIFT);
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ struct nrf52_radio_pktcfg_s
|
|||||||
uint8_t pl_len; /* Preamble length */
|
uint8_t pl_len; /* Preamble length */
|
||||||
uint8_t term_len; /* TERM length */
|
uint8_t term_len; /* TERM length */
|
||||||
bool crcinc; /* LENGTH includes CRC */
|
bool crcinc; /* LENGTH includes CRC */
|
||||||
bool endian; /* On air endianess of packet:
|
bool endian; /* On air endianness of packet:
|
||||||
* 0 - little
|
* 0 - little
|
||||||
* 1 - big
|
* 1 - big
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ void __RAMRUN hal_spif_init(void)
|
|||||||
*(volatile uint32_t *) 0x4000c804 = 0x41220eb; /* Device Read Instruction Register */
|
*(volatile uint32_t *) 0x4000c804 = 0x41220eb; /* Device Read Instruction Register */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* load defualt configure */
|
/* load default configure */
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
|
|
||||||
#define RC32_TRACKINK_ALLOW 0x00000001 /* enable tracking RC 32KHz clock with 16MHz hclk */
|
#define RC32_TRACKINK_ALLOW 0x00000001 /* enable tracking RC 32KHz clock with 16MHz hclk */
|
||||||
#define SLAVE_LATENCY_ALLOW 0x00000002 /* slave latency allow switch */
|
#define SLAVE_LATENCY_ALLOW 0x00000002 /* slave latency allow switch */
|
||||||
#define LL_DEBUG_ALLOW 0x00000004 /* enable invoke RAM project debug output fucntion */
|
#define LL_DEBUG_ALLOW 0x00000004 /* enable invoke RAM project debug output function */
|
||||||
#define LL_WHITELIST_ALLOW 0x00000008 /* enable whitelist filter */
|
#define LL_WHITELIST_ALLOW 0x00000008 /* enable whitelist filter */
|
||||||
#define LL_RC32K_SEL 0x00000010 /* select RC32K RTC, otherwise select crystal 32K RTC */
|
#define LL_RC32K_SEL 0x00000010 /* select RC32K RTC, otherwise select crystal 32K RTC */
|
||||||
#define SIMUL_CONN_ADV_ALLOW 0x00000020 /* allow send adv in connect state */
|
#define SIMUL_CONN_ADV_ALLOW 0x00000020 /* allow send adv in connect state */
|
||||||
|
|||||||
@@ -5034,7 +5034,7 @@ static inline void rx65n_usbhost_edfree(struct rx65n_usbhost_ed_s *ed)
|
|||||||
static struct rx65n_usbhost_gtd_s *rx65n_usbhost_tdalloc(uint8_t ep_num)
|
static struct rx65n_usbhost_gtd_s *rx65n_usbhost_tdalloc(uint8_t ep_num)
|
||||||
{
|
{
|
||||||
/* Currently each TD would associate with one EP. So the ep_numb is
|
/* Currently each TD would associate with one EP. So the ep_numb is
|
||||||
* passed to tdalloc fucntion and it would return the TD with this,
|
* passed to tdalloc function and it would return the TD with this,
|
||||||
* there is no need to free this
|
* there is no need to free this
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -5686,7 +5686,7 @@ static int rx65n_usbhost_enqueuetd(struct rx65n_usbhost_s *priv,
|
|||||||
/* Allocate a TD from the free list */
|
/* Allocate a TD from the free list */
|
||||||
|
|
||||||
/* Currently each TD would associate with one EP. So the epnumb
|
/* Currently each TD would associate with one EP. So the epnumb
|
||||||
* is passed to tdalloc fucntion and it would return the TD with
|
* is passed to tdalloc function and it would return the TD with
|
||||||
* this, there is no need to free this - there is no need
|
* this, there is no need to free this - there is no need
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ choice
|
|||||||
default ARCH_BOARD_QEMU
|
default ARCH_BOARD_QEMU
|
||||||
|
|
||||||
config ARCH_BOARD_QEMU
|
config ARCH_BOARD_QEMU
|
||||||
bool "Qemu envrionment"
|
bool "Qemu environment"
|
||||||
---help---
|
---help---
|
||||||
Targeting virtualized qemu environment
|
Targeting virtualized qemu environment
|
||||||
|
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ int board_altmdm_initialize(const char *devpath)
|
|||||||
|
|
||||||
if (!g_devhandle)
|
if (!g_devhandle)
|
||||||
{
|
{
|
||||||
/* Initialize spi deivce */
|
/* Initialize spi device */
|
||||||
|
|
||||||
spi = cxd56_spibus_initialize(SPI_CH);
|
spi = cxd56_spibus_initialize(SPI_CH);
|
||||||
if (!spi)
|
if (!spi)
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ int board_bmi160_initialize(int bus)
|
|||||||
|
|
||||||
sninfo("Initializing BMI160..\n");
|
sninfo("Initializing BMI160..\n");
|
||||||
|
|
||||||
/* Initialize i2c deivce */
|
/* Initialize i2c device */
|
||||||
|
|
||||||
i2c = cxd56_i2cbus_initialize(bus);
|
i2c = cxd56_i2cbus_initialize(bus);
|
||||||
if (!i2c)
|
if (!i2c)
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int board_emmc_initialize(void)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the eMMC deivce */
|
/* Initialize the eMMC device */
|
||||||
|
|
||||||
ret = cxd56_emmcinitialize();
|
ret = cxd56_emmcinitialize();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@@ -74,7 +74,7 @@ int board_emmc_initialize(void)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mount the eMMC deivce */
|
/* Mount the eMMC device */
|
||||||
|
|
||||||
ret = nx_mount("/dev/emmc0", "/mnt/emmc", "vfat", 0, NULL);
|
ret = nx_mount("/dev/emmc0", "/mnt/emmc", "vfat", 0, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ int board_spisd_initialize(int minor, int bus)
|
|||||||
|
|
||||||
cxd56_gpio_config(MMCSD_DETECT, true);
|
cxd56_gpio_config(MMCSD_DETECT, true);
|
||||||
|
|
||||||
/* Initialize spi deivce */
|
/* Initialize spi device */
|
||||||
|
|
||||||
spi = cxd56_spibus_initialize(bus);
|
spi = cxd56_spibus_initialize(bus);
|
||||||
if (!spi)
|
if (!spi)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
||||||
* This can be changed by using a dcd by minipulating
|
* This can be changed by using a dcd by minipulating
|
||||||
* IOMUX GPR16 and GPR17.
|
* IOMUX GPR16 and GPR17.
|
||||||
* The configuartion we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
* The configuration we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
||||||
* 128Kib DTCM.
|
* 128Kib DTCM.
|
||||||
*
|
*
|
||||||
* This is the OCRAM inker script.
|
* This is the OCRAM inker script.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
||||||
* This can be changed by using a dcd by minipulating
|
* This can be changed by using a dcd by minipulating
|
||||||
* IOMUX GPR16 and GPR17.
|
* IOMUX GPR16 and GPR17.
|
||||||
* The configuartion we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
* The configuration we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
||||||
* 128Kib DTCM.
|
* 128Kib DTCM.
|
||||||
*
|
*
|
||||||
* This is the OCRAM inker script.
|
* This is the OCRAM inker script.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
* 256Kib to OCRRAM, 128Kib ITCM and 128Kib DTCM.
|
||||||
* This can be changed by using a dcd by minipulating
|
* This can be changed by using a dcd by minipulating
|
||||||
* IOMUX GPR16 and GPR17.
|
* IOMUX GPR16 and GPR17.
|
||||||
* The configuartion we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
* The configuration we will use is 384Kib to OCRRAM, 0Kib ITCM and
|
||||||
* 128Kib DTCM.
|
* 128Kib DTCM.
|
||||||
*
|
*
|
||||||
* This is the OCRAM inker script.
|
* This is the OCRAM inker script.
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
#define GPIO_LPSPI4_CS (GPIO_OUTPUT | GPIO_OUTPUT_ONE | \
|
#define GPIO_LPSPI4_CS (GPIO_OUTPUT | GPIO_OUTPUT_ONE | \
|
||||||
GPIO_PORT2 | GPIO_PIN0 | IOMUX_LPSPI4_CS)
|
GPIO_PORT2 | GPIO_PIN0 | IOMUX_LPSPI4_CS)
|
||||||
|
|
||||||
/* LCD dispay */
|
/* LCD display */
|
||||||
|
|
||||||
#define GPIO_LCD_RST (GPIO_OUTPUT | GPIO_OUTPUT_ONE | \
|
#define GPIO_LCD_RST (GPIO_OUTPUT | GPIO_OUTPUT_ONE | \
|
||||||
GPIO_PORT2 | GPIO_PIN18 | IOMUX_LPSPI4_CS) /* B1_02 */
|
GPIO_PORT2 | GPIO_PIN18 | IOMUX_LPSPI4_CS) /* B1_02 */
|
||||||
|
|||||||
@@ -603,7 +603,7 @@ Where <subdir> is one of the following:
|
|||||||
At last attempt, the SPI-based mircroSD does not work at
|
At last attempt, the SPI-based mircroSD does not work at
|
||||||
higher fequencies. Setting the SPI frequency to 400000
|
higher fequencies. Setting the SPI frequency to 400000
|
||||||
removes the problem. There must be some more optimal
|
removes the problem. There must be some more optimal
|
||||||
value that could be determined with additional experimetnation.
|
value that could be determined with additional experimentation.
|
||||||
|
|
||||||
Jumpers: J55 must be set to provide chip select PIO1_11 signal as
|
Jumpers: J55 must be set to provide chip select PIO1_11 signal as
|
||||||
the SD slot chip select.
|
the SD slot chip select.
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ int board_spisd_initialize(int minor, int bus)
|
|||||||
int ret;
|
int ret;
|
||||||
struct spi_dev_s *spi;
|
struct spi_dev_s *spi;
|
||||||
|
|
||||||
/* Initialize spi deivce */
|
/* Initialize spi device */
|
||||||
|
|
||||||
spi = rp2040_spibus_initialize(bus);
|
spi = rp2040_spibus_initialize(bus);
|
||||||
if (!spi)
|
if (!spi)
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ static ssize_t smbus_sbd_write(struct file *filep, const char *buffer,
|
|||||||
* arg - Pointer to the SMBus Smart Battery Data slave device struct
|
* arg - Pointer to the SMBus Smart Battery Data slave device struct
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* OK if a new write buffer was succesfully registered in response to the
|
* OK if a new write buffer was successfully registered in response to the
|
||||||
* received command; A negated errno value is returned on any failure.
|
* received command; A negated errno value is returned on any failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ int board_lcd_initialize(void)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcdinfo("Succesfully initialized SSD1306 on LPI2C0\n");
|
lcdinfo("Successfully initialized SSD1306 on LPI2C0\n");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("s32k3xx_spidev_initialize() succesful\n");
|
_info("s32k3xx_spidev_initialize() successful\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("btn_lower_initialize() succesful\n");
|
_info("btn_lower_initialize() successful\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("userled_lower_initialize() succesful\n");
|
_info("userled_lower_initialize() successful\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("Mounting procfs at /proc succesful\n");
|
_info("Mounting procfs at /proc successful\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("s32k3xx_i2cdev_initialize() succesful\n");
|
_info("s32k3xx_i2cdev_initialize() successful\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("s32k3xx_qspi_initialize() succesful\n");
|
_info("s32k3xx_qspi_initialize() successful\n");
|
||||||
|
|
||||||
/* Use the QSPI device instance to initialize the MX25 device */
|
/* Use the QSPI device instance to initialize the MX25 device */
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("mx25rxx_initialize() succesful\n");
|
_info("mx25rxx_initialize() successful\n");
|
||||||
|
|
||||||
# ifdef HAVE_MX25L_LITTLEFS
|
# ifdef HAVE_MX25L_LITTLEFS
|
||||||
/* Configure the device with no partition support */
|
/* Configure the device with no partition support */
|
||||||
@@ -199,7 +199,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("register_mtddriver() succesful\n");
|
_info("register_mtddriver() successful\n");
|
||||||
|
|
||||||
ret = nx_mount(blockdev, "/mnt/qspi", "littlefs", 0, NULL);
|
ret = nx_mount(blockdev, "/mnt/qspi", "littlefs", 0, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
@@ -212,7 +212,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("nx_mount() succesful\n");
|
_info("nx_mount() successful\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -227,7 +227,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("nxffs_initialize() succesful\n");
|
_info("nxffs_initialize() successful\n");
|
||||||
|
|
||||||
/* Mount the file system at /mnt/qspi */
|
/* Mount the file system at /mnt/qspi */
|
||||||
|
|
||||||
@@ -238,7 +238,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("nx_mount() succesful\n");
|
_info("nx_mount() successful\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ int s32k3xx_bringup(void)
|
|||||||
# ifdef CONFIG_BCH
|
# ifdef CONFIG_BCH
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("ftl_initialize() succesful\n");
|
_info("ftl_initialize() successful\n");
|
||||||
|
|
||||||
/* Use the minor number to create device paths */
|
/* Use the minor number to create device paths */
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ int s32k3xx_bringup(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_info("bchdev_register %s succesful\n", chardev);
|
_info("bchdev_register %s successful\n", chardev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif /* CONFIG_BCH */
|
# endif /* CONFIG_BCH */
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ static int s32k3xx_selftest_se050(void)
|
|||||||
|
|
||||||
if (lpi2c1 != NULL)
|
if (lpi2c1 != NULL)
|
||||||
{
|
{
|
||||||
_info("s32k3xx_i2cbus_initialize() succesful\n");
|
_info("s32k3xx_i2cbus_initialize() successful\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ static int s32k3xx_selftest_se050(void)
|
|||||||
ret = I2C_TRANSFER(lpi2c1, &se050_msg, 1);
|
ret = I2C_TRANSFER(lpi2c1, &se050_msg, 1);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
_info("SE050 ACK succesful\n");
|
_info("SE050 ACK successful\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -123,7 +123,7 @@ static int s32k3xx_selftest_se050(void)
|
|||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
_info("s32k3xx_i2cbus_uninitialize() succesful\n");
|
_info("s32k3xx_i2cbus_uninitialize() successful\n");
|
||||||
|
|
||||||
/* Return error if we had any earlier, otherwise return result of
|
/* Return error if we had any earlier, otherwise return result of
|
||||||
* s32k3xx_i2cbus_uninitialize()
|
* s32k3xx_i2cbus_uninitialize()
|
||||||
@@ -244,7 +244,7 @@ static int s32k3xx_selftest_can(void)
|
|||||||
{
|
{
|
||||||
if (s32k3xx_gpioread(errn_pins[i]))
|
if (s32k3xx_gpioread(errn_pins[i]))
|
||||||
{
|
{
|
||||||
_info("CAN%d flag check succesful\n", i);
|
_info("CAN%d flag check successful\n", i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -353,7 +353,7 @@ static int s32k3xx_selftest_sct(void)
|
|||||||
{
|
{
|
||||||
if (s32k3xx_gpioread(rxd_pins[i - 4]))
|
if (s32k3xx_gpioread(rxd_pins[i - 4]))
|
||||||
{
|
{
|
||||||
_info("CAN%d RXD high check succesful\n", i);
|
_info("CAN%d RXD high check successful\n", i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -379,7 +379,7 @@ static int s32k3xx_selftest_sct(void)
|
|||||||
{
|
{
|
||||||
if (!s32k3xx_gpioread(rxd_pins[i - 4]))
|
if (!s32k3xx_gpioread(rxd_pins[i - 4]))
|
||||||
{
|
{
|
||||||
_info("CAN%d RXD low check succesful\n", i);
|
_info("CAN%d RXD low check successful\n", i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -457,7 +457,7 @@ void s32k3xx_selftest(void)
|
|||||||
|
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
_info("s32k3xx_selftest() succesful\n");
|
_info("s32k3xx_selftest() successful\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ int s32k3xx_tja1153_initialize(int bus)
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(sock);
|
close(sock);
|
||||||
_info("CAN%d TJA1153 configuration succesful\n", bus);
|
_info("CAN%d TJA1153 configuration successful\n", bus);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2572,7 +2572,7 @@ I2C Tool
|
|||||||
o The I2C dev command may have bad side effects on your I2C devices.
|
o The I2C dev command may have bad side effects on your I2C devices.
|
||||||
Use only at your own risk.
|
Use only at your own risk.
|
||||||
|
|
||||||
As an example, the I2C dev comman can be used to list all devices
|
As an example, the I2C dev command can be used to list all devices
|
||||||
responding on TWI0 (the default) like this:
|
responding on TWI0 (the default) like this:
|
||||||
|
|
||||||
nsh> i2c dev 0x03 0x77
|
nsh> i2c dev 0x03 0x77
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ static void board_foc_trace(struct foc_dev_s *dev, int type, bool state);
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* OPAMP confuguration:
|
/* OPAMP configuration:
|
||||||
* - connected with ADC through output pin (OPAINTOEN=0)
|
* - connected with ADC through output pin (OPAINTOEN=0)
|
||||||
* - Current U+ - OPAMP1_VINP0 (PA1)
|
* - Current U+ - OPAMP1_VINP0 (PA1)
|
||||||
* - Current U- - OPAMP1_VINP0 (PA3)
|
* - Current U- - OPAMP1_VINP0 (PA3)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* FOC ADC configration:
|
/* FOC ADC configuration:
|
||||||
* - Current Phase V -> ADC1 INJ1 -> ADC1_IN0 (PA0)
|
* - Current Phase V -> ADC1 INJ1 -> ADC1_IN0 (PA0)
|
||||||
* - Current Phase U -> ADC1 INJ2 -> ADC1_IN11 (PC1)
|
* - Current Phase U -> ADC1 INJ2 -> ADC1_IN11 (PC1)
|
||||||
* - Current Phase W -> ADC1 INJ3 -> ADC1_IN10 (PC0)
|
* - Current Phase W -> ADC1 INJ3 -> ADC1_IN10 (PC0)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* FOC ADC configration:
|
/* FOC ADC configuration:
|
||||||
* - Current Phase V -> ADC1 INJ1 -> ADC1_IN2 (PA1)
|
* - Current Phase V -> ADC1 INJ1 -> ADC1_IN2 (PA1)
|
||||||
* - Current Phase U -> ADC1 INJ2 -> ADC1_IN12 (PB1)
|
* - Current Phase U -> ADC1 INJ2 -> ADC1_IN12 (PB1)
|
||||||
* - Current Phase W -> ADC1 INJ3 -> ADC1_IN15 (PB0)
|
* - Current Phase W -> ADC1 INJ3 -> ADC1_IN15 (PB0)
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ config ARCH_BOARD_FLASH_PART1_FS_SMARTFS
|
|||||||
when flashing new software, unless you exceeded reserved
|
when flashing new software, unless you exceeded reserved
|
||||||
memory for program code.
|
memory for program code.
|
||||||
|
|
||||||
Smartfs uses quite substential ammount of FLASH data to
|
Smartfs uses quite substential amount of FLASH data to
|
||||||
get to workable state and mount. Looks like 8 page sizes
|
get to workable state and mount. Looks like 8 page sizes
|
||||||
is absolute minimum (so a 16KiB!).
|
is absolute minimum (so a 16KiB!).
|
||||||
|
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ Serial Console
|
|||||||
|
|
||||||
NSH is configured to use LPUART and virtual serial port. After flashing
|
NSH is configured to use LPUART and virtual serial port. After flashing
|
||||||
you can open /dev/ttyACM0 (may change depending on your system) and nsh
|
you can open /dev/ttyACM0 (may change depending on your system) and nsh
|
||||||
prompt will be waiting for you there. Serial device does not disapear
|
prompt will be waiting for you there. Serial device does not disappear
|
||||||
when flashing and reseting board - it can be left opened and flashing
|
when flashing and resetting board - it can be left opened and flashing
|
||||||
will work without problems.
|
will work without problems.
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
* PA1 - Button 2
|
* PA1 - Button 2
|
||||||
* PC6 - Button 3
|
* PC6 - Button 3
|
||||||
*
|
*
|
||||||
* Buttons need to be pulled up internaly by chip,
|
* Buttons need to be pulled up internally by chip,
|
||||||
* and button press will pull pin down to LOW level.
|
* and button press will pull pin down to LOW level.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ int stm32wl5_flash_init(void)
|
|||||||
finfo("[%s] creating partition, size: %d, fs: %s, offset: %d\n",
|
finfo("[%s] creating partition, size: %d, fs: %s, offset: %d\n",
|
||||||
name, size, fs, offset);
|
name, size, fs, offset);
|
||||||
|
|
||||||
/* create mtd parition */
|
/* create mtd partition */
|
||||||
|
|
||||||
mtd_part = mtd_partition(mtd, offset, size);
|
mtd_part = mtd_partition(mtd, offset, size);
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ int stm32wl5_flash_init(void)
|
|||||||
ferr("[%s]ERROR: nx_mount failed: %d\n", name, ret);
|
ferr("[%s]ERROR: nx_mount failed: %d\n", name, ret);
|
||||||
if (ret == ENODEV)
|
if (ret == ENODEV)
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO, "[%s] mtd, smartfs seems unformated. "
|
syslog(LOG_INFO, "[%s] mtd, smartfs seems unformatted. "
|
||||||
"Did you run 'mksmartfs %s'?\n", name, src);
|
"Did you run 'mksmartfs %s'?\n", name, src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ SECTIONS
|
|||||||
PROVIDE(_rstored_ = . );
|
PROVIDE(_rstored_ = . );
|
||||||
PROVIDE(_code_size_ = .);
|
PROVIDE(_code_size_ = .);
|
||||||
|
|
||||||
/* __LOAD_FLASH for MCU RUN IN Flash 0x100 alighned, must greater
|
/* __LOAD_FLASH for MCU RUN IN Flash 0x100 aligned, must greater
|
||||||
* than or equal to : 0x808000 + ram_code_size + irq_vector(0x100) +
|
* than or equal to : 0x808000 + ram_code_size + irq_vector(0x100) +
|
||||||
* IC_tag(0x100) + IC_cache(0x800) == 0x808a00 + ram_code_size
|
* IC_tag(0x100) + IC_cache(0x800) == 0x808a00 + ram_code_size
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ SECTIONS
|
|||||||
PROVIDE(_rstored_ = . );
|
PROVIDE(_rstored_ = . );
|
||||||
PROVIDE(_code_size_ = .);
|
PROVIDE(_code_size_ = .);
|
||||||
|
|
||||||
/* __LOAD_FLASH for MCU RUN IN Flash 0x100 alighned, must greater
|
/* __LOAD_FLASH for MCU RUN IN Flash 0x100 aligned, must greater
|
||||||
* than or equal to : 0x808000 + ram_code_size + irq_vector(0x100) +
|
* than or equal to : 0x808000 + ram_code_size + irq_vector(0x100) +
|
||||||
* IC_tag(0x100) + IC_cache(0x800) == 0x808a00 + ram_code_size
|
* IC_tag(0x100) + IC_cache(0x800) == 0x808a00 + ram_code_size
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ Getting Started
|
|||||||
Configuring NuttX and compile:
|
Configuring NuttX and compile:
|
||||||
$ ./tools/configure.sh -l qemu-a53:nsh_smp
|
$ ./tools/configure.sh -l qemu-a53:nsh_smp
|
||||||
$ make
|
$ make
|
||||||
Runing with qemu
|
Running with qemu
|
||||||
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
|
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
|
||||||
-machine virt,virtualization=on,gic-version=3 \
|
-machine virt,virtualization=on,gic-version=3 \
|
||||||
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
|
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
|
||||||
@@ -98,7 +98,7 @@ Status
|
|||||||
Running ostest seem PASSED.
|
Running ostest seem PASSED.
|
||||||
|
|
||||||
2.qemu-a53 board configuration support: qemu-a53 board can configuring
|
2.qemu-a53 board configuration support: qemu-a53 board can configuring
|
||||||
and compiling, And runing with qemu-system-aarch64
|
and compiling, And running with qemu-system-aarch64
|
||||||
at Ubuntu 18.04.
|
at Ubuntu 18.04.
|
||||||
3.FPU support for armv8-a: FPU context switching in NEON/floating-point
|
3.FPU support for armv8-a: FPU context switching in NEON/floating-point
|
||||||
TRAP was supported. FPU registers saving at vfork and independent
|
TRAP was supported. FPU registers saving at vfork and independent
|
||||||
@@ -196,7 +196,7 @@ the content of FP registers used for floating point argument passing
|
|||||||
into the va_list object in case there were actual float arguments from
|
into the va_list object in case there were actual float arguments from
|
||||||
the caller. But In practice this is almost never the case.
|
the caller. But In practice this is almost never the case.
|
||||||
Seeing the save_count/restore_count at the g_cpu_fpu_ctx, which will
|
Seeing the save_count/restore_count at the g_cpu_fpu_ctx, which will
|
||||||
be increase when saving/restoring FPU context. After runing ostest,
|
be increase when saving/restoring FPU context. After running ostest,
|
||||||
we can see the count with GDB:
|
we can see the count with GDB:
|
||||||
|
|
||||||
(gdb) p g_cpu_fpu_ctx
|
(gdb) p g_cpu_fpu_ctx
|
||||||
@@ -218,7 +218,7 @@ index c58fb45512..acac6febaa
|
|||||||
VPATH += :syslog
|
VPATH += :syslog
|
||||||
+syslog/lib_syslog.c_CFLAGS += -mgeneral-regs-only
|
+syslog/lib_syslog.c_CFLAGS += -mgeneral-regs-only
|
||||||
|
|
||||||
With the option to make NuttX and booting. After runing ostest, see
|
With the option to make NuttX and booting. After running ostest, see
|
||||||
the count with GDB again:
|
the count with GDB again:
|
||||||
|
|
||||||
(gdb) p g_cpu_fpu_ctx
|
(gdb) p g_cpu_fpu_ctx
|
||||||
@@ -240,7 +240,7 @@ Add the option to your code maybe increase FPU performance
|
|||||||
handling for this case, it will inc/dec at enter/leave exception. If the
|
handling for this case, it will inc/dec at enter/leave exception. If the
|
||||||
exception_depth > 1, that means an exception occurring when another exception
|
exception_depth > 1, that means an exception occurring when another exception
|
||||||
is executing, the present implement is to switch FPU context to idle thread,
|
is executing, the present implement is to switch FPU context to idle thread,
|
||||||
it will handle most case for calling printf-like rountine at IRQ routine.
|
it will handle most case for calling printf-like routine at IRQ routine.
|
||||||
But in fact, this case will make uncertainty interrupt processing time sine
|
But in fact, this case will make uncertainty interrupt processing time sine
|
||||||
it's uncertainty for trap exception handling. It would be best to add
|
it's uncertainty for trap exception handling. It would be best to add
|
||||||
"-mgeneral-regs-only" option to compile the IRQ code avoiding accessing FP
|
"-mgeneral-regs-only" option to compile the IRQ code avoiding accessing FP
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ README
|
|||||||
script; /etc/passwd is a the password file. It supports a single user:
|
script; /etc/passwd is a the password file. It supports a single user:
|
||||||
|
|
||||||
USERNAME: admin
|
USERNAME: admin
|
||||||
PASSWORD: Adminstrator
|
PASSWORD: Administrator
|
||||||
|
|
||||||
nsh> cat /etc/passwd
|
nsh> cat /etc/passwd
|
||||||
admin:8Tv+Hbmr3pLddSjtzL0kwC:0:0:/
|
admin:8Tv+Hbmr3pLddSjtzL0kwC:0:0:/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ README
|
|||||||
script; /etc/passwd is a the password file. It supports a single user:
|
script; /etc/passwd is a the password file. It supports a single user:
|
||||||
|
|
||||||
USERNAME: admin
|
USERNAME: admin
|
||||||
PASSWORD: Adminstrator
|
PASSWORD: Administrator
|
||||||
|
|
||||||
nsh> cat /etc/passwd
|
nsh> cat /etc/passwd
|
||||||
admin:8Tv+Hbmr3pLddSjtzL0kwC:0:0:/
|
admin:8Tv+Hbmr3pLddSjtzL0kwC:0:0:/
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
|||||||
# The following options are for the toolchain from T-HEAD.
|
# The following options are for the toolchain from T-HEAD.
|
||||||
# For more info ahout the T-HEAD ISA extensions, please refer to the C906 user guide.
|
# For more info ahout the T-HEAD ISA extensions, please refer to the C906 user guide.
|
||||||
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mtune=c906 -mcmodel=medany
|
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mtune=c906 -mcmodel=medany
|
||||||
# TODO: We are not going to enable this at this time for the CI compatiblity.
|
# TODO: We are not going to enable this at this time for the CI compatibility.
|
||||||
|
|
||||||
ARCHCPUFLAGS += -mcmodel=medany
|
ARCHCPUFLAGS += -mcmodel=medany
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ void board_autoled_initialize(void)
|
|||||||
* Name: board_autoled_on
|
* Name: board_autoled_on
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn on the LED specificed.
|
* Turn on the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
@@ -63,7 +63,7 @@ void board_autoled_on(int led)
|
|||||||
* Name: board_autoled_off
|
* Name: board_autoled_off
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn off the LED specificed.
|
* Turn off the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
|||||||
# The following options are for the toolchain from T-HEAD.
|
# The following options are for the toolchain from T-HEAD.
|
||||||
# For more info ahout the T-HEAD ISA extensions, please refer to the MPFS user guide.
|
# For more info ahout the T-HEAD ISA extensions, please refer to the MPFS user guide.
|
||||||
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mcmodel=medany
|
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mcmodel=medany
|
||||||
# TODO: We are not going to enable this at this time for the CI compatiblity.
|
# TODO: We are not going to enable this at this time for the CI compatibility.
|
||||||
|
|
||||||
ARCHCPUFLAGS += -mcmodel=medany
|
ARCHCPUFLAGS += -mcmodel=medany
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void board_autoled_initialize(void)
|
|||||||
* Name: board_autoled_on
|
* Name: board_autoled_on
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn on the LED specificed.
|
* Turn on the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
@@ -115,7 +115,7 @@ void board_autoled_on(int led)
|
|||||||
* Name: board_autoled_off
|
* Name: board_autoled_off
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn off the LED specificed.
|
* Turn off the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
|||||||
# The following options are for the toolchain from T-HEAD.
|
# The following options are for the toolchain from T-HEAD.
|
||||||
# For more info ahout the T-HEAD ISA extensions, please refer to the MPFS user guide.
|
# For more info ahout the T-HEAD ISA extensions, please refer to the MPFS user guide.
|
||||||
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mcmodel=medany
|
# ARCHCPUFLAGS = -march=rv64gcxthead -mabi=lp64d -mcmodel=medany
|
||||||
# TODO: We are not going to enable this at this time for the CI compatiblity.
|
# TODO: We are not going to enable this at this time for the CI compatibility.
|
||||||
|
|
||||||
ARCHCPUFLAGS += -mcmodel=medany
|
ARCHCPUFLAGS += -mcmodel=medany
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ void board_autoled_initialize(void)
|
|||||||
* Name: board_autoled_on
|
* Name: board_autoled_on
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn on the LED specificed.
|
* Turn on the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
@@ -73,7 +73,7 @@ void board_autoled_on(int led)
|
|||||||
* Name: board_autoled_off
|
* Name: board_autoled_off
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Turn off the LED specificed.
|
* Turn off the LED specified.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* led - The LED which is under this control
|
* led - The LED which is under this control
|
||||||
|
|||||||
@@ -232,8 +232,8 @@ nsh-itcm
|
|||||||
This configuration is a variant of the NSH configuration used for
|
This configuration is a variant of the NSH configuration used for
|
||||||
demonstrating ITCM. When ITCM is selected, RI5CY Exception Vectors and
|
demonstrating ITCM. When ITCM is selected, RI5CY Exception Vectors and
|
||||||
Interrupt Service Routines are placed in ITCM. Performance can be calculated
|
Interrupt Service Routines are placed in ITCM. Performance can be calculated
|
||||||
by getprime, and you might find it deteriorated a litte ironically. The drawback
|
by getprime, and you might find it deteriorated a little ironically. The drawback
|
||||||
may be caused by long jump frequently between ITCM and flash. Besides, an instr-
|
may be caused by long jump frequently between ITCM and flash. Besides, an instr-
|
||||||
uction cache is enabled always after RI5CY resets, and amelioration could not be
|
uction cache is enabled always after RI5CY resets, and amelioration could not be
|
||||||
achieved with even ITCM enabled.
|
achieved with even ITCM enabled.
|
||||||
What if codes fullfill the 64KB ITCM ?
|
What if codes fulfill the 64KB ITCM ?
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ config SIM_WTGAHRS2_UARTN
|
|||||||
default -1
|
default -1
|
||||||
depends on SENSORS_WTGAHRS2 && SIM_UART_NUMBER > 0
|
depends on SENSORS_WTGAHRS2 && SIM_UART_NUMBER > 0
|
||||||
---help---
|
---help---
|
||||||
We can select the number accoding to which SIM_UARTX_NAME is uesd to sensor.
|
We can select the number according to which SIM_UARTX_NAME is used to sensor.
|
||||||
This range is 0-4.
|
This range is 0-4.
|
||||||
|
|
||||||
config SIM_I2CBUS_ID
|
config SIM_I2CBUS_ID
|
||||||
|
|||||||
@@ -1382,7 +1382,7 @@ ustream
|
|||||||
vncserver
|
vncserver
|
||||||
|
|
||||||
This a simple vnc server test configuration, Remmina is tested and recommended since
|
This a simple vnc server test configuration, Remmina is tested and recommended since
|
||||||
there are some compatibility issues. By defualt SIM will be blocked at startup to
|
there are some compatibility issues. By default SIM will be blocked at startup to
|
||||||
wait client connection, if a client connected, then the fb example will launch.
|
wait client connection, if a client connected, then the fb example will launch.
|
||||||
|
|
||||||
vpnkit
|
vpnkit
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ config XX3803_WDG_TIMEOUT
|
|||||||
|
|
||||||
if XX3803_WDG
|
if XX3803_WDG
|
||||||
config XX3803_WDG_THREAD
|
config XX3803_WDG_THREAD
|
||||||
bool "Watchdog Deamon Thread"
|
bool "Watchdog Daemon Thread"
|
||||||
|
|
||||||
if XX3803_WDG_THREAD
|
if XX3803_WDG_THREAD
|
||||||
config XX3803_WDG_THREAD_NAME
|
config XX3803_WDG_THREAD_NAME
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All bm3803 architectures must provide the following entry point.
|
* All bm3803 architectures must provide the following entry point.
|
||||||
* This entry point is called early in the intitialization -- after all
|
* This entry point is called early in the initialization -- after all
|
||||||
* memory has been configured and mapped but before any devices have been
|
* memory has been configured and mapped but before any devices have been
|
||||||
* initialized.
|
* initialized.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All bm3823 architectures must provide the following entry point.
|
* All bm3823 architectures must provide the following entry point.
|
||||||
* This entry point is called early in the intitialization -- after all
|
* This entry point is called early in the initialization -- after all
|
||||||
* memory has been configured and mapped but before any devices have been
|
* memory has been configured and mapped but before any devices have been
|
||||||
* initialized.
|
* initialized.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Contents
|
|||||||
|
|
||||||
o ZDS-II Compiler Versions
|
o ZDS-II Compiler Versions
|
||||||
o Environments
|
o Environments
|
||||||
o Memory Constaints
|
o Memory Constraints
|
||||||
o Serial Console
|
o Serial Console
|
||||||
o LEDs and Buttons
|
o LEDs and Buttons
|
||||||
- LEDs
|
- LEDs
|
||||||
@@ -83,7 +83,7 @@ Native
|
|||||||
The Windows native build has not been attempt. I would expect that it
|
The Windows native build has not been attempt. I would expect that it
|
||||||
would have numerous problems.
|
would have numerous problems.
|
||||||
|
|
||||||
Memory Constaints
|
Memory Constraints
|
||||||
=================
|
=================
|
||||||
|
|
||||||
The eZ80F92 has a smaller FLASH memory of 128Kb. That combined with the
|
The eZ80F92 has a smaller FLASH memory of 128Kb. That combined with the
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ static ssize_t rwb_writebuffer(FAR struct rwbuffer_s *rwb,
|
|||||||
#ifdef CONFIG_DRVR_READAHEAD
|
#ifdef CONFIG_DRVR_READAHEAD
|
||||||
static inline void rwb_resetrhbuffer(FAR struct rwbuffer_s *rwb)
|
static inline void rwb_resetrhbuffer(FAR struct rwbuffer_s *rwb)
|
||||||
{
|
{
|
||||||
/* We assume that the caller holds the readAheadBufferSemphore */
|
/* We assume that the caller holds the readAheadBufferSemaphore */
|
||||||
|
|
||||||
rwb->rhnblocks = 0;
|
rwb->rhnblocks = 0;
|
||||||
rwb->rhblockstart = -1;
|
rwb->rhblockstart = -1;
|
||||||
@@ -436,9 +436,10 @@ rwb_bufferread(FAR struct rwbuffer_s *rwb, off_t startblock,
|
|||||||
{
|
{
|
||||||
FAR uint8_t *rhbuffer;
|
FAR uint8_t *rhbuffer;
|
||||||
|
|
||||||
/* We assume that (1) the caller holds the readAheadBufferSemphore, and (2)
|
/* We assume that:
|
||||||
* that the caller already knows that all of the blocks are in the
|
* (1) the caller holds the readAheadBufferSemaphore, and
|
||||||
* read-ahead buffer.
|
* (2) the caller already knows that all of the blocks are in the
|
||||||
|
* read-ahead buffer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Convert the units from blocks to bytes */
|
/* Convert the units from blocks to bytes */
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ void nx_start(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Disables context switching beacuse we need take the memory manager
|
/* Disables context switching because we need take the memory manager
|
||||||
* semaphore on this CPU so that it will not be available on the other
|
* semaphore on this CPU so that it will not be available on the other
|
||||||
* CPUs until we have finished initialization.
|
* CPUs until we have finished initialization.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -989,7 +989,7 @@ void nxsem_release_holder(FAR sem_t *sem)
|
|||||||
|
|
||||||
if (total == 1)
|
if (total == 1)
|
||||||
{
|
{
|
||||||
/* If the sempahore has only one holder, we can decrement the counts
|
/* If the semaphore has only one holder, we can decrement the counts
|
||||||
* simply.
|
* simply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user