Thanks you Thomas for your response.
I have been (somewhat) reading the code and i thing the only file that i have to change is https://github.com/TheThingsNetwork/lora_gateway/blob/master/libloragw/src/loragw_hal.c
Mainly porting the functions to sx1272/sx1276 RF modules:
void sx125x_write(uint8_t channel, uint8_t addr, uint8_t data);
uint8_t sx125x_read(uint8_t channel, uint8_t addr);
int setup_sx125x(uint8_t rf_chain, uint32_t freq_hz);
What do you think about that? Do you see other code to change?
Regards,
Victor