Bit Banding Example.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BITBAND_ALIAS_ADDRESS(addr, bit) |
Calculate bit band alias address. More... | |
Functions | |
static __INLINE void | delay_ms (uint32_t ul_dly_ticks) |
Delay number of tick Systicks (happens every 1 ms). More... | |
static __INLINE void | led_config (void) |
Configure LED pins. More... | |
int | main (void) |
Application entry point. More... | |
void | SysTick_Handler (void) |
SysTick_Handler. More... | |
Variables | |
volatile uint32_t | g_ul_ms_ticks = 0 |
Counts for 1ms timeTicks. More... | |
#define BITBAND_ALIAS_ADDRESS | ( | addr, | |
bit | |||
) |
Calculate bit band alias address.
Calculate the bit band alias address and return a pointer address to word.
addr | The byte address of bitbanding bit. |
bit | The bit position of bitbanding bit. |
Referenced by main().
|
static |
|
static |
Configure LED pins.
Referenced by main().
int main | ( | void | ) |
Application entry point.
References BITBAND_ALIAS_ADDRESS, delay_ms(), and led_config().
void SysTick_Handler | ( | void | ) |
SysTick_Handler.
References g_ul_ms_ticks.
volatile uint32_t g_ul_ms_ticks = 0 |
Counts for 1ms timeTicks.
Referenced by delay_ms(), mdelay(), SysTick_Handler(), and toggle_led_test().