cpu/lpc2387: fix typos
This commit is contained in:
parent
3eea508695
commit
c6a80b4f4b
@ -45,7 +45,7 @@ extern "C" {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
/** @brief Direction: Output if corresponding bit is set, otherwise input */
|
/** @brief Direction: Output if corresponding bit is set, otherwise input */
|
||||||
__IO uint32_t DIR;
|
__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];
|
uint32_t _reserved[3];
|
||||||
/** @brief Set bits to ignore corresponding bits when accessing `PIN`, `SET`
|
/** @brief Set bits to ignore corresponding bits when accessing `PIN`, `SET`
|
||||||
* or `CLR` register of this port
|
* or `CLR` register of this port
|
||||||
|
|||||||
@ -191,7 +191,7 @@ uint32_t blank_check_sector(uint32_t tmp_sect1, uint32_t tmp_sect2)
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Function: copy_ram_to_flash
|
* 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
|
* prepared first by calling "Prepare Sector for Write Operation" command. the
|
||||||
* affected sectors are automatically protected again once the copy command is
|
* affected sectors are automatically protected again once the copy command is
|
||||||
* successfully executed. the boot sector cannot be written by this command.
|
* successfully executed. the boot sector cannot be written by this command.
|
||||||
|
|||||||
@ -252,7 +252,7 @@ static void start_transmission(unsigned char blks)
|
|||||||
|
|
||||||
XferRp = 0; /* Block FIFO read index */
|
XferRp = 0; /* Block FIFO read index */
|
||||||
XferWc = blks;
|
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_LEN = 512 * (blks + 1); /* Set total data length */
|
||||||
MCI_DATA_TMR = (unsigned long)(MCLK_RW * 0.5); /* Data timer: 0.5sec */
|
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);
|
assert(buff != NULL);
|
||||||
|
|
||||||
if (idx & 0x80) { /* Send a CMD55 prior to the specified command if it is ACMD class */
|
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)) {
|
|| !(buff[0] & 0x00000020)) {
|
||||||
return 0; /* exit with error */
|
return 0; /* exit with error */
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user