Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/application/buzzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ bool buzzer_get_on( void );
/**
* @fn buzzer_init( void )
* @brief Initializes the buzzer driver module.
* @note Requires that the following modules have been initialized:
* - `config`
* - `blah`
*/
void buzzer_init( void );

Expand Down
3 changes: 3 additions & 0 deletions src/main/application/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ void config_get( config_t * config );
/**
* @fn config_init( void )
* @brief Initializes the system's configuration.
* @note Requires that the following modules have been initialized:
* - `storage`
* - `sys`
*/
void config_init( void );

Expand Down
1 change: 1 addition & 0 deletions src/main/application/debug_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/**
* @fn debug_port_init( void )
* @brief Initializes the debug port.
* @note The debug port should be initialized after all other modules.
*/
void debug_port_init( void );

Expand Down
3 changes: 3 additions & 0 deletions src/main/application/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ io_type_t io_get_type( io_pin_t pin );
/**
* @fn io_init( void )
* @brief Initializes the keyer input / output module.
* @note Requires that the following modules have been initialized:
* - `config`
* - `sys`
*/
void io_init( void );

Expand Down
1 change: 0 additions & 1 deletion src/main/application/keyer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "application/led.h"
#include "application/wpm.h"
#include "core/sys.h"
#include "drivers/gpio.h"
#include "utility/debug.h"
#include "utility/types.h"
#include "utility/utility.h"
Expand Down
6 changes: 6 additions & 0 deletions src/main/application/keyer.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ keyer_paddle_mode_t keyer_get_paddle_mode( void );
/**
* @fn keyer_init( void )
* @brief Initializes the keyer module.
* @note Requires that the following modules have been initialized:
* - `buzzer`
* - `config`
* - `io`
* - `led`
* - `sys`
*/
void keyer_init( void );

Expand Down
1 change: 1 addition & 0 deletions src/main/application/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ bool led_get_on( led_t led );
/**
* @fn led_init( void )
* @brief Initializes the LED driver module.
* @note Requires that the `config` module has been initialized.
*/
void led_init( void );

Expand Down
1 change: 1 addition & 0 deletions src/main/application/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bool storage_get_config( config_version_t version, size_t size, void * config );
/**
* @fn storage_init( void )
* @brief Initializes the storage module.
* @note Does not currently depend on any other modules being initialized.
*/
void storage_init( void );

Expand Down
2 changes: 1 addition & 1 deletion src/main/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ static void init( void )
led_init();
io_init();
buzzer_init();
debug_port_init();
keyer_init();
debug_port_init();

// Flash LEDs to indicate successful startup
startup_display();
Expand Down
1 change: 1 addition & 0 deletions src/main/core/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ tick_t sys_get_tick( void );
/**
* @fn sys_init( void )
* @brief Initializes the system module.
* @note `sys` should always be the first module initialized.
*/
void sys_init( void );

Expand Down