hi,
I have ordered 2 launchpad F280025C and F28027F, start learning via examples, there's DRIVERLIB and BITFIELD, can anyone tell me where can download BITFIELD development guide ?
below is 28027F\Examples\Drivelib\gpio_toggle example, even it's under DRIVELIB but I think I should have some basic knowledge about BITFIELD, do you agree ?
//
// Gpio_example3 - Toggle I/Os using TOGGLE registers
//
void
Gpio_example3(void)
{
//
// Set pins to a known state
//
((GPIO_Obj *)myGpio)->GPASET = 0xAAAAAAAA;
((GPIO_Obj *)myGpio)->GPACLEAR = 0x55555555;
((GPIO_Obj *)myGpio)->GPBSET = 0x0000000A;
((GPIO_Obj *)myGpio)->GPBCLEAR = 0x00000005;
//
// Use TOGGLE registers to flip the state of the pins.
// Any bit set to a 1 will flip state (toggle)
// Any bit set to a 0 will not toggle.
//
for(;;)
{
((GPIO_Obj *)myGpio)->GPATOGGLE = 0xFFFFFFFF;
((GPIO_Obj *)myGpio)->GPBTOGGLE = 0x0000000F;
delay_loop();
}
}