Skip to content

Commit

Permalink
removed global SystemCoreClock from hal_lld.c
Browse files Browse the repository at this point in the history
  • Loading branch information
xaelsouth committed Oct 20, 2024
1 parent e260565 commit 0425ad8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 0 additions & 6 deletions os/hal/ports/SILABS/EFR32FG23/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
/* Driver exported variables. */
/*===========================================================================*/

/**
* @brief CMSIS system core clock variable.
* @note It is declared in system_efr32fg23.h.
*/
uint32_t SystemCoreClock = EFR32_HCLK;

/*===========================================================================*/
/* Driver local variables and types. */
/*===========================================================================*/
Expand Down
2 changes: 1 addition & 1 deletion testhal/SILABS/EFR32FG23x0xx/TEMPLATE/cfg/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/*
* EFR32FG14P drivers configuration.
* EFR32FG23 drivers configuration.
* The following settings override the default settings present in
* the various device driver implementation headers.
* Note that the settings for each driver only have effect if the whole
Expand Down
6 changes: 5 additions & 1 deletion testhal/SILABS/EFR32FG23x0xx/TEMPLATE/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,15 @@ int main(void) {
stStartAlarmN(1, stGetCounter() + chTimeMS2I(3000));
led_on();

//RAIL_TxStreamStart(railHandle, RAIL_STREAM_PN9_STREAM);
//RAIL_TxStreamStart(railHandle, RAIL_STREAM_CARRIER_WAVE);

systime_t prev = chVTGetSystemTime();

/*
* Normal main() thread activity, in this demo it does nothing except
* sleeping in a loop and check the button state.
*/
systime_t prev = chVTGetSystemTime();
while (true) {
send_datagram();
prev = chThdSleepUntilWindowed(prev, chTimeAddX(prev, TIME_MS2I(3000)));
Expand Down

0 comments on commit 0425ad8

Please sign in to comment.