Skip to content

Add FastDigialPin as type #74

Closed
Closed
@hreintke

Description

@hreintke

I do not (yet) have a github fork from your repository so this as an issue.

I am not experienced in c++ templates but looking thru your code and a lot of reading :
When you add :

	template<board::DigitalPin DPIN_>
	using FastDigitalPin = typename FastPinType<DPIN_>::TYPE;
	/// @endcond

}
#endif /* FASTIO_HH */
/// @endcond 

to the end of gpio.h
You add the functionality to use

     FastDigitalPin<DigitalPin::LED> led{PinMode::FASTOUTPUT};

as alternative for

     FastPinType<DigitalPin::LED>::TYPE led2(PinMode::FASTOUTPUT);

Leading to more readable an understandable code

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions