Some bit hacks code and basic drivers code