unsignedtype

Notes from close to the metal

Small chips.
Deep rabbit holes.
One bit at a time.

An embedded programming blog about firmware, microcontrollers, and the satisfying moment when the hardware finally does what you meant.

hello_bits.c
// Start with one bit.
#include <stdint.h>

int main(void)
{
    uint32_t flags = 0;
    flags |= (1u << 3);

    return 0;
}