summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso
diff options
context:
space:
mode:
authorThomas Waldmann <tw AT waldmann-edv DOT de>2011-01-11 19:38:59 +0100
committerSteve Markgraf <steve@steve-m.de>2011-01-11 19:53:56 +0100
commitbe9ea273b38167c00ca1e392c60eb794178232d5 (patch)
treed5c07e31007b516b05ca06080067fe0e444d1bc5 /src/target/firmware/calypso
parent579edab27ab0d2e8980d59d86f862904def7df90 (diff)
fixed typos in comments
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/calypso')
-rw-r--r--src/target/firmware/calypso/delay.c2
-rw-r--r--src/target/firmware/calypso/dsp.c12
-rw-r--r--src/target/firmware/calypso/i2c.c2
-rwxr-xr-xsrc/target/firmware/calypso/sim.c4
-rw-r--r--src/target/firmware/calypso/tpu.c2
-rw-r--r--src/target/firmware/calypso/uwire.c2
6 files changed, 12 insertions, 12 deletions
diff --git a/src/target/firmware/calypso/delay.c b/src/target/firmware/calypso/delay.c
index 09f0043d..443ca827 100644
--- a/src/target/firmware/calypso/delay.c
+++ b/src/target/firmware/calypso/delay.c
@@ -1,6 +1,6 @@
#include <delay.h>
-/* FIXME: We need proper calibrated delay loops at some point! */
+/* FIXME: We need properly calibrated delay loops at some point! */
void delay_us(unsigned int us)
{
volatile unsigned int i;
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c
index 0d9521f0..5de7ee69 100644
--- a/src/target/firmware/calypso/dsp.c
+++ b/src/target/firmware/calypso/dsp.c
@@ -48,10 +48,10 @@
#define API_SIZE 0x2000U /* in words */
-#define BASE_API_RAM 0xffd00000 /* Base address of API RAM form ARM point of view */
+#define BASE_API_RAM 0xffd00000 /* Base address of API RAM from ARM point of view */
#define DSP_BASE_API 0x0800 /* Base address of API RAM for DSP */
-#define DSP_BASE_API_MIRROR 0xe000 /* Base address of API RAM for DSP (API boot mirrot */
+#define DSP_BASE_API_MIRROR 0xe000 /* Base address of API RAM for DSP (API boot mirror) */
#define DSP_START 0x7000 /* DSP Start address */
/* Boot loader */
@@ -446,7 +446,7 @@ static void dsp_db_init(void)
void dsp_power_on(void)
{
- /* proabaly a good idea to initialize the whole API area to a know value */
+ /* probably a good idea to initialize the whole API area to a known value */
dsp_api_memset((uint16_t *)BASE_API_RAM, API_SIZE * 2); // size is in words
dsp_set_params((int16_t *)&dsp_params, sizeof(dsp_params)/2);
@@ -559,8 +559,8 @@ void dsp_load_tch_param(struct gsm_time *next_time,
a5fn1 = (uint16_t)next_time->t1;
dsp_api.db_w->d_fn = fn; /* Fn_sid & Fn_report */
- dsp_api.db_w->a_a5fn[0] = a5fn0; /* cyphering FN part 1 */
- dsp_api.db_w->a_a5fn[1] = a5fn1; /* cyphering FN part 2 */
+ dsp_api.db_w->a_a5fn[0] = a5fn0; /* ciphering FN part 1 */
+ dsp_api.db_w->a_a5fn[1] = a5fn1; /* ciphering FN part 2 */
dsp_api.db_w->d_ctrl_tch = d_ctrl_tch; /* Channel config. */
}
@@ -671,7 +671,7 @@ void dsp_dump(void)
dsp_upload_sections_api(dsp_dumpcode, DSP_BASE_API);
dsp_bl_start_at(DSP_DUMPCODE_START);
- /* our dump code actually simulates the boot loaded
+ /* our dump code actually simulates the boot loader
* but with added read commands */
dsp_bl_wait_ready();
diff --git a/src/target/firmware/calypso/i2c.c b/src/target/firmware/calypso/i2c.c
index 2231990b..344424de 100644
--- a/src/target/firmware/calypso/i2c.c
+++ b/src/target/firmware/calypso/i2c.c
@@ -72,7 +72,7 @@ int i2c_write(uint8_t chip, uint32_t addr, int alen, const uint8_t *buffer, int
writeb(chip & 0x3f, I2C_REG(DEVICE_REG));
writeb(addr & 0xff, I2C_REG(ADDRESS_REG));
- /* we have to tell the controler how many bits we'll put into the fifo ?!? */
+ /* we have to tell the controller how many bits we'll put into the fifo ?!? */
writeb(len-1, I2C_REG(CONF_FIFO_REG));
/* fill the FIFO */
diff --git a/src/target/firmware/calypso/sim.c b/src/target/firmware/calypso/sim.c
index 610f968f..a539cf8a 100755
--- a/src/target/firmware/calypso/sim.c
+++ b/src/target/firmware/calypso/sim.c
@@ -34,8 +34,8 @@ static int sim_tx_character_count = 0; /* How many bytes have been transmitted b
static int sim_tx_character_length = 0; /* How many bytes have to be transmitted by calypso_sim_transmit() */
static uint8_t *rx_buffer = 0; /* RX-Buffer that is issued by calypso_sim_receive() */
static uint8_t *tx_buffer = 0; /* TX-Buffer that is issued by calypso_sim_transmit() */
-volatile static int rxDoneFlag = 0; /* Used for rx syncronization instead of a semaphore in calypso_sim_receive() */
-volatile static int txDoneFlag = 0; /* Used for rx syncronization instead of a semaphore in calypso_sim_transmit() */
+volatile static int rxDoneFlag = 0; /* Used for rx synchronization instead of a semaphore in calypso_sim_receive() */
+volatile static int txDoneFlag = 0; /* Used for rx synchronization instead of a semaphore in calypso_sim_transmit() */
/* Display Register dump */
void calypso_sim_regdump(void)
diff --git a/src/target/firmware/calypso/tpu.c b/src/target/firmware/calypso/tpu.c
index ed7aea74..0b60292a 100644
--- a/src/target/firmware/calypso/tpu.c
+++ b/src/target/firmware/calypso/tpu.c
@@ -194,7 +194,7 @@ void tpu_enable(int active)
#endif
}
-/* Enable or Disable the clock of teh TPU Module */
+/* Enable or Disable the clock of the TPU Module */
void tpu_clk_enable(int active)
{
uint16_t reg = readw(TPU_REG(TPU_CTRL));
diff --git a/src/target/firmware/calypso/uwire.c b/src/target/firmware/calypso/uwire.c
index b79d9f38..ac8f15e4 100644
--- a/src/target/firmware/calypso/uwire.c
+++ b/src/target/firmware/calypso/uwire.c
@@ -90,7 +90,7 @@ int uwire_xfer(int cs, int bitlen, const void *dout, void *din)
if (cs < 0 || cs > 4)
return -1;
- /* FIXME uwire_init always select CS0 for now */
+ /* FIXME uwire_init always selects CS0 for now */
printd("uwire_xfer(dev_idx=%u, bitlen=%u\n", cs, bitlen);