diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-30 16:23:29 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-06-30 16:23:29 +0900 |
commit | a2a29146a6d7327f8e159fedb6060b77cff46021 (patch) | |
tree | 7718a02b3ee9f8a9c8407374f90fecd8839c8d9f /example-fsm-55 | |
parent | e7bd234a0daeff4c16ef80f1529aa1f9dd500697 (diff) |
const pointer cleanup
Diffstat (limited to 'example-fsm-55')
-rw-r--r-- | example-fsm-55/debian-logo.c | 6 | ||||
-rw-r--r-- | example-fsm-55/hh.c | 6 | ||||
-rw-r--r-- | example-fsm-55/hiroshi-ayumi.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/example-fsm-55/debian-logo.c b/example-fsm-55/debian-logo.c index a3f78fd..e96fb75 100644 --- a/example-fsm-55/debian-logo.c +++ b/example-fsm-55/debian-logo.c @@ -34,8 +34,8 @@ struct GPIO { #define GPIOF_BASE (AHB2PERIPH_BASE + 0x1400) #define GPIOF ((struct GPIO *) GPIOF_BASE) -static struct GPIO *const GPIO_LED = ((struct GPIO *const) GPIO_LED_BASE); -static struct GPIO *const GPIO_OTHER = ((struct GPIO *const) GPIO_OTHER_BASE); +static struct GPIO *const GPIO_LED = ((struct GPIO *)GPIO_LED_BASE); +static struct GPIO *const GPIO_OTHER = ((struct GPIO *)GPIO_OTHER_BASE); static chopstx_mutex_t mtx; static chopstx_cond_t cnd0, cnd1; @@ -450,7 +450,7 @@ struct SCB #define SCS_BASE (0xE000E000) #define SCB_BASE (SCS_BASE + 0x0D00) -static struct SCB *const SCB = ((struct SCB *const) SCB_BASE); +static struct SCB *const SCB = ((struct SCB *)SCB_BASE); #define SCB_SCR_SLEEPDEEP (1 << 2) diff --git a/example-fsm-55/hh.c b/example-fsm-55/hh.c index 1567c41..8575383 100644 --- a/example-fsm-55/hh.c +++ b/example-fsm-55/hh.c @@ -34,8 +34,8 @@ struct GPIO { #define GPIOF_BASE (AHB2PERIPH_BASE + 0x1400) #define GPIOF ((struct GPIO *) GPIOF_BASE) -static struct GPIO *const GPIO_LED = ((struct GPIO *const) GPIO_LED_BASE); -static struct GPIO *const GPIO_OTHER = ((struct GPIO *const) GPIO_OTHER_BASE); +static struct GPIO *const GPIO_LED = ((struct GPIO *)GPIO_LED_BASE); +static struct GPIO *const GPIO_OTHER = ((struct GPIO *)GPIO_OTHER_BASE); static chopstx_mutex_t mtx; static chopstx_cond_t cnd0, cnd1; @@ -438,7 +438,7 @@ struct SCB #define SCS_BASE (0xE000E000) #define SCB_BASE (SCS_BASE + 0x0D00) -static struct SCB *const SCB = ((struct SCB *const) SCB_BASE); +static struct SCB *const SCB = ((struct SCB *)SCB_BASE); #define SCB_SCR_SLEEPDEEP (1 << 2) diff --git a/example-fsm-55/hiroshi-ayumi.c b/example-fsm-55/hiroshi-ayumi.c index a398689..d465208 100644 --- a/example-fsm-55/hiroshi-ayumi.c +++ b/example-fsm-55/hiroshi-ayumi.c @@ -35,8 +35,8 @@ struct GPIO { #define GPIO_SPEAKER_PIN 1 -static struct GPIO *const GPIO_LED = ((struct GPIO *const) GPIO_LED_BASE); -static struct GPIO *const GPIO_OTHER = ((struct GPIO *const) GPIO_OTHER_BASE); +static struct GPIO *const GPIO_LED = ((struct GPIO *)GPIO_LED_BASE); +static struct GPIO *const GPIO_OTHER = ((struct GPIO *)GPIO_OTHER_BASE); static chopstx_mutex_t mtx; static chopstx_cond_t cnd; |