|
spinnaker_tools (BMP) latest
SpiNNaker BMP firmware
|
Control program for Spin4/Spin5 BMP. More...
Functions | |
| static void | set_text (const char *s, uint32_t mask) |
| Copy text to LCD buffer. | |
| static void | update_lcd (void) |
| Prints current status to LCD. | |
| static void | fan_control (void) |
| Regulates fan speeds to manage board temperatures. Runs once a second. | |
| static void | check_status (void) |
| General board/frame status check. Runs once a second. | |
| static void | proc_100hz (uint32_t arg1, uint32_t arg2) |
| 100Hz timer tick callback | |
| void | SysTick_Handler (void) |
| System tick handler. Frequency: 1kHz. | |
| void | c_main (cortex_vec_t *cortex_vec_tmp, bool data_ok_tmp, uint32_t arg3, uint32_t arg4) |
| Main entry point. | |
Variables | |
| static uint32_t | ms_tens |
| counts 1ms ticks 0..9 | |
| static uint32_t | ticks |
| counts 10ms ticks 0..99 | |
| bool | data_ok |
| Data sector CRC OK. | |
| uint32_t | boot_sec |
| Boot block number. | |
| cortex_vec_t * | cortex_vec |
| Cortex boot vector. | |
| static uint32_t | led2_period |
| (Half) period of LED2 flash (in units of 0.01s). Used by proc_100hz() | |
| static uint32_t | led2_timer |
| Used to determine when to flash LED2. Reloaded from led2_period. | |
| static uint32_t | shut_count |
| Shut down counter. Ensures that shutdowns take 10 seconds. | |
| static uint32_t | eth_timeout |
| Ethernet indicator timeout. | |
| static char | text [12] |
| Buffer of text to show in LCD. | |
| static uint32_t | scan_next |
| Board index used with CAN scan. | |
| static uint8_t | fan = 0 |
| Current fan speed. 0 (off) .. 3 (high) | |
Control program for Spin4/Spin5 BMP.
|
static |
Copy text to LCD buffer.
| [in] | s | String to write. Up to 11 characters long. |
| [in] | mask | Selects which status indicators show |
|
static |
100Hz timer tick callback
| arg1 | unused |
| arg2 | unused |
| void SysTick_Handler | ( | void | ) |
System tick handler. Frequency: 1kHz.
System tick interrupt handler.
| void c_main | ( | cortex_vec_t * | cortex_vec_tmp, |
| bool | data_ok_tmp, | ||
| uint32_t | arg3, | ||
| uint32_t | arg4 | ||
| ) |
Main entry point.
| cortex_vec_tmp | Cortex boot vector |
| data_ok_tmp | Data sector CRC OK |
| arg3 | unused |
| arg4 | unused |
|
static |
Ethernet indicator timeout.
Used to ensure that the ethernet indicator shows for 0.25s after packet reception.
|
static |
Buffer of text to show in LCD.
Written to by set_text(). Copied over to LCD in update_lcd().