diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-09-08 17:19:14 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-09-08 17:19:14 +0900 |
commit | baef99bf11db42df18e2155e14fe774260747c91 (patch) | |
tree | ca76b85efa2eb928972aed7fd2a3b99cf30aaa7d | |
parent | 1b25cc5dcb32562bb92ca5e8e4e8cf1fedcc1943 (diff) |
fix white spaces
-rw-r--r-- | chopstx.c | 12 | ||||
-rw-r--r-- | clk_gpio_init.c | 2 | ||||
-rw-r--r-- | entry.c | 2 |
3 files changed, 8 insertions, 8 deletions
@@ -196,7 +196,7 @@ static volatile uint32_t *const SYST_CSR = (uint32_t *const)0xE000E010; static volatile uint32_t *const SYST_RVR = (uint32_t *const)0xE000E014; static volatile uint32_t *const SYST_CVR = (uint32_t *const)0xE000E018; -#ifndef MHZ +#ifndef MHZ #define MHZ 72 #endif @@ -300,7 +300,7 @@ ll_pop (void *head) static void ll_prio_push (struct chx_thread *tp0, void *head) { - struct chx_thread *l = (struct chx_thread *)head; + struct chx_thread *l = (struct chx_thread *)head; struct chx_thread *tp; for (tp = l->next; tp != l; tp = tp->next) @@ -332,7 +332,7 @@ enum { THREAD_READY, THREAD_WAIT_MTX, THREAD_WAIT_CND, - THREAD_WAIT_TIME, + THREAD_WAIT_TIME, THREAD_WAIT_INT, THREAD_JOIN, /**/ @@ -973,7 +973,7 @@ chopstx_create (uint32_t flags_and_prio, if (stack_size < sizeof (struct chx_thread) + 8 * sizeof (uint32_t)) chx_fatal (CHOPSTX_ERR_THREAD_CREATE); - + stack = (void *)(stack_addr + stack_size - sizeof (struct chx_thread) - sizeof (struct chx_stack_regs)); memset (stack, 0, sizeof (struct chx_stack_regs)); @@ -1430,7 +1430,7 @@ chopstx_exit (void *retval) { clp->routine (clp->arg); clp = clp->next; - } + } /* Release all mutexes this thread still holds. */ for (m = running->mutex_list; m; m = m_next) @@ -1571,7 +1571,7 @@ chopstx_cancel (chopstx_t thd) /** * chopstx_testcancel - catch pending cancellation request - * + * * Calling chopstx_testcancel creates a cancellation point. * No return value. If the thread is canceled, this function * does not return. diff --git a/clk_gpio_init.c b/clk_gpio_init.c index 316ea03..e94c7ec 100644 --- a/clk_gpio_init.c +++ b/clk_gpio_init.c @@ -230,7 +230,7 @@ clock_init (void) RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN; RCC->APB2RSTR = RCC_APB2RSTR_SYSCFGRST; RCC->APB2RSTR = 0; - + # if defined(HAVE_SYS_H) /* Use vectors on RAM */ SYSCFG->CFGR1 = (SYSCFG->CFGR1 & ~SYSCFG_CFGR1_MEM_MODE) | 3; @@ -199,7 +199,7 @@ handler vector_table[] __attribute__ ((section(".startup.vectors"))) = { chx_handle_intr /* DMA1 CH6 */, chx_handle_intr /* DMA1 CH7 */, chx_handle_intr /* ADC1_2 */, chx_handle_intr /* USB HP */, /* 0x90 */ - chx_handle_intr /* USB LP */, chx_handle_intr /* CAN */, + chx_handle_intr /* USB LP */, chx_handle_intr /* CAN */, /* ... and more. EXT9_5, TIMx, I2C, SPI, USART, EXT15_10 */ chx_handle_intr, chx_handle_intr, /* 0xA0 */ |