I have a gpio class which is templated:
template <gpio_types::port_t PORT, uint32_t PIN>
class gpio {};
I want create a class that takes a gpio instance as a template. The problem is in the line below.
template <uart_types::flexcomm PERIPH, int RX_BUF_LEN, gpio<gpio_types::port_t PORT, uint32_t PIN> TX_PIN>
class uart_shared_n_block {};
In the end, I want to use it like this:
gpio<gpio_types::P1, 13> tx;
auto uart = uart_shared_n_block<uart_types::FC_4,2048,tx>();
How to template the uart_shared_n_block class properly?