Clean up some HAL code

This commit is contained in:
Scott Lahteine
2017-08-31 17:30:43 -05:00
parent b29b66feda
commit 27cbb939b2
12 changed files with 140 additions and 164 deletions

View File

@ -94,8 +94,8 @@ uint8_t HAL_get_reset_source (void) {
}
void _delay_ms(int delay_ms) {
//todo: port for Due?
delay (delay_ms);
// todo: port for Due?
delay(delay_ms);
}
extern "C" {

View File

@ -91,7 +91,6 @@ const tTimerConfig TimerConfig [NUM_HARDWARE_TIMERS] = {
Timer_clock4: Prescaler 128 -> 656.25kHz
*/
void HAL_timer_start(const uint8_t timer_num, const uint32_t frequency) {
Tc *tc = TimerConfig[timer_num].pTimerRegs;
IRQn_Type irq = TimerConfig[timer_num].IRQ_Id;

View File

@ -431,5 +431,4 @@ pins
#define DIO100_PIN 11
#define DIO100_WPORT PIOC
#endif // _FASTIO_DUE_H