cpu/lpc2387: fix typos

This commit is contained in:
Kaspar Schleiser 2019-10-23 21:13:53 +02:00
parent 3eea508695
commit c6a80b4f4b
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ extern "C" {
typedef struct {
/** @brief Direction: Output if corresponding bit is set, otherwise input */
__IO uint32_t DIR;
/** @brief 12 bytes of reseved memory we don't need to access */
/** @brief 12 bytes of reserved memory we don't need to access */
uint32_t _reserved[3];
/** @brief Set bits to ignore corresponding bits when accessing `PIN`, `SET`
* or `CLR` register of this port

View File

@ -191,7 +191,7 @@ uint32_t blank_check_sector(uint32_t tmp_sect1, uint32_t tmp_sect2)
/******************************************************************************
* Function: copy_ram_to_flash
*
* Description: This command is used to programm the flash memory. the affected should be
* Description: This command is used to program the flash memory. the affected should be
* prepared first by calling "Prepare Sector for Write Operation" command. the
* affected sectors are automatically protected again once the copy command is
* successfully executed. the boot sector cannot be written by this command.

View File

@ -252,7 +252,7 @@ static void start_transmission(unsigned char blks)
XferRp = 0; /* Block FIFO read index */
XferWc = blks;
XferStat = 2; /* Transfer status: Memroy --> MCI */
XferStat = 2; /* Transfer status: Memory --> MCI */
MCI_DATA_LEN = 512 * (blks + 1); /* Set total data length */
MCI_DATA_TMR = (unsigned long)(MCLK_RW * 0.5); /* Data timer: 0.5sec */
@ -383,7 +383,7 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign
assert(buff != NULL);
if (idx & 0x80) { /* Send a CMD55 prior to the specified command if it is ACMD class */
if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is faild, */
if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is failed, */
|| !(buff[0] & 0x00000020)) {
return 0; /* exit with error */
}