aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards_private.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2014-10-15 14:07:04 +0800
committerbryan newbold <bnewbold@twinleaf.com>2014-11-24 15:18:16 -0800
commit4e157c6ed0e2e211cfd2d786c39b2a3d4f116085 (patch)
tree2573da2d9e24e891ce1f1391c32e55022e22eed0 /wirish/boards_private.h
parent098f35d02589b1e0a38b7787aa1fd4582aab51b1 (diff)
downloadlibrambutan-4e157c6ed0e2e211cfd2d786c39b2a3d4f116085.tar.gz
librambutan-4e157c6ed0e2e211cfd2d786c39b2a3d4f116085.zip
wirish: allow boards to override more init() subroutines
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/boards_private.h')
-rw-r--r--wirish/boards_private.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/wirish/boards_private.h b/wirish/boards_private.h
index 49867ca..75c6984 100644
--- a/wirish/boards_private.h
+++ b/wirish/boards_private.h
@@ -48,7 +48,7 @@ namespace wirish {
namespace priv {
/*
- * Chip-specific initialization data
+ * Chip- and board-specific initialization data
*/
extern rcc_pll_cfg w_board_pll_cfg;
@@ -56,13 +56,21 @@ namespace wirish {
extern adc_smp_rate w_adc_smp;
/*
- * Chip-specific initialization routines and helper functions.
+ * Chip- and board-specific initialization routines and helper
+ * functions.
+ *
+ * Some of these have default (weak) implementations in
+ * boards.cpp; define them in your board file to override.
*/
void board_reset_pll(void);
void board_setup_clock_prescalers(void);
void board_setup_gpio(void);
void board_setup_usb(void);
+ void board_setup_flash(void);
+ void board_setup_adcs(void);
+ void board_setup_timers(void);
+ void board_setup_clocks(void);
void series_init(void);
}